This is a static copy of a profile report

Home

maketform>getTransformType (8605 calls, 3.054 sec)
Generated 05-Nov-2014 07:52:58 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/maketform.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
maketformfunction8605
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
753
imatch = strmatch(low_type,tra...
86052.764 s90.5%
750
transform_names = {'affine','p...
86050.060 s2.0%
744
low_type = lower(type);
86050.040 s1.3%
755
switch length(imatch)
86050.030 s1.0%
743
if ischar(type)
86050.030 s1.0%
All other lines  0.130 s4.3%
Totals  3.054 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
cell.strmatchfunction86052.684 s87.9%
Self time (built-ins, overhead, etc.)  0.371 s12.1%
Totals  3.054 s100% 
Code Analyzer results
Line numberMessage
753STRMATCH will be removed in a future release. Use STRNCMP instead.
Coverage results
[ Show coverage for parent directory ]
Total lines in function22
Non-code lines (comments, blank lines)7
Code lines (lines that can run)15
Code lines that did run7
Code lines that did not run8
Coverage (did run/can run)46.67 %
Function listing
   time   calls  line
741 function transform_type = getTransformType(type)
742
0.03 8605 743 if ischar(type)
0.04 8605 744 low_type = lower(type);
745 else
746
747 error(message('images:maketform:invalidTransformType'))
748 end
749
0.06 8605 750 transform_names = {'affine','projective','composite','custom','box'};
751
752 % try to recognize the TransformType
2.76 8605 753 imatch = strmatch(low_type,transform_names);
754
0.03 8605 755 switch length(imatch)
0.02 8605 756 case 1 % one match
0.02 8605 757 transform_type = transform_names{imatch};
758 case 0 % no matches
759 error(message('images:maketform:unknownTransformType', type))
760 otherwise % more than one match
761 error(message('images:maketform:ambiguousTransformType', type))
762 end

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