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

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

Antworten (3)

Image Analyst
Image Analyst am 15 Mär. 2014
Assuming you used edge(), which thresholds the edge image, you could just use sum():
numberOfEdgePixels = sum(edgeImage(:));

Anand
Anand am 23 Feb. 2016
bw = edge(I,'sobel');
edgePixels = nnz(bw)

bindu bansal
bindu bansal am 5 Dez. 2019
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