Parallelization: Same operation for each layer of RGB image !!

조회 수: 1 (최근 30일)
JAI PRAKASH
JAI PRAKASH 2018년 11월 5일
How to improve the way 'zoomIm' is used?
[H, W, ~] = size(im);
zoomIm = zeros([H W 3], 'uint8');
parfor j=1:3
for i = 1:284000
if k(i)==1
zoomIm(startY(i):stopY(i), startX(i):stopX(i), j) = im(I(i), J(i), j);
end
end
end
I want parfor to parallelize RGB layers.
BTW- input variable's data is given in attached file :)
I want to parallelize RGB layer because each layer is taking same amount of time..
Any more efficient way apart of 'PARFOR' is also welcomed, which is supported for code generation.
Thanks for consideration :D

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by