Tangent line to the edge of binary image
5 views (last 30 days)
Attached please see a binarized image of water droplets spraying out of a sprinkler.
I am trying to define a the angle between a normal line and (1) the right edge of the blob (dotted line) and left edge of the blob (dashed line). A solution that comes mind is to get rid of smaller blobs and is to extract the (x,y) values of the edges and fit a curve to each section. Can anyone suggest a better solution to me?
thanks you all :)
Matt J on 25 Feb 2022
Edited: Matt J on 25 Feb 2022
A solution that comes mind is to get rid of smaller blobs and is to extract the (x,y) values of the edges and fit a curve to each section.
Sounds good to me.
BW=bwperim( bwconvhull(bwareaopen(BW,100)) );
x = reg(i).PixelList(:,1);
y = reg(i).PixelList(:,2);