Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

change axis' data of a histogram

Hi

 

I am a new user of Labview and I made a vi able to trace pixel values of a binary image in a histogram but actually the result is not what I was expected for. Indeed the histogram returns me the pixel values on X axis (0 or 255) and the number of particules associated with 0 or 255 on Y axis. I would like to change X axis and Y axis in order to have pixel value on Y axis and the abscissa of my image on X axis.

 

If you have any idea please let me know

Thanks

 

Luckyluke

 

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

Luckyloic,

 

The code you posted looks to be unfunctional.  You could use the IMAQ Rotate function to rotate your image and essentially take the histogram of the rotated image.  If you are only talking about the data in the histogram, I do not know of a way to flip the axis of the histogram graph itself.

 

Best,

Chris LS

National Instruments
Applications Engineer

Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 2 of 3
(3,163 Views)

Sorry for the unfunctionnal code. I eventually found a way to fix my problem by using the line profile FUNCTION.

 

Thanks Chris

Kind regards

 

luckyloic

0 Kudos
Message 3 of 3
(3,161 Views)