This is a static copy of a profile report

Home

tp_spcylfeat (202 calls, 2.513 sec)
Generated 05-Nov-2014 07:52:30 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/3D/vesicles/3D/tp_spcylfeat.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
tp_nucimgfeatfunction202
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
29
spfeat = spap2({param.xknots,p...
2022.433 s96.8%
32
spfeat.coefs = squeeze(spfeat....
2020.040 s1.6%
13
param = ml_initparam(param,...
2020.030 s1.2%
9
if ~exist('param','var')
2020.010 s0.4%
33
spfeat.height = H-1;
2020 s0%
All other lines  0 s0%
Totals  2.513 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
spap2function2022.423 s96.4%
squeezefunction2020.030 s1.2%
ml_initparamfunction2020.010 s0.4%
Self time (built-ins, overhead, etc.)  0.050 s2.0%
Totals  2.513 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function33
Non-code lines (comments, blank lines)18
Code lines (lines that can run)15
Code lines that did run13
Code lines that did not run2
Coverage (did run/can run)86.67 %
Function listing
   time   calls  line
1 function spfeat = tp_spcylfeat(surfmap,param)
2 % TP_CYLFEAT extract b-spline surface coefficients as generative
3 % features of cylindrical form of 3D surface
4
202 5 if nargin < 1
6 error('1 or 2 arguments are required');
7 end
8
0.01 202 9 if ~exist('param','var')
202 10 param = struct([]);
202 11 end
12
0.03 202 13 param = ml_initparam(param,...
14 struct('xorder',3,'yorder',4,...
15 'xknots',2,'yknots',6,...
16 'gapweight',1000) );
17 % struct('xorder',3,'yorder',4,...
18 % 'xknots',[0 0 0 .5 1 1 1],...
19 % 'yknots',[0 0 0 0 1/4 3/8 1/2 5/8 3/4 1 1 1 1],...
20 % 'gapweight',1000));
21
202 22 [H,W] = size(surfmap);
202 23 x = 0:(1/(H-1)):1;
202 24 y = -pi:(2*pi/(W-1)):pi;
202 25 w = ones(size(y));
202 26 w([1,end]) = param.gapweight;
27
28
2.43 202 29 spfeat = spap2({param.xknots,param.yknots},...
30 [param.xorder,param.yorder],{x,y},surfmap,{[],w});
31
0.04 202 32 spfeat.coefs = squeeze(spfeat.coefs);
202 33 spfeat.height = H-1;