필터 지우기
필터 지우기

slow function about cimmino calculation

조회 수: 1 (최근 30일)
DestroyNWO
DestroyNWO 2013년 5월 19일
Hello ! I made a function to find the cimmino solution ( its about Computerized Tomography) but my function is really slow. From profiler i saw that the problem is in this part:
M = size(A,1);
d=zeros(M,1);
M_sq = sqrt(M);
for ii = 1:M
n = normest(A(ii,:));
if n~=0
d(ii) = 1/(M_sq*n);
end
end
Anyone has any idea to make it more efficient? In a typical run : A < 63616x2500 sparse double >
Thank you,Dimitris

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by