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

2 ビュー (過去 30 日間)
prashant singh
prashant singh 2017 年 9 月 7 日
回答済み: Image Analyst 2017 年 9 月 7 日
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 Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by