Problem filling a contour
조회 수: 1 (최근 30일)
이전 댓글 표시
I previously asked a question about how to fill a region of interest in Matlab, and got a response that I should use activecontour to identify the envelope of the region then extract the color channels and add back pure red as a binaryImage to fill the ROI. I've been trying to do this but keep running into an error message:
"Undefined function or variable 'binaryImage'."
Do I need to convert to binaryImage, and if so how do I do that?
My code and the input image are attached, any help would be greatly appreciated.
댓글 수: 0
채택된 답변
Image Analyst
2014년 7월 14일
It look like what you call binaryImage is what you previously called "mask" in the code. Change it to say mask and it should work better.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!