필터 지우기
필터 지우기

A simple question about vision.MarkerInserter.

조회 수: 1 (최근 30일)
Akira Chan
Akira Chan 2015년 7월 20일
댓글: Akira Chan 2015년 7월 26일
Hello guys,
I wanted to make a system in such a way that only when the object is in the area of interest, it will only be detected and accepted. Now, the problem is that I have used the vision.MarkerInserter but the matlab example don't provide enough information on how to apply the ROIInputPort. If I am not mistaken, it requires you to put in the parameters of the ROI like [x y height width]. The following is the code that I typed, can anyone tell me what I did wrong here? Thank you.
markInserter = vision.MarkerInserter('Shape', 'Circle', 'fill', true , 'BorderColor', 'white', 'ROIInputPort', 'true', [100, 0, 500, 800]);

채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 20일
markInserter = vision.MarkerInserter('Shape', 'Circle', 'fill', true , 'BorderColor', 'white', 'ROIInputPort', 'true');
ROI = [100, 0, 500, 800];
J = step(markerInserter,I,PTS,ROI);
for some I and PTS
  댓글 수: 3
Walter Roberson
Walter Roberson 2015년 7월 20일
Yes, similar for shapeInserter.
If you look at http://www.mathworks.com/help/vision/ref/vision.shapeinserter-class.html it appears likely that usually PTS would be fixed (the shape you want to insert), and that ROI would be what is detected by blob analyzer. PTS is taken relative to ROI.
Akira Chan
Akira Chan 2015년 7월 26일
Thank you very much for your help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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