How can I rebuild arbitrary shape in binary matrix after detect corners.
1 view (last 30 days)
I have many different shapes as rectangle in binary matrix . I would like to detected based on a corner detections, hence creat a new binay matrix with connecting the corner pointe which have detected from the corner detection method and fill in side (i.e. Build the shape based on the corner detection points) as shown the easy shape is the rectangluar :
however if i have difrrents shapes and i have only the pointes. how can bulid the edge of shape based on corner dections points and then fill it by o value?
could someone help me to da that?
corners = detectHarrisFeatures(~A,'FilterSize',3);
imshow(~A); hold on;
detecting = ones(size(A));