LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single pixel formation in Intensity graph

I needed to capture a image using CCD camera. Though it has 16 bit resolution, i need to focus on ONE PIXEL.

The process goes like this. Save the image information in a spread sheet array and then find the max value of the array. Till this step, i am OK.

But how do i get to display this MAX value using intensity graph??

 

Intensity graph is 2D array which needs X and Y value.

So I need to get the X and Y value of the max value of array. I tried using the max index value of 'Max and Min' array function. But it is of no use since the value comes as 1Dimension but the intensity graph needs 2D information in the form of X and Y value. 

 

Please help me on this. Thanks in advance.

0 Kudos
Message 1 of 3
(2,519 Views)

Hi Sarat,

 

wire the whole array to the intensity graph... It will display all values including your max!

Or init an array as big as your picture and replace only the max point with your actual max value.

 

The intensity graph doesn't take (x,y,z) triples, it just takes a plane of z values. The position of a pixel is given by it's location in the 2D array!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,512 Views)

Asking the same question in multiple threads does not help or get you an answer more quickly.  Please be patient.  Many of us who participate in the Forum do so as volunteers.

 

Now to your question.  As you noted, you can use the Array Max & Min function to locate a pixel with the maximum value.  If more than one pixel has that value, this function only reports the first occurrence of that value.  The 1D output of the Array Max & Min function contains the indexes of the pixel.  So the first element would be the row index (X value) and the second element would be the column index (Y value).   What I do not understand is why you want to display just one value on an intensity graph.  That seems rather meaningless.  Please explain what you want the output to look like.

 

Lynn

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