how to calculate no. of edge pixel of a image for a particular(e.g sobel edge detector) edge detector using matlab

1 次查看(过去 30 天)
how to calculate no. of edge pixel of a image for a particular(e.g sobel edge detector) edge detector using matlab

回答(3 个)

Image Analyst
Image Analyst 2014-3-15
Assuming you used edge(), which thresholds the edge image, you could just use sum():
numberOfEdgePixels = sum(edgeImage(:));

Anand
Anand 2016-2-23
bw = edge(I,'sobel');
edgePixels = nnz(bw)

bindu bansal
bindu bansal 2019-12-5
Anybody pl help me to implement paper "a classification algorithm to distinguish Image as Haze or non-Haze".... thanks in advance

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by