How to work in a specific area in an image ?

조회 수: 5 (최근 30일)
Theodor Al Saify
Theodor Al Saify 2018년 5월 2일
댓글: Ameer Hamza 2018년 5월 3일
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

채택된 답변

Ameer Hamza
Ameer Hamza 2018년 5월 2일
편집: Ameer Hamza 2018년 5월 2일
smallImage = imcrop(originalImage, rectangle);
  댓글 수: 23
Theodor Al Saify
Theodor Al Saify 2018년 5월 3일
Thank you it works .
Ameer Hamza
Ameer Hamza 2018년 5월 3일
You are welcome.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Theodor Al Saify
Theodor Al Saify 2018년 5월 2일
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 2018년 5월 2일
편집: Theodor Al Saify 2018년 5월 2일
when using ur code i get this result. the starting point of the rectangle is not correct
  댓글 수: 2
Ameer Hamza
Ameer Hamza 2018년 5월 2일
@Theodor Al Saify, please use the comment section for discussion.
Theodor Al Saify
Theodor Al Saify 2018년 5월 2일
Ok no problem

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by