How to label imrect while tracking?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Meshooo
am 9 Jun. 2015
Kommentiert: Image Analyst
am 11 Jun. 2015
Dear all,
I am trying to make a tracking software using image processing toolbox only. I am using imrect for tracking a ROI. So I want to be able to add a label to that imrect blue box, let's say in the top of the box such that the label will be also moving with the rectangle generated from imrect.
Any idea how to do that?
Best, Meshooo
2 Kommentare
B.k Sumedha
am 9 Jun. 2015
U can have a look at this example http://in.mathworks.com/help/vision/examples/motion-based-multiple-object-tracking.html
Akzeptierte Antwort
Image Analyst
am 9 Jun. 2015
You can use plot(), line(), or rectangle() to draw/erase/move the rectangle. You can use text() to place a label near it.
2 Kommentare
Image Analyst
am 11 Jun. 2015
croppedImage = imcrop(originalImage, [x, y, width, height]);
which works with color or gray scale images, or
croppedImage = grayImage(row1:row2, col1:col2); % Gray scale image
croppedImage = rgbImage(row1:row2, col1:col2, :); % Color image
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!