i have the mask of the border now i need to remove the border in the original image how can i do it?
조회 수: 2 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149172/image.png)
댓글 수: 2
Image Analyst
2015년 9월 17일
Define "mask of the border" and "remove". For example, is the mask of the border the big black regions at the left and right of this edge image? Or just the single pixel wide circle perimeter? Does "remove" mean "set to black" or "crop" or something else?
답변 (1개)
Tim Jackman
2015년 9월 17일
Without knowing what you mean precisely when you say "border of the original image" I'd try using imerode to peel away layers of your mask that would equal the thickness of the border. Then multiply the eroded mask with your image to remove the border. Hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!