How to work in a specific area in an image ?

5 vues (au cours des 30 derniers jours)
Theodor Al Saify
Theodor Al Saify le 2 Mai 2018
Commenté : Ameer Hamza le 3 Mai 2018
After using the object detection technique (https://fr.mathworks.com/help/vision/examples/object-detection-in-a-cluttered-scene-using-point-feature-matching.html) and after i found the desired object in image and drew the rectangle. How can i start working inside the rectangle, for example to draw the contour of the object inside the green rectanle? I am new to the image processing tools and to matlab

Réponse acceptée

Ameer Hamza
Ameer Hamza le 2 Mai 2018
Modifié(e) : Ameer Hamza le 2 Mai 2018
smallImage = imcrop(originalImage, rectangle);
  23 commentaires
Theodor Al Saify
Theodor Al Saify le 3 Mai 2018
Thank you it works .
Ameer Hamza
Ameer Hamza le 3 Mai 2018
You are welcome.

Connectez-vous pour commenter.

Plus de réponses (2)

Theodor Al Saify
Theodor Al Saify le 2 Mai 2018
i am working on this image, i detected the desired object and drew a line around it. Now i want to crop the detected object to start working in it's area.

Theodor Al Saify
Theodor Al Saify le 2 Mai 2018
Modifié(e) : Theodor Al Saify le 2 Mai 2018
when using ur code i get this result. the starting point of the rectangle is not correct
  2 commentaires
Ameer Hamza
Ameer Hamza le 2 Mai 2018
@Theodor Al Saify, please use the comment section for discussion.
Theodor Al Saify
Theodor Al Saify le 2 Mai 2018
Ok no problem

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB 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!

Translated by