Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Drawing ROI on video frame

Asked by Yin Lok

Yin Lok (view profile)

on 21 Mar 2014
Latest activity Answered by Image Analyst

Image Analyst (view profile)

on 28 Mar 2014

Hi all, I am currently working a project on vehicle detection. The problem I encounter is that when I draw the ROI on the video frame using impoly and obtain the coordinates of the polygon using getPosition. However, when i try to show it with shapeinserter, it says the point input must be M by 2L matrix. but isn't that the type of matrix from getPosition is also n by 2?

0 Comments

Yin Lok

Yin Lok (view profile)

1 Answer

Answer by Image Analyst

Image Analyst (view profile)

on 28 Mar 2014
Accepted answer

Try just putting it up with plot(). I do it all the time over a live image and it works fine.

0 Comments

Image Analyst

Image Analyst (view profile)

Contact us