LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting image to 2d array

I have used 2 methods to convert image to array.But i am getting blank array in both the cases.Please help me out with this

0 Kudos
Message 1 of 7
(4,515 Views)

Hi saylee,

 

Please help me out with this

At first you should press Ctrl-U to start the AutoCleanup: all those bended wires prevent data from flow! (:D THINK DATAFLOW!)

 

Then you should attach an example image you want to load. Does your JPG file really contain 8 bit image data? Is the 24 bit pixmap filled with expected data?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(4,479 Views)

I tried this solution again.

The image is 8bit 

I am getting blank array after trying the following

Please help me in this

Download All
0 Kudos
Message 3 of 7
(4,464 Views)

As Gerd requested, please upload your sample image (the one you are putting into the path input).

0 Kudos
Message 4 of 7
(4,458 Views)

I have tried following images

Download All
0 Kudos
Message 5 of 7
(4,454 Views)

It works for me. Your array is not all zeroes, just the portion you are looking at. Hook it up to an intensity graph to visualize it much more easily. Also the WindDraw function is not necessary, but doesn't seem to hurt.

 

temp.png

Message 6 of 7
(4,451 Views)

Thankyou so much........

0 Kudos
Message 7 of 7
(4,443 Views)