Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

image to array

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...

 

 

 

0 Kudos
Message 1 of 5
(3,980 Views)

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

0 Kudos
Message 2 of 5
(3,966 Views)

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 

0 Kudos
Message 3 of 5
(3,958 Views)

Here it is.

Regards

0 Kudos
Message 4 of 5
(3,932 Views)

thnx alot 🙂

0 Kudos
Message 5 of 5
(3,922 Views)