detecting the object and moving the bounding box along the straight line

2 次查看(过去 30 天)
I have the set of OCT image and I have found the tip of the needle. While moving through the slices I can locate the tip and draw a bounding around it. However, when my needle tip get mixed with surrounding data (image59.jpg), it is hard to recognize it. I want to make something that during the initial image, I draw a bounding box of some height and width and then move it slightly down through the images so it can enclose my needle tip.
I already have needle tip segmented in the first image(image53.jpg) and bounding box ready for it. I need a way to move my bounding box down as needle tip is moving down along the straight line
P.S - it will be helpful if I can use RANSAC to move my bounding box down in a straight line.

回答(1 个)

Image Analyst
Image Analyst 2017-9-7
Use
hRect = rectangle('Position', [x, y, width, height]);
to place the box, then when it comes time to delete the box so you can place the next one, delete the handle
delete(hRect);
hRect = rectangle('Position', [x, y, width, height]);

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by