This is a static copy of a profile report

Home

images/private/morphop>getPadValue (12524 calls, 0.170 sec)
Generated 05-Nov-2014 07:53:22 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/private/morphop.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
images/private/morphopfunction12524
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
98
if strcmp(op_type, 'dilate')
125240.050 s29.4%
104
if islogical(A)
125240.020 s11.8%
101
pad_value = Inf;
60600.020 s11.8%
100
else
60600.020 s11.8%
99
pad_value = -Inf;
64640.020 s11.8%
All other lines  0.040 s23.5%
Totals  0.170 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function14
Non-code lines (comments, blank lines)6
Code lines (lines that can run)8
Code lines that did run8
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
94 function pad_value = getPadValue(A, op_type)
95 % Returns the appropriate pad value, depending on whether we are performing
96 % erosion or dilation, and whether or not A is logical (binary).
97
0.05 12524 98 if strcmp(op_type, 'dilate')
0.02 6464 99 pad_value = -Inf;
0.02 6060 100 else
0.02 6060 101 pad_value = Inf;
0.01 6060 102 end
103
0.02 12524 104 if islogical(A)
105 % Use 0s and 1s instead of plus/minus Inf.
202 106 pad_value = max(min(pad_value, 1), 0);
202 107 end

Other subfunctions in this file are not included in this listing.