필터 지우기
필터 지우기

Connect pixels to form the boundary of an object

조회 수: 2 (최근 30일)
TY
TY 2016년 9월 17일
댓글: Kimo Kalip 2018년 7월 3일
Hi,
I want to connect disjoint pixels to form the boundary of the object. What are the necessary commands/procedures to do so?
It is quite urgent. Thanks so much if anyone can answer it.

답변 (1개)

Image Analyst
Image Analyst 2016년 9월 17일
You can use activecontour(), demo attached.
Or maybe convhull(), bwconvhull(), contour(), bwboundaries(), bwperim(), etc. depending on what your image looks like.
  댓글 수: 3
Image Analyst
Image Analyst 2016년 9월 18일
You might try normalized cross correlation, done by normxcorr2(). See attached demo.
Kimo Kalip
Kimo Kalip 2018년 7월 3일
Two questions:
  1. Is this a literal recognition, where given the photo at subplot (2,2,2) will only recognize in that particular orientation in this particular image, or could you rotate the onion, or have two such onions in the photo and you'd still get matches?
  2. How exactly does normalizing the original image work for you in subplot (2,2,3)? Like I don't understand how it tells you where the onion is.

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

Community Treasure Hunt

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

Start Hunting!

Translated by