1 | initial version |
It will do that yes. Do note that on multi-channel images I get a strange result where the x and y aren't exactly correct. I would stick with single-channel images, though they don't need to be binary.
But yes, you do get the intensity weighted centroid if you pass binaryImage = false.
2 | No.2 Revision |
It will do that yes. Do note Note that it doesn't work on multi-channel images I get a strange result where the x and y aren't exactly correct. I would stick with single-channel images, though they don't so you need to be binary.either convert to grayscale, or something else to reduce your example to a single channel. Perhaps extract just the red, in your case.
But yes, you do get the intensity weighted centroid if you pass binaryImage = false.