09-02-2010 08:26 AM
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
I need to convolute native color picture w/o gray-scale conversion.
Any ideas are welcomed
Thanks in advance
Alex
09-03-2010 10:44 AM
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.
09-05-2010 04:48 PM
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.