i am trying to locate points like it shows in the figure 4 below were the centroid i have marked as shown in figure 2 from the binary image now i have to mark upper lower and left and right boundry point as in fig 4 ..any one help me
I have marked the centroid of the blob using
s = regionprops(binaryImage, 'centroid');centroids = cat(1, s.Centroid); imshow(binaryImage);hold(imgca,'on'); plot(imgca,centroids(:,1), centroids(:,2), ... 'r*','MarkerSize', 10, 'LineWidth', 3);
Best Answer