-
thresholding to get a “fish” mask (possibly invert, to make sure fish is white and background is black)
-
find first and last column of “fish”, calculate the position of those vertical measuring lines
-
for each line, find topmost and bottommost “fish” pixel, take the center.
1 Like