Reputation: 1883
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:
(Source: https://www.youtube.com/watch?v=IPmG30byCyc)
Upvotes: 0
Views: 59
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