08-22-2017 12:30 PM - edited 08-22-2017 12:32 PM
I have a raw image (U8) and a thresholded image. In the thresholded image, there are blobs, how do I find for each blob the max/min pixel value and its location XY in the raw image? Is there any fast, convenient vi or method available? I did not find any....all particle reports does not contain this information..
Solved! Go to Solution.
08-22-2017 01:18 PM
You can use IMAQ Particle Analysis to get most of the information about each particle using the binary image. For the rest, you can use IMAQ Label to make the binary image into a labeled image, then use IMAQ Quantify 2 with the raw image as the input image and the labeled binary image as the image mask. Each of the Region Reports corresponds to particle with the same label.
Both routines use the same particle order (Particle Analysis and Label), so the two reports should match up.
Bruce
08-22-2017 08:40 PM
As your suggested workflow, I still cannot get xy coordinate from IMAQ quantify2. I want to get this xy coordinate for the use of magic wand vi.
08-23-2017 01:43 AM
for magic wand if you use binary image any point inside particle will be work .so you can use particle Particle Analysis vi with a method like this to use magic wand
use this file for more help
08-24-2017 10:10 AM
I usually use Particle Analysis on a binary image to get the centre of mass x and centre of mass y. Is this what you are after? You can select which measurements you want to use as part of the particle analysis. Centre of mass is at the top of the list.
08-24-2017 10:16 AM
08-24-2017 10:19 AM
What does xy coordinate refer to then? I'm not familiar with Magic Wand so I'll need to look it up.
08-24-2017 10:21 AM
check bellow link for more information
https://zone.ni.com/reference/en-XX/help/370281AC-01/nivisionconcepts/particle_measurements/
08-24-2017 10:23 AM
OK I understand this, but in the original question what is the definition of location if it's not the centre of mass?
08-24-2017 10:23 AM