This is a static copy of a profile report

Home

applylut (53371 calls, 48.918 sec)
Generated 05-Nov-2014 07:53:53 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/images/images/applylut.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
bwmorph>perim8subfunction6058
bwmorph>perim4subfunction12115
bwmorph>dilatesubfunction35198
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
39
B = applylutc(A,lut);
5337140.746 s83.3%
38
[A,lut] = ParseInputs(varargin...
533717.510 s15.4%
All other lines  0.661 s1.4%
Totals  48.918 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
images/private/applylutcMEX-file5337139.795 s81.4%
applylut>ParseInputssubfunction533716.289 s12.9%
Self time (built-ins, overhead, etc.)  2.834 s5.8%
Totals  48.918 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function39
Non-code lines (comments, blank lines)37
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function B = applylut(varargin)
2 %APPLYLUT Neighborhood operations using lookup tables.
3 % A = APPLYLUT(BW,LUT) performs a 2-by-2 or 3-by-3 neighborhood
4 % operation on binary image BW by using a lookup table (LUT). LUT is
5 % either a 16-element or 512-element vector returned by MAKELUT. The
6 % vector consists of the output values for all possible 2-by-2 or
7 % 3-by-3 neighborhoods.
8 %
9 % Class Support
10 % -------------
11 % BW can be numeric or logical, and it must be real,
12 % two-dimensional, and nonsparse.
13 %
14 % LUT can be numeric or logical, and it must be a real vector with 16
15 % or 512 elements.
16 %
17 % If all the elements of LUT are 0 or 1, then A is logical; otherwise,
18 % if all the elements of LUT are integers between 0 and 255, then A is
19 % uint8; otherwise, A is double.
20 %
21 % Example
22 % -------
23 % In this example, you perform erosion using a 2-by-2 neighborhood. An
24 % output pixel is "on" only if all four of the input pixel's
25 % neighborhood pixels are "on."
26 %
27 % lut = makelut('sum(x(:)) == 4', 2);
28 % BW1 = imread('text.png');
29 % BW2 = applylut(BW1,lut);
30 % figure, imshow(BW1)
31 % figure, imshow(BW2)
32 %
33 % See also MAKELUT.
34
35 % Copyright 1993-2010 The MathWorks, Inc.
36 % $Revision: 1.19.4.7 $ $Date: 2010/05/13 17:36:08 $
37
7.51 53371 38 [A,lut] = ParseInputs(varargin{:});
40.75 53371 39 B = applylutc(A,lut);

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