MATLAB: Greetings. I want to ask on how to find the centre of the this black line by using image processing tool? currently i am doing the project and i stuck to find the centroid of the line.

image processingImage Processing Toolboxline follower

Best Answer

How about you just get the skeleton?
skelImage = bwmorph(~binaryImage, 'skel', inf);