How to copy one rgb image to another?
조회 수: 2 (최근 30일)
이전 댓글 표시

How to copy the rgb image inside yellow rectangle to a blank rgb image? I know the coordinates of the rectangle.
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2015년 2월 4일
you can extract your image im
a=im(x0:x1,y0:y1,:)
댓글 수: 3
Guillaume
2015년 2월 4일
Assuming that x is the horizontal coordinate, and y is the vertical coordinate with (1,1) top left corner, then it should be:
a = im(y0:y1, x0:x1, :); %matlab uses row/column coordinate system
Ashwathy, this is basic matrix manipulation. What don't you understand?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!