LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convolute IMAQ RGB picture

 

Hi there, does anyone knows how to convolute  RGB32 picture using IMAQ Convolute.vi? Or this vi operates only with 8/16 bits pictures coz I'm getting "IMAQ Convolute Invalid image type" error message when  RGB picture type created by IMAQ Create.vi is connected Smiley Sad

 

I need to convolute native color picture w/o gray-scale conversion.

 

Any ideas are welcomed

 

 

Thanks in advance

Alex

0 Kudos
Message 1 of 3
(4,405 Views)

Hi Alex,

 

The IMAQ Convolute VI works only with U8, U16, I16. In your case you can use it if you can cast your 32Bit image to one of those formats. You can use the IMAQ Cast VI to achieve that.

 

Thanks and have a great day.

0 Kudos
Message 2 of 3
(4,364 Views)

The simplest way would be to extract each color plane (R, G, and B) and perform the convolution on each plane separately, and then recombine into an RGB32 image.  If your kernel is also a color image, you can separate each plane for the convolution, otherwise just use the same kernel for each.

 

Depending on the aim of the convolution, though, there may be better ways to do this.  For example, you may get an equivalent result by just extracting the Luminance plane (from an HSL or Lab conversion) and then incorporating that back in.

 

23214iDF73BBED713FEFE2

0 Kudos
Message 3 of 3
(4,342 Views)