This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
29 | spfeat = spap2({param.xknots,p... | 202 | 2.433 s | 96.8% |  |
32 | spfeat.coefs = squeeze(spfeat.... | 202 | 0.040 s | 1.6% |  |
13 | param = ml_initparam(param,... | 202 | 0.030 s | 1.2% |  |
9 | if ~exist('param','var') | 202 | 0.010 s | 0.4% |  |
33 | spfeat.height = H-1; | 202 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 2.513 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
spap2 | function | 202 | 2.423 s | 96.4% |  |
squeeze | function | 202 | 0.030 s | 1.2% |  |
ml_initparam | function | 202 | 0.010 s | 0.4% |  |
Self time (built-ins, overhead, etc.) | | | 0.050 s | 2.0% |  |
Totals | | | 2.513 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 33 |
Non-code lines (comments, blank lines) | 18 |
Code lines (lines that can run) | 15 |
Code lines that did run | 13 |
Code lines that did not run | 2 |
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;