How do you plot a line on a function defined by colors?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello, I want to plot a line on a color defined function (enclosed example below), such that the line follows the boarders between colors. I don't want to plot a line that roughly follows the color boarders but follows the boarder exactly based on the change in color. However, I am unsure how to acomplish this. Any help appreciated.
Example:
3 Kommentare
Antworten (3)
Voss
am 19 Okt. 2023
img = imread('image.png');
imagesc(img)
hold on
contour(mean(img,3),'k')
0 Kommentare
Siehe auch
Kategorien
Mehr zu Blue finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!