Pixel's edge strength

5 vues (au cours des 30 derniers jours)
Balkar Singh
Balkar Singh le 23 Juin 2019
Commenté : Balkar Singh le 23 Juin 2019
How to find out the pixel's edge strength so that we can compare it with a threshold value.

Réponses (2)

Image Analyst
Image Analyst le 23 Juin 2019
Use imgradient().
  1 commentaire
Balkar Singh
Balkar Singh le 23 Juin 2019
Thank you

Connectez-vous pour commenter.


Manish M
Manish M le 23 Juin 2019
Hi
There is no such thing as a pixel's edge strength. You would just compare the pixel value with the threshold. If you are trying to implement Canny edge detector, you just compare the pixel value with the neighbouring pixels along the normal to the edge.
  2 commentaires
Image Analyst
Image Analyst le 23 Juin 2019
Not sure why you say that. There certainly are metrics that are related to the edge strength of the image on a pixel-by-pixel basis, for example imgradient():
[Gmag,Gdir] = imgradient(I) returns the gradient magnitude, Gmag, and the gradient direction, Gdir, for the grayscale or binary image I.
and
mask = GMag < someThreshold;
will certainly not give you the same image as where you "just compare the pixel value with the threshold":
mask = I < someThreshold;
Balkar Singh
Balkar Singh le 23 Juin 2019
Thank you

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by