How to work in a specific area in an image ?

2 views (last 30 days)
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

Accepted Answer

Ameer Hamza
Ameer Hamza on 2 May 2018
Edited: Ameer Hamza on 2 May 2018
smallImage = imcrop(originalImage, rectangle);
  23 Comments

Sign in to comment.

More Answers (2)

Theodor Al Saify
Theodor Al Saify on 2 May 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 on 2 May 2018
Edited: Theodor Al Saify on 2 May 2018
when using ur code i get this result. the starting point of the rectangle is not correct
  2 Comments
Ameer Hamza
Ameer Hamza on 2 May 2018
@Theodor Al Saify, please use the comment section for discussion.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!