From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get intensity data for each pixel in an image?

I am acquiring RGB images with a 1408 board. I need to analyze images pixel by pixel. How can I get the intensity of every pixel?
0 Kudos
Message 1 of 2
(3,026 Views)
I would first use the IMAQ ExtractSingleColorPlane.vi to extract the Intensity of the RGB image; then use the IMAQ Historgram.vi or IMAQ Histograph.vi to display the intensities of every pixel. You could also use the IMAQ ImageToArray.vi to convert the intensity values of the RGB image into a 2-D array of 8-bit intensities.

Finally, if you're only interested in an image's intensity values but your camera outputs NTSC or PAL color images, you can set the frame grabber to acquire RS-170 or CCIR images. These setting will ignore the color information and the frame grabber will only acquire the intensity vaules.

I hope this helps.

Kyle V
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,026 Views)