필터 지우기
필터 지우기

Finding connected pixels of an object from a starting pixel in a gray scale image

조회 수: 2 (최근 30일)
Mary Ben
Mary Ben 2021년 3월 11일
댓글: Mary Ben 2021년 3월 15일
Please I need your help.
Is there anyone who can help me to find connected pixels of an object from a gray scale image. I mean what is the method that I can use? (i,e In each iteation, a region is grown from the start seed pixel. the growth of reagion spreads across all
connecting pixels that are not already labeled and that are above the current threshold Th)
Thanks in advance

답변 (2개)

Matt J
Matt J 2021년 3월 15일
편집: Matt J 2021년 3월 15일
Once you threshold the image (making it binary) you can use regionprops or bwconncomp.
  댓글 수: 3
Matt J
Matt J 2021년 3월 15일
I don't think you'll find that in Matlab proper. You can look through some of the region growing routines on the File Exchange to see if any give you that kind of control,
Mary Ben
Mary Ben 2021년 3월 15일
I tried with this code that you attached and I made some changes, but the problem is that the region grows on the side of the background and not from the object!!

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


Matt J
Matt J 2021년 3월 15일
You could apply bwdist to find all pixels that are within some distance of the seed pixels, and bwdistgeodesic if you want to constrain that distance to certain paths.
  댓글 수: 3
Matt J
Matt J 2021년 3월 15일
With what Matlab tool? And would it let you capture only 1000 pixels worth of region growth?
Mary Ben
Mary Ben 2021년 3월 15일
with matlab I dont have any idea... with the last code of region growing i can select juste 1000 pixels but after run I obtain a grown region of background not for object that I want to detect.

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

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by