display several rectangles in color on your image
Ältere Kommentare anzeigen
Hi,
I am using the following lines to put a rectangle on my image.
patch([850 850 900 900],[2 3.6 3.6 2],'r','facecolor',[1 .8 .8],...
'edgecolor',[1 .2 .2],…
'facealpha',0.7)
There is several problem with it. First it changes the quality of my image second the edge color is black and also not ok third, do you have any alternative way to put several rectangle on a figure
Akzeptierte Antwort
Weitere Antworten (1)
Giorgos Papakonstantinou
am 9 Mär. 2014
You can plot it!
plot([x1 x1+a x1+a x1 x1], [y1 y1 y1+b y1+b y1])
where (x1, y1) is the starting point of your rectangle and a and b are the sides of the rectangle.
1 Kommentar
Image Analyst
am 9 Mär. 2014
I think he wants solid rectangles with transparency - that's why he used patch.
Kategorien
Mehr zu Display Image 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!