how to merge image and lines plotted on that into one image?

1 次查看(过去 30 天)
i have a image, on that i plotted many lines. i need to segment this image based on the lines drawn on that image.my image is separate and the plots on that is separate.how to merge these two into single image so that i can do segmentation on that

回答(1 个)

Image Analyst
Image Analyst 2014-3-29
If you plotted the lines, then you have their coordinates and you can send those into poly2mask to get binary images that will segment the image. Then use regionprops() to measure things.

Community Treasure Hunt

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

Start Hunting!

Translated by