Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matlab Vectorisation with cell help

조회 수: 1 (최근 30일)
MR. W
MR. W 2015년 4월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I'm new in matlab and facing some processing speed problem on the coding. So i had read and try to work with vectorisation and it didnt seem work, my example code is as below:
for i = 1:length_branch_point
branch_crop{i} = imcrop(I_resize,[ (branch_point_x(i)-3) (branch_point_y(i)-3) 6 6]);
branch_crop{i} = imresize(branch_crop{i}, [7 7]);
branch_lai{i} = mean2(branch_crop{i});
branch_lid{i} = std2(branch_crop{i});
end
where branch_point_x = [1 2 3] and branch_point_y = [3 4 5]
Can someone show me an example on how to vectorise the code above? Thanks in advance.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by