How to crop an image A which is a subset of an image B
이전 댓글 표시
I have two images where image A is a subset of image B.I could with feature matching technique - identify, match and show the images as a pair. Now that i have identified and matched image A with image B. i want to clip out(crop) that exact region from image B and create a new image. How can i do this, any help is appreciated ?
채택된 답변
추가 답변 (2개)
Thorsten
2015년 10월 12일
If I understood correctly, you have found the part in image B that is exactly like image A, and now you want to crop that part of image B. Because both are identical, the cropped image would be exactly like A, so you can just write
C = A;
댓글 수: 2
dheeraj surabhi
2015년 10월 12일
Thorsten
2015년 10월 12일
C = B(ind1,ind2,:);
where ind1, ind2 are the vectors ob indices that define the region.
Image Analyst
2015년 10월 12일
0 개 추천
You have said you "have identified and matched image A with image B". If you did that, then you know the coordinates, for example like I did in my attached normxcorr2() demo. So simply use imcrop() after that.
댓글 수: 2
dheeraj surabhi
2015년 10월 12일
Image Analyst
2015년 10월 12일
Sorry - I don't have the Computer Vision System Toolbox. Perhaps Dima will answer you.
카테고리
도움말 센터 및 File Exchange에서 ROI-Based Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!