Problem filling a contour
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Alston
am 14 Jul. 2014
Kommentiert: Matthew Alston
am 14 Jul. 2014
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 14 Jul. 2014
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.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!