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

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

Risposte (3)

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

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

bindu bansal
bindu bansal il 5 Dic 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