How can i calculate the sum of intensity of the edges in MATLAB using automatic threshold sobel edge detector?

1 visualización (últimos 30 días)
I am doing edge detection using Sobel edge detector and i need to find the sum of pixel intensity of the sobel edge?

Respuesta aceptada

Image Analyst
Image Analyst el 1 de Abr. de 2016
Try this:
theSum = sum(yourSobelEdgeImage(:))
  2 comentarios
AMMAR KAMOONA
AMMAR KAMOONA el 1 de Abr. de 2016
But this one will yield same as the number of edge pixels in the Sobel edge image. Is that right? because the edge image is a binary image.
Image Analyst
Image Analyst el 1 de Abr. de 2016
No, not if you used imgradient() to get the actual Sobel edge image instead of edge() which gets the edge image but thresholds and skeletonizes it and returns the skeleton image instead of the actual edge image like imgradient() does.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by