필터 지우기
필터 지우기

How to get the boundary points?

조회 수: 3 (최근 30일)
Chathu
Chathu 2016년 5월 2일
댓글: Chathu 2016년 5월 4일
I have a mask(mask is for an image) which is saved in .mat format. Now, i want to take the boundary of this mask. Is it possible to convert from mask to boundary? Can anyone kindly guide me?

채택된 답변

Image Analyst
Image Analyst 2016년 5월 2일
Yes. Use bwboundaries() to get a list of (x,y) coorindates. Use bwperim() if you want an image of the outer boundary.
  댓글 수: 13
Image Analyst
Image Analyst 2016년 5월 4일
Well you just have to figure out what the variable names were when they were saved, and then get back those same names, and make sure you're using the right one in the right place. It's just bookkeeping really. I mean, if the name is maskedRgbImage, it's probably an RGB image and don't use it where a gray scale image or binary (logical) image is expected.
Chathu
Chathu 2016년 5월 4일
Thank you so much Image Analyst. Really appreciate your response.

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by