HOw to draw boundingBox/rectangle transperent over an image
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lora
el 10 de Oct. de 2014
Comentada: Image Analyst
el 13 de Jul. de 2019
i 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.It might be very trivial but i am not a regular coder.
I=imread('000027.jpg');
figure,imshow(I)
hold on
rectangle('Position',[203, 147, 218, 162],'FaceColor','r')
Thanks guys
0 comentarios
Respuesta aceptada
Image Analyst
el 10 de Oct. de 2014
Change FaceColor to EdgeColor:
rgbImage=imread('peppers.png');
imshow(rgbImage)
hold on
rectangle('Position', [203, 147, 218, 162],...
'EdgeColor','r', 'LineWidth', 3)
3 comentarios
Image Analyst
el 18 de Feb. de 2016
Use the text() function
text(x, y, 'This is my rectangle', 'FontSize', 20);
Más respuestas (1)
mohd abdul wahed faisal faisal
el 13 de Jul. de 2019
bro instead of rectangle i want the particular area(irregular shape)
1 comentario
Image Analyst
el 13 de Jul. de 2019
Ver también
Categorías
Más información sobre 3-D Volumetric Image Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!