04-29-2013 02:24 PM
hi
i have to convert an image into array,, i have done this by using imaqcolorimagetoarray vi. but it gives a 2d array but in real, image is a 3d array with 3rd dimensions for rgb.
how is it compared with the 2d array of image in labview.
how can i know about rgb values?where rgb image's pixel values are shown by 2d array.
but in matlab the same image is shown in 3d arrray...
04-30-2013 12:55 AM
Hi,
In fact, this function return an array where the 3 pixel values are bundle to a U32 value.
So you have two options, you can split this U32 into 4 U8, where you will find your Re, Green and Blue channel.
Or you can first extract the color planes into 3 grayscales images before converting them into separate arrays.
See the attached vi with both options.
Regards
04-30-2013 08:26 AM
hey! thnx dear for replying
but i have lv 11 so dis vi ix not compatible with lv11.. kindly convert it to lv11 or lower versions
thnx... m w8ng
05-02-2013 01:02 AM
Here it is.
Regards
05-02-2013 01:14 PM
thnx alot 🙂