MATLAB: How to display different features with different color edges on a original image

Image Processing Toolboxoutlinesoverlay

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 …

Best Answer

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.