Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

find histogram using mask image having multiple blobs

HI All,

I want to find out the histogram of some selected regions in an image. These selected regions are present in a binary image(mask image). 

Now I want to get the histogram of each region. How can this be done in a quick way? 

What I can think of is converting the mask image into a labelled image and then use a for loop to threshold out each particle and then use imaq histogram to find the histogram of each particle. 

Is there any better/faster way?

 

Thank You,

Regards

Aveo

0 Kudos
Message 1 of 2
(4,041 Views)

Sounds like an excellent job for a custom C++ blob analysis VI that accumulates histograms as it scans for blobs in the image.

 

Have fun!

 

Nelson Bridwell

http://MachineVision.Engineering 

0 Kudos
Message 2 of 2
(4,008 Views)