Selecting ROI in a video file
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Praneetha Anand Goutham
le 28 Oct 2019
Réponse apportée : Hope Q
le 28 Oct 2019
Hello,
I am processing a video file to track the displacement of an object. I am manually selecting the ROI now using imrect, but want to do an automatic selection that has a defined size and position of the ROI. Does someone have a code for this? or can suggest something?
It would be of great help if you could share something please.
Thank you.
0 commentaires
Réponse acceptée
Hope Q
le 28 Oct 2019
Please note that imrect is no longer recommended.
If the region is known, i.e. if you can specify the desired rows and columns of the image, you can simply extract those rows and columns:
regionImage = frameImage(rowList,columunList);
If you wish to have an ROI that you can manipulate after it is initialized, consider the roi object rectangle method.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Preview and Device Configuration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!