LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get pixel vi picture control

Can i get a pixel color value without converting the picture data to an array?

Seems an unneccesary step in my opinion because internally the array data is available
anyway.

Neither the standard palette nor the vi.lib picture vis seems to contain procedures to read pixel values.

 

 

0 Kudos
Message 1 of 3
(3,080 Views)

I think the answer is "no".  And I think the reason the answer is "no" is "representation".  I suspect that images work by passing around references ("pointers") to data, and when you want to get at the data, you need to "get the data" by asking LabVIEW to give you the Pixel array.

 

BS

0 Kudos
Message 2 of 3
(3,055 Views)

If you are using MS Windows, and the image is displaying on a front panel, there is a Windows API: GetPixel (https://msdn.microsoft.com/en-us/library/dd144909(v=vs.85).aspx) for that.

 

George Zou
Message 3 of 3
(3,032 Views)