MATLAB: How to count Image Edges with Different between space

edgeimage processingImage Processing Toolbox

Image Edges Count with different Space Different ?

Best Answer

Take your edge image (make sure it's binary) and label it:
[labeledImage, numberOfEdges] = bwlabel(edgeImage);
Related Question