MATLAB Source Code for Calculating Spot Centroid Position in Gray-scale Images
MATLAB source code for calculating the centroid position of a spot in a grayscale image. The algorithm uses the Otsu's method (maximum between-class variance) to accurately determine the (x, y) coordinates of the spot centroid. This implementation includes automatic threshold calculation and weighted centroid computation based on pixel intensities.