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 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