Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How can an RGB cell is filled in a particular region of an big image? (efficiently)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193380/image.png)
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, :);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193381/image.png)
0 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!