06-28-2004 11:03 AM
06-29-2004 12:27 PM
11-17-2010 04:47 AM
Quick question...
Is the IMAQ centriod VI described here doing the same thing as what any of these VI's are doing?
http://forums.ni.com/t5/LabVIEW/Centroid-of-an-2D-Array/m-p/1136618#M500884
Mike
11-19-2010 10:29 AM
Ok, I'm convinced the IMAQ Centriod VI, isn't doing that centre of mass calculation above. I compared the results whilst inputting a 2D Gaussian, and they did not match as the distibution moved to the edge of the range.
If anyone has any idea what the IMAQ VI is doing, I'd be much appreciative.
Mike
11-20-2010 10:10 AM - edited 11-20-2010 10:11 AM
@Mike Lee wrote:
If anyone has any idea what the IMAQ VI is doing, I'd be much appreciative.
IMAQ Centroid VI doing something like that:
Andrey.
11-22-2010 09:50 AM
I think I'm right in saying that the IMAQ centriod VI is binary. i.e. if the intensity in a particular region is above the threshold, it returns a 1. It then finds the geometric centre of 1's.
So this may be ok for smoothly varying images, but worth noting. The Vi Andrey posted weights every region according to its intensity.
11-22-2010 10:04 AM
@Mike Lee wrote:
I think I'm right in saying that the IMAQ centriod VI is binary. i.e. if the intensity in a particular region is above the threshold, it returns a 1. It then finds the geometric centre of 1's.
So this may be ok for smoothly varying images, but worth noting. The Vi Andrey posted weights every region according to its intensity.
IMAQ Centroid is not "binary". The code provided by me above deliver exactly the same result as IMAQ Centroid VI.
Andrey.
11-22-2010 11:23 AM
What threshold values have you set for the IMAQ centriod? I found if I lowered the threshold to zero, the calculation returned the centre of the image regardless of what I input, consistent with each pixel being the same value. The differences only show up otherwise as you move the centre of mass to the edge of the image. I'm using LabVIEW 8.6 so maybe your version isn't binary. I've attach my programmes.
11-22-2010 11:30 AM
@Mike Lee wrote:
What threshold values have you set for the IMAQ centriod?
There are no "threshold values" for IMAQ Centroid available. This VI requires Input Image and optional Mask. That is all. LV 2010 + Vision 2010.
11-23-2010 04:45 AM
Thanks for you're reply, I now see that I'd set a threshold on the image earlier in the program which replaced thresholded values with a constant....