Pixel's edge strength

조회 수: 4 (최근 30일)
Balkar Singh
Balkar Singh 2019년 6월 23일
댓글: Balkar Singh 2019년 6월 23일
How to find out the pixel's edge strength so that we can compare it with a threshold value.

답변 (2개)

Image Analyst
Image Analyst 2019년 6월 23일
Use imgradient().
  댓글 수: 1
Balkar Singh
Balkar Singh 2019년 6월 23일
Thank you

댓글을 달려면 로그인하십시오.


Manish M
Manish M 2019년 6월 23일
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
Image Analyst
Image Analyst 2019년 6월 23일
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 2019년 6월 23일
Thank you

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by