Andre
Andre

Reputation: 1883

Confine all processing inside ROI

How do I confine this code (http://www.mathworks.com/help/vision/examples/motion-based-multiple-object-tracking.html) to happen only inside the ROI.

Similar to this one wherein a visible rectangle is specified and any vehicles that enter it are the only ones that are processed: enter image description here

(Source: https://www.youtube.com/watch?v=IPmG30byCyc)

Upvotes: 0

Views: 59

Answers (1)

Luke Greenwood
Luke Greenwood

Reputation: 501

https://uk.mathworks.com/help/images/ref/roipoly.html

As stated here, define your region, create a binary mask and mask your original image with it, as to only leave a region of interest.

Upvotes: 2

Related Questions