Display changing lines using Computer Vision Toolbox. PLEASE HELP!
Mostra commenti meno recenti
I am writing a program using the Computer Vision Toolbox. My program detects two objects by thresholding and then using Blob analysis to place bounding boxes around the objects. I would like to insert a line between the bounding boxes and eventually find the distances between the objects. However, the bounding boxes are only present when the objects are in the video and therefore the lines will not always be present. I have tried this:
if not(isempty(BBox))
if (size(BBox,1)> 2)
pts = [BBox(1,1) BBox(1,2) BBox(2,1) BBox(2,2)];
Imr = step(hshapeins, Imr, pts);
step(hAllObjects, Imr);
end
end
If anyone has any idea how to do this please comment!!! Thanks.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Image Processing and Computer Vision in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!