Segment grid boxes
Ältere Kommentare anzeigen
rgb = imread('peppers.png');
imshow(rgb)
hold on
M = size(rgb,1);
N = size(rgb,2);
for k = 1:25:M
x = [1 N];
y = [k k];
plot(x,y,'Color','w','LineStyle','-');
plot(x,y,'Color','k','LineStyle',':');
end
for k = 1:25:N
x = [k k];
y = [1 M];
plot(x,y,'Color','w','LineStyle','-');
plot(x,y,'Color','k','LineStyle',':');
end
hold off
Suppose I want to segment and extract individual areas of the grid .. How do I go about it ? Like, which boundary detection algorithm is used for this purpose ?
2 Kommentare
Sean de Wolski
am 25 Mär. 2011
Post an image! How do you expect us to figure anything out when we can't see what you're doing!
Siddharth Mallya
am 27 Mär. 2011
Akzeptierte Antwort
Weitere Antworten (1)
Pedro Serra
am 24 Mär. 2011
0 Stimmen
An answer to this question would be really nice. I'm dealing with the same issue:
I have an image upon which I've drawn a grid. I now would like to understand how can I extract individual areas of the grid?
(My final goal is to color specific areas of that grid)
Thanks in advance!
1 Kommentar
Siddharth Mallya
am 25 Mär. 2011
Kategorien
Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!