How to copy one rgb image to another?
1 回表示 (過去 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!