Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi i have four coordinates which correspond to (x,y,width,height) . I can draw a rectangle over an image from this script but it is a filled rectangle with redcolor i want a a bounding box or a transparent rectangle


I=imread('000027.jpg');
figure,imshow(I)
hold on
rectangle('Position',[203, 147, 218, 162],'FaceColor','r')

Thanks guys
Posted

1 solution

I=imread('000027.jpg');
imshow(I);
hold on
rectangle('position',[401,369,464,496],'edgecolor','r','lineWidth',3)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900