Hi,
I've got a VI that takes an image, applies a threshold, and then applies a centroid. This gives me the x and y position of a particle in the image. However, I've recently started to use more 'messy' images with lots of rubbish around the particle. I've been trying to apply a ROI to the image. I've put it after the threshold, and then sent the data to the centroid. This doesn't seem to work, as the threshold will only work when i've got the image set to 16-bit, but the image mask for the ROI needs to be 8-bit. I've tried converting etc but I can't quite get it to work. When I set it so that the threshold works, then the x,y positions cease to work form the centroid.
Basically I want to load an image, specify (manually is fine for the time being) the coordinates of the ROI, and then apply the centroid just to that ROI, thus cutting out all of the rubbish around the particle.
Please find attached the VI.
Thanks,
Rob.