How to draw bounding boxes around the ROI obtained by thresholding.
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to highlight the region of interest using rectangular bounding box on the original image.
Can anyone here help me with this?
0 comentarios
Respuestas (1)
Image Analyst
el 4 de Abr. de 2018
props = regionprops(binaryImage, 'BoundingBox');
for k = 1 : length(props)
thisBB = props(k).BoundingBox;
hold on;
rectangle('Position', thisBB);
end
2 comentarios
Image Analyst
el 6 de Abr. de 2018
You have to switch the current axes to the one you want to put the boxes onto. For example call subplot() or axes() before you call rectangle().
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!