This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
maketform | function | 8605 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
753 | imatch = strmatch(low_type,tra... | 8605 | 2.764 s | 90.5% |  |
750 | transform_names = {'affine','p... | 8605 | 0.060 s | 2.0% |  |
744 | low_type = lower(type); | 8605 | 0.040 s | 1.3% |  |
755 | switch length(imatch) | 8605 | 0.030 s | 1.0% |  |
743 | if ischar(type) | 8605 | 0.030 s | 1.0% |  |
All other lines | | | 0.130 s | 4.3% |  |
Totals | | | 3.054 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
cell.strmatch | function | 8605 | 2.684 s | 87.9% |  |
Self time (built-ins, overhead, etc.) | | | 0.371 s | 12.1% |  |
Totals | | | 3.054 s | 100% | |
Code Analyzer results
Line number | Message |
753 | STRMATCH will be removed in a future release. Use STRNCMP instead. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 22 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 15 |
Code lines that did run | 7 |
Code lines that did not run | 8 |
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.