how to display different features with different color edges on a original image ?

1 view (last 30 days)
I have many features in an image and i successfully attained the edges of each feature seperately. now i need to give each feature edge a different colour and display all the edges on the original image. i have 3 features which should be highlighted with 3 different color edges on a single image. help me to do this ...

Accepted Answer

Image Analyst
Image Analyst on 1 Apr 2019
You say you have "successfully attained the edges of each feature seperately". So all you have to do it call hold on and then plot.
hold on
plot(x, y, 'r-', 'LineWidth', 2);
If you don't have the edges in a list of x and y coordinates, then you need to get them, like by calling bwboundaries() on the original binary image.

More Answers (1)

Community Treasure Hunt

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

Start Hunting!