フィルターのクリア

add small image to large image in center without losing image quality

14 ビュー (過去 30 日間)
varinder kaur
varinder kaur 2018 年 5 月 12 日
コメント済み: Ameer Hamza 2018 年 5 月 12 日
i have a image containing some data. I want to add it into bigger image which contains zero. KINDLY HELP

採用された回答

Ameer Hamza
Ameer Hamza 2018 年 5 月 12 日
You can use indexing to place a smaller image inside a large image. For example if imageBig is 200x200x3 and imageSmall is 50x50x3 then use
imageBig(70:70+size(imageSmall,1)-1, 80:80+size(imageSmall,2)-1, :) = imageSmall;
this will place imageSmall over imageBig starting from (70, 80) pixels from topl ledt corner.
  8 件のコメント
varinder kaur
varinder kaur 2018 年 5 月 12 日
Thank you very much Ameer Hamza for quick reply. It works perfectly...
Ameer Hamza
Ameer Hamza 2018 年 5 月 12 日
You are welcome.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by