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