Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can an RGB cell is filled in a particular region of an big image? (efficiently)

1 回表示 (過去 30 日間)
JAI PRAKASH
JAI PRAKASH 2018 年 8 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Sorry I asked this question before also, but still I am hoping if there is any better approach
I tried two methods but both are taking so much time.
1. zoomIm(2:5, 4:8, 1) = im(1, 1, 1);
zoomIm(2:5, 4:8, 2) = im(1, 1, 2);
zoomIm(2:5, 4:8, 3) = im(1, 1, 3);
2. zoomIm(2:5, 4:8, :) = repmat(im(1, 1, :), [5-2+1, 8-4+1, 1]);
Is it can be done something like below??
zoomIm(2:5, 4:8, :) = im(1, 1, :);

回答 (0 件)

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by