LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I the average pixel value of an ROI in grayscale?

Hello,

 

I am fairly new to using LabVIEW for image processing, hence the question. If I have an ROI (region of interest) bounded by a certain rectangle, is there any simple way to obtain the average intensity of the same ROI? (I have the ROI descriptor.) The image is an 8-bit, grayscale image. 

 

One solution would probably be to get the averages along the X-axis using the IMAQ LinearAverages vi, and then add them up, and divide by the number of elements, et cetera. However, this seems to be a rather tedious and difficult method for doing it. Since LabVIEW has several functions for ROIs, is there a quick function that can give me the average intensity of a single ROI if it is defined? 

 

 

0 Kudos
Message 1 of 4
(6,318 Views)

Hi Mandar,

 

You can use the IMAQ Quantify VI to get parameters like intensity mean from a given image or its ROI. You will find this under Vision and Motion -> Image Processing -> Analysis.

 

Regards,

Vaibhav.

Message 2 of 4
(6,297 Views)

Hello 

 

 

               Go through this link .. i hope this will help you..

------------------------------------------------------------------------------------------------------------------
Indrajit

| indrajitbarve@gmail.com | indar_indar2005@yahoo.co.in .
0 Kudos
Message 3 of 4
(6,275 Views)

how can i convert RGB image into graysclae image?please help me. and also i want to  extract ROI from the grayscale image

0 Kudos
Message 4 of 4
(5,505 Views)