MATLAB Profile Report: Function Details


ml_simec_demo     /home/ejr/ml/SImEC/demo/ml_simec_demo.m
Time: 4662.98 s    (100.0%)
Calls: 1
Self time: 0.01 s    (100.0%)

Function: Time Calls Time/call
ml_simec_demo 4662.98   1 4662.9800000000
 
Parent functions:
none
 
Child functions:
ml_simec 4662.92 100.0% 1 4662.9200000000
display 0.04 0.0% 9 0.0044444444
addpath 0.01 0.0% 1 0.0100000000


100% of the total time in this function was spent on the following lines:

0.01 0% 1:  addpath ('/home/ejr/ml/SImEC/matlab');
    2: 
 
    14: 
4662.97 100% 15:  [res, F, crit, both, features1, features2, slf_names, names, start_now] = ...

ml_simec     /home/ejr/ml/SImEC/matlab/ml_simec.m
Time: 4662.92 s    (100.0%)
Calls: 1
Self time: 0.05 s    (100.0%)

Function: Time Calls Time/call
ml_simec 4662.92   1 4662.9200000000
 
Parent functions:
ml_simec_demo 1  
 
Child functions:
ml_calcfeat 4660.40 99.9% 2 2330.2000000000
ml_compfeat 2.42 0.1% 1 2.4200000000
ml_report_writer 0.02 0.0% 1 0.0200000000
ml_confid_writer 0.01 0.0% 1 0.0100000000
num2str 0.01 0.0% 3 0.0033333333
save 0.01 0.0% 1 0.0100000000
strcat 0.00 0.0% 3 0.0000000000
double 0.00 0.0% 2 0.0000000000
exist 0.00 0.0% 2 0.0000000000
isempty 0.00 0.0% 2 0.0000000000
rem 0.00 0.0% 1 0.0000000000
floor 0.00 0.0% 2 0.0000000000
now 0.00 0.0% 1 0.0000000000
fprintf 0.00 0.0% 5 0.0000000000
nargin 0.00 0.0% 1 0.0000000000


99% of the total time in this function was spent on the following lines:

    80:  fprintf('%s\n', 'Calculating features for image set 1');
2610.01 56% 81:  [total_names1, total_features1, total_slf1, empty_pre1, empty_post1, ...
    82:  used_ims1, fs1, uc1] = ml_calcfeat(im_dir1, crop_dir1, dna_dir1, ...
 
    85:  fprintf('%s\n', 'Calculating features for image set 2');
2050.39 44% 86:  [total_names2, total_features2, total_slf2, empty_pre2, empty_post2, ...
    87:  used_ims2, fs2, uc2] = ml_calcfeat(im_dir2, crop_dir2, dna_dir2, ...
 
    98:  fprintf('%s\n', 'Comparing features');
2.44 0% 99:  [total_F, total_crit, total_res, total_both, succ] = ml_compfeat(double(total_features1), double(total_features2), conf);
    100:  %%%%%%%%%%%%%%% end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
    115:  if (saver)
0.03 0% 116:  save (strcat('simec_mat_', num2str(id), '.mat'), 'total_F', ...
    117:  'total_crit', 'total_res', 'total_both', ...
 
    122:  'uc2', 'succ', 'im_name1', 'im_name2');  
0.03 0% 123:  ml_report_writer(strcat('simec_report_', num2str(id), '.html'), ...
    124:  total_F, total_crit, total_res, conf, id, ...
 
    129:  if (total_res)
0.02 0% 130:  ml_confid_writer(strcat('simec_confid_', num2str(id), ...
    131:  '.html'), total_both, total_slf, id);

ml_calcfeat     /home/ejr/ml/SImEC/matlab/ml_calcfeat.m
Time: 4660.40 s    (99.9%)
Calls: 2
Self time: 0.41 s    (99.9%)

Function: Time Calls Time/call
ml_calcfeat 4660.40   2 2330.2000000000
 
Parent functions:
ml_simec 2  
 
Child functions:
ml_featset 4633.45 99.4% 180 25.7413888889
ml_readimage 23.28 0.5% 540 0.0431111111
max 2.15 0.0% 720 0.0029861111
double 0.88 0.0% 540 0.0016296296
ml_file_check 0.16 0.0% 6 0.0266666667
fprintf 0.03 0.0% 360 0.0000833333
vertcat 0.02 0.0% 180 0.0001111111
display 0.01 0.0% 180 0.0000555556
isempty 0.01 0.0% 186 0.0000537634
length 0.00 0.0% 180 0.0000000000
cat 0.00 0.0% 540 0.0000000000
cellhorzcat 0.00 0.0% 186 0.0000000000
nargin 0.00 0.0% 12 0.0000000000


99% of the total time in this function was spent on the following lines:

    39: 
0.06 0% 40:  [im_files, num_im_files, im_dir] = ml_file_check(im_dir);
    41: 
    42:  if (~isempty(dna_dir))
0.05 0% 43:  [dna_files, num_dna_files, dna_dir] = ml_file_check(dna_dir);
    44:  if (num_dna_files ~= num_im_files)
 
    57:  if (~isempty(crop_dir))
0.06 0% 58:  [crop_files, num_crop_files, crop_dir] = ml_file_check(crop_dir);
    59:  if (num_crop_files ~= num_im_files)
 
    110:  fprintf('%s %2d %s %d%s', 'Calculating image', i, 'of', num_im_files, '.')
0.06 0% 111:  image = cat(2, im_dir, im_files{i});
11.28 0% 112:  image = double(ml_readimage(image));
0.05 0% 113:  dna = cat(2, dna_dir, dna_files{i});
11.17 0% 114:  dna = double(ml_readimage(dna));
    115:  crop = cat(2, crop_dir, crop_files{i});
1.81 0% 116:  crop = double(ml_readimage(crop));
    117: 
    118:  %%%%%%%%%%%%% Single image processing %%%%%%%%%%%%%%%%%%
2.16 0% 119:  if (max(max(image))) 
4633.55 99% 120:  [names, values, slf] = ml_featset(image, crop, dna, featsetname);
    121:  if (isempty(total_names))

ml_featset     /home/ejr/ml/SImEC/matlab/ml_featset.m
Time: 4633.45 s    (99.4%)
Calls: 180
Self time: 0.19 s    (99.4%)

Function: Time Calls Time/call
ml_featset 4633.45   180 25.7413888889
 
Parent functions:
ml_calcfeat 180  
 
Child functions:
ml_features 4582.61 98.9% 180 25.4589444444
ml_preprocess 50.52 1.1% 180 0.2806666667
load 0.12 0.0% 180 0.0006666667
nargin 0.01 0.0% 720 0.0000138889
isempty 0.00 0.0% 180 0.0000000000
cellhorzcat 0.00 0.0% 180 0.0000000000
display 0.00 0.0% 180 0.0000000000
strcmp 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    51:  RequiredArgs = 4;
0.01 0% 52:  if( nargin <= MaxArgs-1)
    53:  bgsub = 'yesbgsub';
 
    57:  end
0.02 0% 58:  if( nargin <= MaxArgs-3) % three missing arguments
    59:  scale = 0;
 
    66:  % Determine if user requested Michael Boland way of preprocessing
0.01 0% 67:  if( strcmp(featsetname(1:3),'mb_'))
    68:  way = 'mb';
 
    74:  % Sort out which features need calculating
0.12 0% 75:  load /home/shared/matlab/feat_subset_idx
    76:  switch featsetname
 
    105:  case 'nodna_nohar'
0.01 0% 106:  subsetlist = {'img' 'hul' 'zer' 'edg'};
    107:  use_dna = 0;
 
    168:  % Preprocess the image
50.60 1% 169:  [procimage, prot_maskimage,nonobjimg] = ml_preprocess( image, cropimage, ...
    170:  way, bgsub);
0.01 0% 171:  if( isempty(procimage))
    172:  features = zeros(1,length(subset_index));
 
    193:  % Calculate features
4582.65 99% 194:  [n,f,s] = ml_features( procimage, procdnaimage, prot_maskimage, ...
    195:  subsetlist, scale, radius, nonobjimg);

ml_features     /home/ejr/ml/SImEC/matlab/ml_features.m
Time: 4582.61 s    (98.3%)
Calls: 180
Self time: 0.14 s    (98.3%)

Function: Time Calls Time/call
ml_features 4582.61   180 25.4589444444
 
Parent functions:
ml_featset 180  
 
Child functions:
ml_zernike 4262.45 93.0% 180 23.6802777778
ml_imgedgefeatures 197.74 4.3% 180 1.0985555556
ml_hullfeatures 80.81 1.8% 180 0.4489444444
ml_imgfeatures 28.21 0.6% 180 0.1567222222
ml_imgconvhull 11.08 0.2% 180 0.0615555556
max 2.13 0.0% 360 0.0059166667
horzcat 0.03 0.0% 2160 0.0000138889
length 0.01 0.0% 180 0.0000555556
cellhorzcat 0.01 0.0% 540 0.0000185185
abs 0.00 0.0% 180 0.0000000000
double 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 720 0.0000000000
nargin 0.00 0.0% 1080 0.0000000000


99% of the total time in this function was spent on the following lines:

    111: 
2.13 0% 112:  if (max(max(procimage))==0)
    113:  error('Image has no non-zero pixels in it');
 
    174:  %    the number of pixels to call a unit circle...
4262.45 93% 175:  [znames, zvalues] = ml_zernike(procimage, 12, radius);
    176: 
 
    178:  feat_names = [feat_names znames];
0.03 0% 179:  feat_vals = [feat_vals abs(zvalues)];
    180: 
 
    214:  %save('ml_test6','procimage','dnaimage');
28.23 1% 215:  [imagenames, imagevalues] = ml_imgfeatures(procimage, dnaimage);
    216:  % Do the rescaling of features that are affected by image
    217:  % scale
0.01 0% 218:  if( scale_factor ~= 1)
    219:  index = find( strcmp( imagenames, cellstr('object_size:average')));
 
    228: 
0.01 0% 229:  feat_slf = [feat_slf imageslf];
    230:  feat_names = [feat_names imagenames];
 
    238:  % Find the convex hull
11.09 0% 239:  imagehull = ml_imgconvhull(imagemask);
    240:  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
    250:  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80.81 2% 251:  [hullnames, hullvalues] = ml_hullfeatures(procimage, imagehull);
    252:  feat_slf = [feat_slf hullslf];
 
    260:  case 'edg'
197.80 4% 261:  [edgenames, edgevalues] = ml_imgedgefeatures(procimage);
    262:  feat_slf = [feat_slf edgeslf];
 
    301:  end
0.01 0% 302:  end
    303: 

ml_zernike     /home/ejr/ml/SImEC/matlab/ml_zernike.m
Time: 4262.45 s    (91.4%)
Calls: 180
Self time: 3.30 s    (91.4%)

Function: Time Calls Time/call
ml_zernike 4262.45   180 23.6802777778
 
Parent functions:
ml_features 180  
 
Child functions:
ml_Znl 4238.64 99.4% 8820 0.4805714286
ml_imgmoments 13.35 0.3% 720 0.0185416667
mod 2.83 0.1% 16380 0.0001727717
cellstr 2.53 0.1% 8820 0.0002868481
find 0.80 0.0% 360 0.0022222222
sprintf 0.53 0.0% 8820 0.0000600907
horzcat 0.27 0.0% 17640 0.0000153061
sum 0.13 0.0% 8820 0.0000147392
double 0.06 0.0% 8820 0.0000068027
sqrt 0.01 0.0% 180 0.0000555556
cellhorzcat 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    25:  %
0.80 0% 26:  [Y,X,P] = find(I) ;
    27: 
 
    31:  %
6.84 0% 32:  Xn = (X-ml_imgmoments(I,1,0)/ml_imgmoments(I,0,0))/R ;
6.67 0% 33:  Yn = (Y-ml_imgmoments(I,0,1)/ml_imgmoments(I,0,0))/R ;
    34: 
 
    37:  %
0.03 0% 38:  k = find(sqrt(Xn.^2 + Yn.^2) <= 1.0) ;
    39: 
 
    41:  for n=0:D,
0.01 0% 42:  for l=0:n,
3.27 0% 43:  if (mod(n-l,2)==0)
3.36 0% 44:  znames = [znames cellstr(sprintf('Z_%i,%i', n, l))] ;
4241.43 100% 45:  zvalues = [zvalues ml_Znl(n, l, Xn(k), Yn(k), ...
    46:  double(P(k))/sum(P))] ;
    47:  end
0.04 0% 48:  end
    49:  end

ml_Znl     /home/ejr/ml/SImEC/matlab/ml_Znl.m
Time: 4238.64 s    (90.9%)
Calls: 8820
Self time: 1234.59 s    (90.9%)

Function: Time Calls Time/call
ml_Znl 4238.64   8820 0.4805714286
 
Parent functions:
ml_zernike 8820  
 
Child functions:
ml_factorial 2900.74 68.4% 29263780 0.0000991239
sum 30.73 0.7% 7315945 0.0000042004
atan2 26.37 0.6% 7315945 0.0000036045
exp 23.86 0.6% 7315945 0.0000032614
conj 22.22 0.5% 7315945 0.0000030372
length 0.09 0.0% 44100 0.0000020408
nargin 0.04 0.0% 8820 0.0000045351


99% of the total time in this function was spent on the following lines:

    12: 
0.15 0% 13:  if nargin~=5
    14:  error('This function required five parameters.') ;
 
    16: 
0.05 0% 17:  Znl = 0 ;
    18: 
0.28 0% 19:  if (length(X) ~= length(Y) | length(Y) ~= length(F))
    20:  error('X, Y, and F must have the same length.') ;
 
    22: 
0.16 0% 23:  m=0:(n-l)/2 ;
    24: 
0.13 0% 25:  for index=1:length(X),
4225.80 100% 26:  Znl =  Znl + conj( sum((-1).^m .* (ml_factorial(n-m)/...
    27:  (ml_factorial(m) .* ml_factorial((n-2.*m+l)/2) .* ...
 
    31:  F(index) ;
11.85 0% 32:  end
    33: 
0.14 0% 34:  Znl = Znl * (n+1)/pi ;

ml_factorial     /home/ejr/ml/SImEC/matlab/ml_factorial.m
Time: 2900.74 s    (62.2%)
Calls: 29263780
Self time: 1782.93 s    (62.2%)

Function: Time Calls Time/call
ml_factorial 2900.74   29263780 0.0000991239
 
Parent functions:
ml_Znl 29263780  
 
Child functions:
horzcat 663.89 22.9% 83610800 0.0000079402
prod 353.83 12.2% 83610800 0.0000042319
nargin 100.09 3.5% 29263780 0.0000034203


95% of the total time in this function was spent on the following lines:

    10: 
285.61 10% 11:  if nargin ~= 1
    12:  error('Please supply a single numeric argument.') ;
 
    14: 
78.05 3% 15:  factorial=[] ;
    16: 
109.48 4% 17:  for n=x
2145.40 74% 18:  factorial = [factorial prod(1:n)] ;
152.52 5% 19:  end

horzcat     Builtin-function
Time: 664.44 s    (14.2%)
Calls: 83647852
Self time: 664.44 s    (14.2%)

Function: Time Calls Time/call
horzcat 664.44   83647852 0.0000079433
 
Parent functions:
ml_report_writer 2  
datestr 2  
strcat 7  
num2str 12  
ml_uni_confid_eval 1  
ml_compfeat 1  
ml_imgedgefeatures 540  
hist 360  
impad/ParseInputs 180  
bwfill/ParseInputs 360  
bwselect/ParseInputs 360  
edge 180  
repmat 182  
edge/parse_inputs 180  
ml_factorial 83610800  
ml_zernike 17640  
ml_hullfeatures 1620  
roipoly 2199  
roipoly/parse_inputs 360  
convhull 540  
delaunay 180  
ml_features 2160  
ml_imgfeatures 7820  
imfeature/ComputeBoundingBox 180  
imfeature/ComputePixelList 180  
filter2 540  
fcnchk 180  
flipdim 180  
linspace 540  
ml_tclread 360  
path 4  
addpath 2  
 
Child functions:
none



prod     Builtin-function
Time: 353.91 s    ( 7.6%)
Calls: 83617514
Self time: 353.91 s    ( 7.6%)

Function: Time Calls Time/call
prod 353.91   83617514 0.0000042325
 
Parent functions:
ttest2 65  
distchck 3227  
cov 2  
conv 360  
edge/parse_inputs 360  
ml_factorial 83610800  
roipoly 180  
unique 180  
convhull 180  
bweuler 180  
repmat 1440  
imhist/parse_inputs 540  
 
Child functions:
none



ml_imgedgefeatures     /home/ejr/ml/SImEC/matlab/ml_imgedgefeatures.m
Time: 197.74 s    ( 4.2%)
Calls: 180
Self time: 5.54 s    ( 4.2%)

Function: Time Calls Time/call
ml_imgedgefeatures 197.74   180 1.0985555556
 
Parent functions:
ml_features 180  
 
Child functions:
edge 113.39 57.3% 180 0.6299444444
filter2 62.89 31.8% 360 0.1746944444
bwarea 7.18 3.6% 360 0.0199444444
im2bw 2.53 1.3% 180 0.0140555556
sqrt 2.28 1.2% 180 0.0126666667
find 1.74 0.9% 360 0.0048333333
atan2 1.50 0.8% 180 0.0083333333
cellstr 0.38 0.2% 1800 0.0002111111
hist 0.29 0.1% 360 0.0008055556
horzcat 0.01 0.0% 540 0.0000185185
max 0.01 0.0% 360 0.0000277778
sum 0.00 0.0% 540 0.0000000000
abs 0.00 0.0% 360 0.0000000000
min 0.00 0.0% 180 0.0000000000
cellhorzcat 0.00 0.0% 360 0.0000000000


99% of the total time in this function was spent on the following lines:

    35:  %
123.29 62% 36:  A = bwarea(edge(imageproc,'canny',[]))/bwarea(im2bw(imageproc)) ;
    37: 
 
    62:  % built-in function).
34.77 18% 63:  iprocN = filter2(N,imageproc) ;
28.13 14% 64:  iprocW = filter2(W,imageproc) ;
    65: 
 
    68:  %
6.20 3% 69:  iprocmag = sqrt(iprocN.^2 + iprocW.^2) ;
1.51 1% 70:  iproctheta = atan2(iprocN, iprocW) ;
    71:  % As mentioned above, under Matlab 5 the filter2 function can
 
    76:  % for west facing edges.
2.04 1% 77:  iproctheta(find(iproctheta==-pi))=pi;
    78: 
 
    85:  %
1.04 1% 86:  nonzero = find(iprocmag);
    87:  v = iproctheta(nonzero);
 
    92:  %
0.16 0% 93:  h = hist(v,8) ;
    94: 
 
    127: 
0.18 0% 128:  names = [names cellstr('edges:area_fraction') ...
    129:  cellstr('edges:homogeneity') ...
 
    132:  cellstr('edges:direction_difference')] ;
0.23 0% 133:  slfnames = [slfnames cellstr('SLF1.9') ...
    134:  cellstr('SLF1.10') ...

edge     /usr/local/matlab/toolbox/images/images/edge.m
Time: 113.39 s    ( 2.4%)
Calls: 180
Self time: 16.56 s    ( 2.4%)

Function: Time Calls Time/call
edge 113.39   180 0.6299444444
 
Parent functions:
ml_imgedgefeatures 180  
 
Child functions:
edge/cannyFindLocalMaxima 51.19 45.1% 720 0.0710972222
bwmorph 28.28 24.9% 180 0.1571111111
conv2 5.90 5.2% 360 0.0163888889
bwselect 4.16 3.7% 180 0.0231111111
imhist 2.33 2.1% 180 0.0129444444
sqrt 2.28 2.0% 180 0.0126666667
max 2.17 1.9% 360 0.0060277778
repmat 0.27 0.2% 180 0.0015000000
edge/parse_inputs 0.16 0.1% 180 0.0008888889
rem 0.03 0.0% 180 0.0001666667
vertcat 0.02 0.0% 900 0.0000222222
horzcat 0.01 0.0% 180 0.0000555556
min 0.01 0.0% 180 0.0000555556
conv 0.01 0.0% 180 0.0000555556
isempty 0.01 0.0% 360 0.0000277778
nargout 0.00 0.0% 180 0.0000000000
floor 0.00 0.0% 180 0.0000000000
cumsum 0.00 0.0% 180 0.0000000000
sum 0.00 0.0% 180 0.0000000000
find 0.00 0.0% 360 0.0000000000
exp 0.00 0.0% 540 0.0000000000
strcmp 0.00 0.0% 180 0.0000000000
logical 0.00 0.0% 180 0.0000000000
uint8 0.00 0.0% 180 0.0000000000
size 0.00 0.0% 720 0.0000000000
isa 0.00 0.0% 360 0.0000000000


99% of the total time in this function was spent on the following lines:

    202:  ca = size(a,2); 
9.18 8% 203:  ay = 255*a; ax = 255*a';    
    204: 
    205:  h = conv(gau,dgau);       
4.82 4% 206:  ax = conv2(ax, h, 'same').'; 
3.00 3% 207:  ay = conv2(ay, h, 'same'); 
6.27 6% 208:  mag = sqrt((ax.*ax) + (ay.*ay));
2.17 2% 209:  magmax = max(mag(:));
    210:  if magmax>0
1.09 1% 211:  mag = mag / magmax;   % normalize
    212:  end
 
    215:  if isempty(thresh) 
2.34 2% 216:  [counts,x]=imhist(mag, 64);
    217:  highThresh = min(find(cumsum(counts) > PercentOfPixelsNotEdges*m*n)) / 64;
 
    239:  for dir = 1:4
51.23 45% 240:  idxLocalMax = cannyFindLocalMaxima(dir,ax,ay,mag);
    241:  idxWeak = idxLocalMax(mag(idxLocalMax) > lowThresh);
 
    247:  cstrong = floor((idxStrong-1)/m)+1;
4.19 4% 248:  e = bwselect(e, cstrong, rstrong, 8);
28.28 25% 249:  e = bwmorph(e, 'thin', 1);  % Thin double (or triple) pixel wide contours
    250: 

nargin     Builtin-function
Time: 100.35 s    ( 2.2%)
Calls: 29300440
Self time: 100.35 s    ( 2.2%)

Function: Time Calls Time/call
nargin 100.35   29300440 0.0000034249
 
Parent functions:
profreport/ParseInputs 3  
ml_confid_writer 1  
datestr 2  
strcat 8  
strvcat 8  
log10 4  
num2str 4  
tinv 65  
tcdf 65  
ttest2 195  
ml_students_feats 2  
betapdf 461  
betainc 526  
betacdf 461  
betainv 66  
finv 1  
cov 6  
std 2  
ml_hotel 2  
hist 720  
impad/constant 180  
impad/ParseInputs 360  
bwfill/ParseInputs 180  
bwselect/ParseInputs 180  
edge/parse_inputs 360  
ml_factorial 29263780  
ml_Znl 8820  
ml_imgcentmoments 720  
bwperim 360  
axes2pix 360  
roipoly/parse_inputs 180  
unique 360  
delaunay 360  
convhull 180  
xychk 540  
var 860  
mean 1283  
ml_imgmoments 3420  
bwlabel 180  
repmat 2886  
bweuler 180  
cell/strmatch 1620  
imfeature/ParseInputs 360  
ml_features 1080  
rot90 540  
filter2 1080  
fcnchk 180  
roifilt2 180  
strmatch 1080  
bwmorph 1080  
im2bw 1620  
flipdim 180  
linspace 540  
imhist/parse_inputs 540  
ml_preprocess 180  
ml_featset 720  
readtif 360  
imftype 180  
imread/parse_inputs 180  
sortrows 372  
cell/sort 6  
deal 12  
ml_calcfeat 12  
datenum 1  
ml_simec 1  
path 4  
addpath 1  
 
Child functions:
none



ml_hullfeatures     /home/ejr/ml/SImEC/matlab/ml_hullfeatures.m
Time: 80.81 s    ( 1.7%)
Calls: 180
Self time: 0.58 s    ( 1.7%)

Function: Time Calls Time/call
ml_hullfeatures 80.81   180 0.4489444444
 
Parent functions:
ml_features 180  
 
Child functions:
ml_imgcentmoments 67.00 82.9% 720 0.0930555556
bwarea 7.09 8.8% 360 0.0196944444
bwperim 4.95 6.1% 180 0.0275000000
find 0.91 1.1% 180 0.0050555556
cellstr 0.23 0.3% 1080 0.0002129630
horzcat 0.04 0.0% 1620 0.0000246914
isbw 0.01 0.0% 180 0.0000555556
sqrt 0.00 0.0% 900 0.0000000000
length 0.00 0.0% 180 0.0000000000
cellhorzcat 0.00 0.0% 360 0.0000000000


99% of the total time in this function was spent on the following lines:

    27:  %
3.60 4% 28:  Ahull = bwarea(imagehull) ;
0.92 1% 29:  hullfract = length(find(imageproc))/Ahull ;
0.05 0% 30:  names = [names cellstr('convex_hull:fraction_of_overlap')] ;
    31:  slfnames = [slfnames cellstr('SLF1.14')] ;
 
    37:  %
8.50 11% 38:  Phull = bwarea(bwperim(imagehull)) ;
    39:  hullshape = (Phull^2)/(4*pi*Ahull) ;
0.05 0% 40:  names = [names cellstr('convex_hull:shape_factor')] ;
    41:  slfnames = [slfnames cellstr('SLF1.15')] ;
 
    46:  %
16.97 21% 47:  hull_mu00 = ml_imgcentmoments(imagehull,0,0) ;
16.65 21% 48:  hull_mu11 = ml_imgcentmoments(imagehull,1,1) ;
17.06 21% 49:  hull_mu02 = ml_imgcentmoments(imagehull,0,2) ;
16.78 21% 50:  hull_mu20 = ml_imgcentmoments(imagehull,2,0) ;
    51: 
 
    71:  names = [names cellstr('convex_hull:eccentricity')] ;
0.05 0% 72:  slfnames = [slfnames cellstr('SLF1.16')] ;
    73: 

ml_imgcentmoments     /home/ejr/ml/SImEC/matlab/ml_imgcentmoments.m
Time: 67.00 s    ( 1.4%)
Calls: 720
Self time: 17.31 s    ( 1.4%)

Function: Time Calls Time/call
ml_imgcentmoments 67.00   720 0.0930555556
 
Parent functions:
ml_hullfeatures 720  
 
Child functions:
ml_imgmoments 39.01 58.2% 2160 0.0180601852
ones 5.06 7.6% 1440 0.0035138889
double 3.58 5.3% 720 0.0049722222
sum 2.00 3.0% 1440 0.0013888889
size 0.03 0.0% 2160 0.0000138889
nargin 0.01 0.0% 720 0.0000138889
isa 0.00 0.0% 720 0.0000000000
isempty 0.00 0.0% 720 0.0000000000


99% of the total time in this function was spent on the following lines:

    24:  if (~isa(image,'double'))
3.63 5% 25:  image = double(image) ;
    26:  end
    27: 
13.90 21% 28:  m00 = ml_imgmoments(image, 0, 0) ;
12.70 19% 29:  m10 = ml_imgmoments(image, 1, 0) ;
12.76 19% 30:  m01 = ml_imgmoments(image, 0, 1) ;
    31: 
 
    41:  if x==0
2.52 4% 42:  xcoords = ones(size(image)) ;
    43:  else
2.09 3% 44:  xcoords = (ones(size(image,1),1) * (([1:size(image,2)] - cofx) .^ x)) ;
    45:  end
 
    53:  if y==0
2.53 4% 54:  ycoords = ones(size(image)) ;
    55:  else
1.83 3% 56:  ycoords = ((([1:size(image,1)]' - cofy) .^ y) * ones(1,size(image,2)));
    57:  end
 
    61:  %
6.60 10% 62:  xycoords = xcoords .* ycoords ;
    63: 
 
    66:  %
8.30 12% 67:  centralmoment = sum(sum(xycoords .* image)) ;

filter2     /usr/local/matlab/toolbox/matlab/datafun/filter2.m
Time: 66.19 s    ( 1.4%)
Calls: 540
Self time: 3.40 s    ( 1.4%)

Function: Time Calls Time/call
filter2 66.19   540 0.1225740741
 
Parent functions:
ml_imgedgefeatures 360  
roifilt2 180  
 
Child functions:
conv2 47.39 71.6% 540 0.0877592593
round 13.96 21.1% 1080 0.0129259259
all 1.20 1.8% 1440 0.0008333333
rot90 0.07 0.1% 540 0.0001296296
svd 0.05 0.1% 360 0.0001388889
error 0.02 0.0% 540 0.0000370370
nargin 0.02 0.0% 1080 0.0000185185
nargchk 0.02 0.0% 540 0.0000370370
conj 0.01 0.0% 360 0.0000277778
sqrt 0.01 0.0% 720 0.0000138889
max 0.01 0.0% 360 0.0000277778
size 0.01 0.0% 1080 0.0000092593
horzcat 0.01 0.0% 540 0.0000185185
isa 0.01 0.0% 1080 0.0000092593
sum 0.00 0.0% 360 0.0000000000
length 0.00 0.0% 360 0.0000000000
diag 0.00 0.0% 360 0.0000000000
isempty 0.00 0.0% 540 0.0000000000
find 0.00 0.0% 540 0.0000000000


99% of the total time in this function was spent on the following lines:

    28: 
0.06 0% 29:  error(nargchk(2,3,nargin));
    30:  if nargin<3, shape = 'same'; end
 
    39: 
0.05 0% 40:  code = [shape,' ']; code = code(1);
0.02 0% 41:  if isempty(find(code=='svf')), error('Unknown shape parameter.'); end
    42: 
    43:  [mx,nx] = size(x);
0.07 0% 44:  stencil = rot90(b,2);
    45:  [ms,ns] = size(stencil);
 
    48:  if (ms == 1)
3.22 5% 49:  y = conv2(1,stencil,x,shape);
    50:  elseif (ns == 1)
 
    59:  % Check rank (separability) of stencil
0.05 0% 60:  [u,s,v] = svd(stencil);
    61:  s = diag(s);
 
    65:  % Separable stencil
0.01 0% 66:  hcol = u(:,1) * sqrt(s(1));
0.02 0% 67:  hrow = conj(v(:,1)) * sqrt(s(1));
11.29 17% 68:  if (all(all((round(stencil) == stencil))) & all(all((round(x) == x))))
    69:  % Output should be integer
51.31 78% 70:  y = round(conv2(hcol, hrow, x, shape));
    71:  else

ml_imgmoments     /home/ejr/ml/SImEC/matlab/ml_imgmoments.m
Time: 62.12 s    ( 1.3%)
Calls: 3420
Self time: 43.20 s    ( 1.3%)

Function: Time Calls Time/call
ml_imgmoments 62.12   3420 0.0181637427
 
Parent functions:
ml_zernike 720  
ml_imgcentmoments 2160  
ml_imgfeatures 540  
 
Child functions:
sum 10.27 16.5% 6840 0.0015014620
ones 8.55 13.8% 3420 0.0025000000
isa 0.06 0.1% 3420 0.0000175439
size 0.02 0.0% 5580 0.0000035842
nargin 0.02 0.0% 3420 0.0000058480
isempty 0.00 0.0% 3420 0.0000000000


99% of the total time in this function was spent on the following lines:

    15: 
0.09 0% 16:  if nargin ~= 3
    17:  error('Please supply all three arguments (IMAGE, X, Y)') ;
 
    23:  %
0.02 0% 24:  if (isempty(image))
    25:  error('IMAGE is empty.') 
0.10 0% 26:  elseif (~isa(image,'double'))
    27:  image = double(image) ;
 
    34:  %
0.02 0% 35:  if x==0
    36:  if y==0
8.63 14% 37:  xcoords = ones(size(image)) ;
    38:  end
    39:  else 
6.04 10% 40:  xcoords = (ones(size(image,1),1) * ([1:size(image,2)] .^ x)) ;
    41:  end
 
    47:  %
0.05 0% 48:  if y~=0
    49:  %  ycoords = ones(size(image)) ;
5.87 9% 50:  ycoords = (([1:size(image,1)]' .^ y) * ones(1,size(image,2))) ;
    51:  end
 
    55:  %
0.03 0% 56:  if y==0
    57:  xycoords = xcoords ;
 
    66:  %
41.13 66% 67:  moment = sum(sum(xycoords .* image)) ;

conv2     Builtin-function
Time: 53.29 s    ( 1.1%)
Calls: 900
Self time: 53.29 s    ( 1.1%)

Function: Time Calls Time/call
conv2 53.29   900 0.0592111111
 
Parent functions:
edge 360  
filter2 540  
 
Child functions:
none



edge/cannyFindLocalMaxima     /usr/local/matlab/toolbox/images/images/edge.m
Time: 51.19 s    ( 1.1%)
Calls: 720
Self time: 47.35 s    ( 1.1%)

Function: Time Calls Time/call
edge/cannyFindLocalMaxima 51.19   720 0.0710972222
 
Parent functions:
edge 720  
 
Child functions:
find 3.41 6.7% 1440 0.0023680556
mod 0.42 0.8% 720 0.0005833333
isempty 0.01 0.0% 720 0.0000138889
abs 0.00 0.0% 720 0.0000000000
size 0.00 0.0% 720 0.0000000000


99% of the total time in this function was spent on the following lines:

    434:  case 1
14.33 28% 435:  idx = find((iy<=0 & ix>-iy)  | (iy>=0 & ix<-iy));
    436:  case 2
13.27 26% 437:  idx = find((ix>0 & -iy>=ix)  | (ix<0 & -iy<=ix));
    438:  case 3
11.75 23% 439:  idx = find((ix<=0 & ix>iy) | (ix>=0 & ix
    440:  case 4
10.79 21% 441:  idx = find((iy<0 & ix<=iy) | (iy>0 & ix>=iy));
    442:  end
 
    445:  if ~isempty(idx)
0.45 1% 446:  v = mod(idx,m);
0.12 0% 447:  extIdx = find(v==1 | v==0 | idx<=m | (idx>(n-1)*m));
    448:  idx(extIdx) = [];
 
    451:  ixv = ix(idx);  
0.07 0% 452:  iyv = iy(idx);   
0.07 0% 453:  gradmag = mag(idx);
    454: 
 
    459:  gradmag1 = mag(idx+m).*(1-d) + mag(idx+m-1).*d; 
0.04 0% 460:  gradmag2 = mag(idx-m).*(1-d) + mag(idx-m+1).*d; 
    461:  case 2
 
    467:  gradmag1 = mag(idx-1).*(1-d) + mag(idx-m-1).*d; 
0.06 0% 468:  gradmag2 = mag(idx+1).*(1-d) + mag(idx+m+1).*d; 
    469:  case 4

ml_preprocess     /home/ejr/ml/SImEC/matlab/ml_preprocess.m
Time: 50.52 s    ( 1.1%)
Calls: 180
Self time: 5.70 s    ( 1.1%)

Function: Time Calls Time/call
ml_preprocess 50.52   180 0.2806666667
 
Parent functions:
ml_featset 180  
 
Child functions:
ml_threshcrop 25.03 49.5% 180 0.1390555556
roifilt2 8.04 15.9% 180 0.0446666667
ml_imgbgsub 7.50 14.8% 180 0.0416666667
max 2.21 4.4% 720 0.0030694444
find 2.04 4.0% 360 0.0056666667
isempty 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    33:  %%% subtract background
7.50 15% 34:  image = ml_imgbgsub( image, 'common');
    35:  end
 
    42:  %%% Crop (or mask rather)
5.90 12% 43:  image( find( cropimage==0)) = 0;
    44:  % Make sure no cropping is done later
 
    54:  %%% Theshold
2.12 4% 55:  if (max(max(image))>0)
25.06 50% 56:  imagemask = ml_threshcrop(image, threshcropimage);
0.13 0% 57:  if (max(max(imagemask))>0)
8.26 16% 58:  procimage = roifilt2(0, image, ~imagemask);
    59:  resimg = image;
1.55 3% 60:  resimg(find(imagemask))=0;
    61:  else

sum     Builtin-function
Time: 44.70 s    ( 1.0%)
Calls: 7487474
Self time: 44.70 s    ( 1.0%)

Function: Time Calls Time/call
sum 44.70   7487474 0.0000059700
 
Parent functions:
cov 2  
std 2  
ml_imgedgefeatures 540  
filter2 360  
edge 180  
ml_Znl 7315945  
ml_zernike 8820  
ml_imgcentmoments 1440  
bwarea 720  
convhull 720  
var 430  
mean 1283  
ml_imgmoments 6840  
bweuler 180  
strmatch 1080  
ml_nihthreshold 148752  
ml_imgbgsub 180  
 
Child functions:
none



bwmorph     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 38.18 s    ( 0.8%)
Calls: 540
Self time: 0.23 s    ( 0.8%)

Function: Time Calls Time/call
bwmorph 38.18   540 0.0707037037
 
Parent functions:
edge 180  
bwperim 180  
ml_threshcrop 180  
 
Child functions:
feval 36.80 96.4% 540 0.0681481481
isequal 0.88 2.3% 540 0.0016296296
strmatch 0.10 0.3% 540 0.0001851852
deblank 0.06 0.2% 540 0.0001111111
vertcat 0.05 0.1% 1080 0.0000462963
nargchk 0.04 0.1% 540 0.0000740741
nargin 0.01 0.0% 1080 0.0000092593
isa 0.01 0.0% 540 0.0000185185
nargout 0.00 0.0% 1080 0.0000000000
length 0.00 0.0% 540 0.0000000000
isempty 0.00 0.0% 540 0.0000000000
lower 0.00 0.0% 540 0.0000000000
isstr 0.00 0.0% 540 0.0000000000
islogical 0.00 0.0% 540 0.0000000000
error 0.00 0.0% 540 0.0000000000


99% of the total time in this function was spent on the following lines:

    70:  %
0.05 0% 71:  error(nargchk(2,3,nargin));
    72:  if (nargin < 3)
 
    75: 
0.03 0% 76:  if (~isa(a, 'uint8') | ~islogical(a))
    77:  if isa(a,'uint16')
 
    94:  opString = lower(op);
0.03 0% 95:  matchStrings = [ ...
    96:  'bothat  ' 
 
    116:  'tophat  '];
0.02 0% 117:  functionStrings = [
    118:  'bothat  '
 
    138:  'tophat  '];
0.11 0% 139:  idx = strmatch(opString, matchStrings);
    140:  if (isempty(idx))
 
    151:  %
0.07 0% 152:  fcn = deblank(functionStrings(idx,:));
    153:  c = a;
 
    155:  done = n == 0;
0.05 0% 156:  while (~done)
    157:  lastc = c;
36.82 96% 158:  [c,lut] = feval(fcn, c);
0.90 2% 159:  done = ((iter >= n) | isequal(lastc, c));
0.03 0% 160:  iter = iter + 1;
    161:  end

feval     Builtin-function
Time: 37.41 s    ( 0.8%)
Calls: 900
Self time: 0.13 s    ( 0.8%)

Function: Time Calls Time/call
feval 37.41   900 0.0415666667
 
Parent functions:
impad/constant 180  
impad 180  
bwmorph 540  
 
Child functions:
bwmorph/thin 27.83 74.4% 180 0.1546111111
bwmorph/majority 4.51 12.1% 180 0.0250555556
bwmorph/perim4 4.38 11.7% 180 0.0243333333
impad/constant 0.56 1.5% 180 0.0031111111
uint8 0.00 0.0% 180 0.0000000000



applylut     /usr/local/matlab/toolbox/images/images/applylut.mexglx
Time: 29.20 s    ( 0.6%)
Calls: 1620
Self time: 29.20 s    ( 0.6%)

Function: Time Calls Time/call
applylut 29.20   1620 0.0180246914
 
Parent functions:
bwmorph/thin 360  
bwmorph/perim4 180  
bwarea 720  
bweuler 180  
bwmorph/majority 180  
 
Child functions:
none



ml_imgfeatures     /home/ejr/ml/SImEC/matlab/ml_imgfeatures.m
Time: 28.21 s    ( 0.6%)
Calls: 180
Self time: 0.83 s    ( 0.6%)

Function: Time Calls Time/call
ml_imgfeatures 28.21   180 0.1567222222
 
Parent functions:
ml_features 180  
 
Child functions:
ml_imgmoments 9.76 34.6% 540 0.0180740741
im2bw 4.95 17.5% 360 0.0137500000
imfeature 3.84 13.6% 180 0.0213333333
int32 2.72 9.6% 360 0.0075555556
max 2.09 7.4% 180 0.0116111111
gp_moments_1 1.10 3.9% 180 0.0061111111
bwlabel 1.01 3.6% 180 0.0056111111
double 0.97 3.4% 9210 0.0001053203
cellstr 0.70 2.5% 2880 0.0002430556
horzcat 0.09 0.3% 7820 0.0000115090
var 0.08 0.3% 360 0.0002222222
size 0.03 0.1% 3010 0.0000099668
mean 0.02 0.1% 360 0.0000555556
sqrt 0.01 0.0% 3010 0.0000033223
isempty 0.01 0.0% 3370 0.0000029674
eye 0.00 0.0% 3010 0.0000000000
end 0.00 0.0% 180 0.0000000000
cellhorzcat 0.00 0.0% 360 0.0000000000


96% of the total time in this function was spent on the following lines:

    46:  %
7.38 26% 47:  features = imfeature(double(im2bw(imageproc)), 'EulerNumber') ;
    48: 
 
    51:  %
3.53 13% 52:  imagelabeled = bwlabel(im2bw(imageproc)) ;
2.13 8% 53:  obj_number = max(imagelabeled(:)) ;
    54: 
 
    61:  %
3.39 12% 62:  imageproc_m00 = ml_imgmoments(imageproc,0,0) ;
3.31 12% 63:  imageproc_m01 = ml_imgmoments(imageproc,0,1) ;
3.18 11% 64:  imageproc_m10 = ml_imgmoments(imageproc,1,0) ;
    65:  imageproc_center = [imageproc_m10/imageproc_m00 imageproc_m01/imageproc_m00] ;
 
    98:  %
3.88 14% 99:  [img_moment00, img_moment10, img_moment01, obj_size] = gp_moments_1(int32(imageproc),... 
    100:  int32(imagelabeled));
 
    198:  obj_center = [obj_m10/obj_m00 obj_m01/obj_m00]; 
0.16 1% 199:  obj_distance = sqrt((obj_center - imageproc_center)...
    200:  *eye(2)*(obj_center - imageproc_center)') ;
 
    228: 
0.18 1% 229:  names = [names cellstr('object_size:average') ...
    230:  cellstr('object_size:variance') ...
 
    246:  cellstr('object_distance:ratio')] ;
0.14 0% 247:  slfnames = [slfnames cellstr('SLF1.6') ... 
    248:  cellstr('SLF1.7') ...

atan2     Builtin-function
Time: 27.87 s    ( 0.6%)
Calls: 7316305
Self time: 27.87 s    ( 0.6%)

Function: Time Calls Time/call
atan2 27.87   7316305 0.0000038093
 
Parent functions:
ml_imgedgefeatures 180  
ml_Znl 7315945  
angle 180  
 
Child functions:
none



bwmorph/thin     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 27.83 s    ( 0.6%)
Calls: 180
Self time: 18.66 s    ( 0.6%)

Function: Time Calls Time/call
bwmorph/thin 27.83   180 0.1546111111
 
Parent functions:
feval 180  
 
Child functions:
applylut 9.15 32.9% 360 0.0254166667
lutthin1 0.02 0.1% 180 0.0001111111
size 0.00 0.0% 180 0.0000000000
lutthin4 0.00 0.0% 180 0.0000000000
lutthin3 0.00 0.0% 180 0.0000000000
lutthin2 0.00 0.0% 180 0.0000000000
uint8 0.00 0.0% 900 0.0000000000
isempty 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    447: 
0.03 0% 448:  G1 = uint8(lutthin1);
    449:  G2 = uint8(lutthin2);
    450:  G3 = uint8(lutthin3);
0.02 0% 451:  G4 = uint8(lutthin4);
    452: 
 
    459:  lutlut = 1:512;
4.60 17% 460:  lookup = applylut(a, lutlut);
    461:  % Preallocate a uint8 zeros matrix
0.01 0% 462:  d = uint8(0);
    463:  [m,n] = size(a);
0.13 0% 464:  d(m,n) = 0;
    465: 
    466:  % First subiteration
8.77 32% 467:  d(:) = G1(lookup) & G2(lookup) & G3(lookup);
0.47 2% 468:  c = a & ~d;
    469: 
    470:  % Second subiteration
4.58 16% 471:  lookup = applylut(c, lutlut);
8.75 31% 472:  d(:) = G1(lookup) & G2(lookup) & G4(lookup);
0.44 2% 473:  c = c & ~d;

ml_threshcrop     /home/ejr/ml/SImEC/matlab/ml_threshcrop.m
Time: 25.03 s    ( 0.5%)
Calls: 180
Self time: 0.09 s    ( 0.5%)

Function: Time Calls Time/call
ml_threshcrop 25.03   180 0.1390555556
 
Parent functions:
ml_preprocess 180  
 
Child functions:
ml_nihscale 9.37 37.4% 180 0.0520555556
ml_nihthreshold 8.16 32.6% 180 0.0453333333
bwmorph 4.98 19.9% 180 0.0276666667
im2bw 2.43 9.7% 180 0.0135000000
isempty 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    16: 
9.39 38% 17:  Iscaled = ml_nihscale(image) ;
8.16 33% 18:  Timage = ml_nihthreshold(Iscaled) ;
2.44 10% 19:  Ithresh = im2bw(Iscaled, Timage) ;
5.04 20% 20:  mask = bwmorph(Ithresh, 'majority') ;
    21: 

exp     Builtin-function
Time: 23.86 s    ( 0.5%)
Calls: 7317472
Self time: 23.86 s    ( 0.5%)

Function: Time Calls Time/call
exp 23.86   7317472 0.0000032607
 
Parent functions:
betapdf 461  
betainc 526  
edge 540  
ml_Znl 7315945  
 
Child functions:
none



ml_readimage     /home/ejr/ml/SImEC/matlab/ml_readimage.m
Time: 23.28 s    ( 0.5%)
Calls: 540
Self time: 0.05 s    ( 0.5%)

Function: Time Calls Time/call
ml_readimage 23.28   540 0.0431111111
 
Parent functions:
ml_calcfeat 540  
 
Child functions:
ml_tclread 22.36 96.0% 360 0.0621111111
imread 0.87 3.7% 180 0.0048333333
length 0.00 0.0% 540 0.0000000000
isempty 0.00 0.0% 540 0.0000000000


99% of the total time in this function was spent on the following lines:

    17:  L = length( filename);
0.01 0% 18:  extension = filename(L-2:L);
    19: 
 
    38:  case 'dat'
22.38 96% 39:  image = ml_tclread( filename);
    40:  otherwise
0.88 4% 41:  image = imread( filename);
    42:  end

ml_tclread     /home/ejr/ml/SImEC/matlab/ml_tclread.m
Time: 22.36 s    ( 0.5%)
Calls: 360
Self time: 3.89 s    ( 0.5%)

Function: Time Calls Time/call
ml_tclread 22.36   360 0.0621111111
 
Parent functions:
ml_readimage 360  
 
Child functions:
fread 18.35 82.1% 2160 0.0084953704
fseek 0.05 0.2% 720 0.0000694444
fopen 0.03 0.1% 360 0.0000833333
fclose 0.02 0.1% 360 0.0000555556
horzcat 0.02 0.1% 360 0.0000555556


100% of the total time in this function was spent on the following lines:

    6: 
0.04 0% 7:  f = fopen( filename, 'r', 'ieee-be');
    8:  if( f == -1); error(['Could not open file: ' filename]); end;
    9: 
0.04 0% 10:  fseek( f, 0, 'bof');
0.32 1% 11:  BytesPerPixel = fread( f, 1, 'uint16');
0.07 0% 12:  ImageWidth = fread( f, 1, 'uint16');
0.01 0% 13:  ImageHeight = fread( f, 1, 'uint16');
0.01 0% 14:  SequenceNumber = fread( f, 1, 'uint16');
    15:  BitsPerPixel = fread( f, 1, 'uint16');
 
    23: 
0.01 0% 24:  fseek( f, BEGINNING_OF_DATA, 'bof');
21.84 98% 25:  image = fread( f, [ImageWidth,ImageHeight], PIXEL_TYPE)';
    26: 
0.02 0% 27:  fclose( f);

conj     Builtin-function
Time: 22.23 s    ( 0.5%)
Calls: 7316736
Self time: 22.23 s    ( 0.5%)

Function: Time Calls Time/call
conj 22.23   7316736 0.0000030382
 
Parent functions:
std 1  
filter2 360  
ml_Znl 7315945  
var 430  
 
Child functions:
none



fread     Builtin-function
Time: 18.38 s    ( 0.4%)
Calls: 2340
Self time: 18.38 s    ( 0.4%)

Function: Time Calls Time/call
fread 18.38   2340 0.0078547009
 
Parent functions:
imftype/istif 180  
ml_tclread 2160  
 
Child functions:
none



max     Builtin-function
Time: 17.33 s    ( 0.4%)
Calls: 22768
Self time: 17.33 s    ( 0.4%)

Function: Time Calls Time/call
max 17.33   22768 0.0007611560
 
Parent functions:
strcat 11  
num2str 8  
ml_students_feats 130  
betainv 461  
std 1  
ml_imgedgefeatures 360  
hist 1080  
filter2 360  
edge 360  
axes2pix 720  
delaunay 360  
ml_imgfeatures 180  
bwlabel 180  
imfeature/ComputeBoundingBox 360  
imfeature 180  
ml_features 360  
flipdim 180  
ml_nihscale 360  
ml_preprocess 720  
ml_imgcommonpixel 540  
ml_calcfeat 720  
addpath 1  
deblank 15136  
 
Child functions:
none



bwarea     /usr/local/matlab/toolbox/images/images/bwarea.m
Time: 14.27 s    ( 0.3%)
Calls: 720
Self time: 1.40 s    ( 0.3%)

Function: Time Calls Time/call
bwarea 14.27   720 0.0198194444
 
Parent functions:
ml_imgedgefeatures 360  
ml_hullfeatures 360  
 
Child functions:
applylut 11.17 78.3% 720 0.0155138889
repmat 1.01 7.1% 720 0.0014027778
sum 0.67 4.7% 720 0.0009305556
end 0.01 0.1% 1440 0.0000069444
uint8 0.01 0.1% 720 0.0000138889
size 0.00 0.0% 720 0.0000000000
isa 0.00 0.0% 720 0.0000000000


100% of the total time in this function was spent on the following lines:

    35:  % Need to zero-pad the input.
1.07 7% 36:  bb = repmat(uint8(0),size(b)+2);
1.27 9% 37:  bb(2:end-1,2:end-1) = b;
    38: 
11.24 79% 39:  weights = applylut(bb,lut);
0.69 5% 40:  a = sum(weights(:))/8;

round     Builtin-function
Time: 14.02 s    ( 0.3%)
Calls: 4361
Self time: 14.02 s    ( 0.3%)

Function: Time Calls Time/call
round 14.02   4361 0.0032148590
 
Parent functions:
datestr 2  
filter2 1080  
bwfill/ParseInputs 360  
bwselect/ParseInputs 360  
intline 2199  
imfeature 180  
ml_nihthreshold 180  
 
Child functions:
none



ones     Builtin-function
Time: 13.67 s    ( 0.3%)
Calls: 26483
Self time: 13.67 s    ( 0.3%)

Function: Time Calls Time/call
ones 13.67   26483 0.0005161802
 
Parent functions:
betacdf 461  
betacore 526  
betainv 66  
repmat 6  
std 1  
mod 17104  
ml_imgcentmoments 1440  
roipoly 2199  
ml_imgmoments 3420  
strmatch 1080  
flipdim 180  
 
Child functions:
none



ml_imgconvhull     /home/ejr/ml/SImEC/matlab/ml_imgconvhull.m
Time: 11.08 s    ( 0.2%)
Calls: 180
Self time: 0.05 s    ( 0.2%)

Function: Time Calls Time/call
ml_imgconvhull 11.08   180 0.0615555556
 
Parent functions:
ml_features 180  
 
Child functions:
roipoly 5.96 53.8% 180 0.0331111111
convhull 4.56 41.2% 180 0.0253333333
find 0.51 4.6% 180 0.0028333333
isempty 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    18:  %
0.51 5% 19:  [Ty, Tx] = find(bwimage) ;
4.57 41% 20:  k = convhull(Tx,Ty) ;
    21: 
 
    24:  %
5.99 54% 25:  hull = roipoly(bwimage, Tx(k), Ty(k)) ;

find     Builtin-function
Time: 11.02 s    ( 0.2%)
Calls: 32637
Self time: 11.02 s    ( 0.2%)

Function: Time Calls Time/call
find 11.02   32637 0.0003376536
 
Parent functions:
num2str/lefttrim 4  
num2str 4  
tinv 390  
tcdf 260  
betapdf 1383  
betainc 2104  
betacdf 1844  
betainv 1186  
std 1  
ml_imgedgefeatures 360  
bwfill 360  
bwfill/ParseInputs 180  
bwselect/ParseInputs 180  
edge/cannyFindLocalMaxima 1440  
edge 360  
ml_zernike 360  
ml_hullfeatures 180  
roipoly 2199  
convhull 180  
unique 720  
ml_imgconvhull 180  
mean 1103  
imfeature/ComputePixelList 360  
filter2 540  
strmatch 1080  
ml_preprocess 360  
imftype 180  
path 2  
addpath 1  
deblank 15136  
 
Child functions:
none



im2bw     /usr/local/matlab/toolbox/images/images/im2bw.m
Time: 9.91 s    ( 0.2%)
Calls: 720
Self time: 5.05 s    ( 0.2%)

Function: Time Calls Time/call
im2bw 9.91   720 0.0137638889
 
Parent functions:
ml_imgedgefeatures 180  
ml_imgfeatures 360  
ml_threshcrop 180  
 
Child functions:
uint8 4.82 48.6% 720 0.0066944444
nargout 0.03 0.3% 720 0.0000416667
nargin 0.01 0.1% 1620 0.0000061728
isa 0.00 0.0% 1440 0.0000000000
isempty 0.00 0.0% 720 0.0000000000
size 0.00 0.0% 180 0.0000000000
islogical 0.00 0.0% 720 0.0000000000
ndims 0.00 0.0% 720 0.0000000000


99% of the total time in this function was spent on the following lines:

    36: 
0.01 0% 37:  if nargin==0,
    38:  error('Need input arguments.');
    39:  end
0.01 0% 40:  threeD = (ndims(p1)==3); % Determine if input includes a 3-D array
    41: 
0.02 0% 42:  if ~islogical(p1)  % Make sure we didn't get a binary image
    43: 
0.01 0% 44:  if nargin==1, % im2bw(I) or im2bw(RGB)
    45:  if threeD,
 
    89:  else
9.78 99% 90:  bw = uint8(a >= level);
0.01 0% 91:  end
    92: 
 
    96: 
0.06 1% 97:  if nargout==0, % Show results
    98:  imshow(bw,2)
 
    100:  end
0.01 0% 101:  bwout = bw;

ml_nihscale     /home/ejr/ml/SImEC/matlab/ml_nihscale.m
Time: 9.37 s    ( 0.2%)
Calls: 180
Self time: 5.17 s    ( 0.2%)

Function: Time Calls Time/call
ml_nihscale 9.37   180 0.0520555556
 
Parent functions:
ml_threshcrop 180  
 
Child functions:
max 2.21 23.6% 360 0.0061388889
min 1.99 21.2% 360 0.0055277778


100% of the total time in this function was spent on the following lines:

    10: 
8.19 87% 11:  s = image * 253/(max(max(image))-min(min(image)))+1;
1.18 13% 12:  s = s/255;
    13: 

ml_nihthreshold     /home/ejr/ml/SImEC/matlab/ml_nihthreshold.m
Time: 8.16 s    ( 0.2%)
Calls: 180
Self time: 5.04 s    ( 0.2%)

Function: Time Calls Time/call
ml_nihthreshold 8.16   180 0.0453333333
 
Parent functions:
ml_threshcrop 180  
 
Child functions:
imhist 2.21 27.1% 180 0.0122777778
sum 0.83 10.2% 148752 0.0000055798
flipdim 0.08 1.0% 180 0.0004444444
round 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    29:  %
2.30 28% 30:  histo = flipdim(imhist(image,256),1) ;
    31: 
 
    56:  Result = MaxIndex;
0.19 2% 57:  while ((MovingIndex+1)<=Result)
0.21 3% 58:  if (MovingIndex > (MaxIndex-1))
    59:  break;
 
    61: 
1.51 19% 62:  sum1 = sum([MinIndex:MovingIndex]' .* ...
    63:  histo(MinIndex:MovingIndex)) ;
0.79 10% 64:  sum2 = sum(histo(MinIndex:MovingIndex)) ;
1.81 22% 65:  sum3 = sum([MovingIndex+1:MaxIndex]' .* ...
    66:  histo(MovingIndex+1:MaxIndex)) ;
0.83 10% 67:  sum4 = sum(histo(MovingIndex+1:MaxIndex)) ;
    68: 
0.26 3% 69:  Result = (sum1/sum2 + sum3/sum4)/2 ;
    70: 
0.18 2% 71:  MovingIndex = MovingIndex+1;
0.08 1% 72:  end;
    73: 

roifilt2     /usr/local/matlab/toolbox/images/images/roifilt2.m
Time: 8.04 s    ( 0.2%)
Calls: 180
Self time: 4.72 s    ( 0.2%)

Function: Time Calls Time/call
roifilt2 8.04   180 0.0446666667
 
Parent functions:
ml_preprocess 180  
 
Child functions:
filter2 3.30 41.0% 180 0.0183333333
isa 0.01 0.1% 180 0.0000555556
fcnchk 0.01 0.1% 180 0.0000555556
islogical 0.00 0.0% 180 0.0000000000
ndims 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 180 0.0000000000
end 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    52:  params = varargin(4:end);
0.03 0% 53:  [fun,fcnchk_msg] = fcnchk(varargin{3}, length(params));
    54:  if isempty(fcnchk_msg)
 
    84: 
0.01 0% 85:  if ~isa(y, 'double')
    86:  c = filter2(h,im2double(y));    
 
    88:  else
3.30 41% 89:  c = filter2(h, y);
    90:  end
 
    97: 
4.68 58% 98:  y(d) = c(d);   

ml_imgbgsub     /home/ejr/ml/SImEC/matlab/ml_imgbgsub.m
Time: 7.50 s    ( 0.2%)
Calls: 180
Self time: 0.18 s    ( 0.2%)

Function: Time Calls Time/call
ml_imgbgsub 7.50   180 0.0416666667
 
Parent functions:
ml_preprocess 180  
 
Child functions:
ml_imgcommonpixel 7.31 97.5% 180 0.0406111111
cellhorzcat 0.01 0.1% 180 0.0000555556
sum 0.00 0.0% 180 0.0000000000
strcmp 0.00 0.0% 360 0.0000000000
isempty 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    24: 
0.01 0% 25:  methods = {'common'} ;
    26:  if sum(strcmp(method, methods)) == 0
 
    33:  % Find the most common pixel value
7.33 98% 34:  common = ml_imgcommonpixel(image) ;
    35: 
 
    44:  % Subtract the most common pixel value from each pixel in the image
0.06 1% 45:  isub = image - common ;
    46: 
 
    48:  % Set any pixel values < 0 to 0
0.09 1% 49:  isub = (isub>0).*isub ;
    50: 

ml_imgcommonpixel     /home/ejr/ml/SImEC/matlab/ml_imgcommonpixel.m
Time: 7.31 s    ( 0.2%)
Calls: 180
Self time: 2.88 s    ( 0.2%)

Function: Time Calls Time/call
ml_imgcommonpixel 7.31   180 0.0406111111
 
Parent functions:
ml_imgbgsub 180  
 
Child functions:
imhist 2.26 30.9% 180 0.0125555556
max 2.17 29.7% 540 0.0040185185


99% of the total time in this function was spent on the following lines:

    10: 
1.64 22% 11:  if ~image
    12:  error('Invalid input image') ;
 
    18:  %
2.19 30% 19:  imagemax = max(max(image)) ;
    20:  if (imagemax ~= 0)
3.48 48% 21:  [hmax,ihmax] = max(imhist(image/imagemax, imagemax+1)) ;
    22:  else

imhist     /usr/local/matlab/toolbox/images/images/imhist.m
Time: 6.80 s    ( 0.1%)
Calls: 540
Self time: 0.13 s    ( 0.1%)

Function: Time Calls Time/call
imhist 6.80   540 0.0125925926
 
Parent functions:
edge 180  
ml_nihthreshold 180  
ml_imgcommonpixel 180  
 
Child functions:
imhistc 6.47 95.1% 540 0.0119814815
imhist/parse_inputs 0.11 1.6% 540 0.0002037037
linspace 0.07 1.0% 540 0.0001296296
class 0.02 0.3% 540 0.0000370370
nargout 0.00 0.0% 540 0.0000000000
isempty 0.00 0.0% 540 0.0000000000


99% of the total time in this function was spent on the following lines:

    46: 
0.11 2% 47:  [a, n, isScaled, top, map, err_msg] = parse_inputs(varargin{:});
0.02 0% 48:  if (~isempty(err_msg))
    49:  error(err_msg);
 
    51: 
6.50 96% 52:  y = imhistc(a, n, isScaled, top); % Call MEX file to do work.
0.04 1% 53:  classin = class(a);
0.01 0% 54:  switch classin
    55:  case 'uint8'
 
    59:  case 'double'
0.07 1% 60:  x = linspace(0,1,n)';
    61:  otherwise
 
    64: 
0.01 0% 65:  if (nargout == 0)
    66:  plot_result(x, y, map, isScaled, classin);
 
    68:  yout = y;
0.02 0% 69:  end

imhistc     /usr/local/matlab/toolbox/images/images/private/imhistc.mexglx
Time: 6.47 s    ( 0.1%)
Calls: 540
Self time: 6.47 s    ( 0.1%)

Function: Time Calls Time/call
imhistc 6.47   540 0.0119814815
 
Parent functions:
imhist 540  
 
Child functions:
none



uint8     Builtin-function
Time: 6.06 s    ( 0.1%)
Calls: 3600
Self time: 6.06 s    ( 0.1%)

Function: Time Calls Time/call
uint8 6.06   3600 0.0016833333
 
Parent functions:
bwmorph/thin 900  
feval 180  
bwfill 360  
edge 180  
bwarea 720  
roipoly 180  
bweuler 180  
imfeature/ComputeImage 180  
im2bw 720  
 
Child functions:
none



roipoly     /usr/local/matlab/toolbox/images/images/roipoly.m
Time: 5.96 s    ( 0.1%)
Calls: 180
Self time: 1.85 s    ( 0.1%)

Function: Time Calls Time/call
roipoly 5.96   180 0.0331111111
 
Parent functions:
ml_imgconvhull 180  
 
Child functions:
cumsum 1.63 27.3% 180 0.0090555556
uint8 1.20 20.1% 180 0.0066666667
zeros 0.75 12.6% 180 0.0041666667
intline 0.30 5.0% 2199 0.0001364256
axes2pix 0.07 1.2% 360 0.0001944444
horzcat 0.04 0.7% 2199 0.0000181901
roipoly/parse_inputs 0.03 0.5% 180 0.0001666667
vertcat 0.02 0.3% 2199 0.0000090950
size 0.02 0.3% 2379 0.0000084069
find 0.02 0.3% 2199 0.0000090950
diff 0.02 0.3% 2199 0.0000090950
prod 0.01 0.2% 180 0.0000555556
nargout 0.00 0.0% 180 0.0000000000
ones 0.00 0.0% 2199 0.0000000000
floor 0.00 0.0% 360 0.0000000000
end 0.00 0.0% 540 0.0000000000
isempty 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 360 0.0000000000


95% of the total time in this function was spent on the following lines:

    72: 
0.04 1% 73:  [xdata,ydata,num_rows,num_cols,xi,yi] = parse_inputs(varargin{:});
    74: 
 
    86:  roix = axes2pix(num_cols, xdata, xi);
0.05 1% 87:  roiy = axes2pix(num_rows, ydata, yi);
    88: 
 
    93:  % Initialize output matrix.  We need one extra row to begin with.
0.75 13% 94:  d = zeros(num_rows+1,num_cols);
    95: 
 
    111:  % output image.
0.30 5% 112:  [x,y] = intline(x1,x2,y1,y2);
    113:  if ((x1 < 1) | (x1 > num_cols) | (x2 < 1) | (x2 > num_cols) | ...
0.13 2% 114:  (y1 < 1) | (y1 > (num_rows+1)) | (y2 < 1) | (y2 > (num_rows+1)))
    115:  xLowIdx = find(x < 1);
 
    132:  diffx = diff(x);
0.05 1% 133:  dx_indices = find(diffx);
    134:  dx_indices = dx_indices(:);  % converts [] to rectangular empty;
 
    141:  end
0.13 2% 142:  d_indices = [y(dx_indices) (x(dx_indices)-1)] * [1; (num_rows+1)];
0.03 1% 143:  d(d_indices) = d(d_indices) + mark_val(ones(size(d_indices)),1);
    144:  end
 
    150:  % logical output.
3.98 67% 151:  d = uint8(cumsum(d) ~= 0);
    152: 
    153:  % Get rid of that extra row and we're done!
0.24 4% 154:  d(end,:) = [];
    155: 

double     Builtin-function
Time: 5.50 s    ( 0.1%)
Calls: 20504
Self time: 5.50 s    ( 0.1%)

Function: Time Calls Time/call
double 5.50   20504 0.0002682403
 
Parent functions:
ml_students_feats 130  
ml_compfeat 2  
ml_simec 2  
isrgb 180  
ml_zernike 8820  
ml_imgcentmoments 720  
isbw 180  
imfeature/ComputePixelList 180  
imfeature 180  
ml_imgfeatures 9210  
ml_features 180  
readtif 180  
ml_calcfeat 540  
 
Child functions:
none



bwperim     /usr/local/matlab/toolbox/images/images/bwperim.m
Time: 4.95 s    ( 0.1%)
Calls: 180
Self time: 0.02 s    ( 0.1%)

Function: Time Calls Time/call
bwperim 4.95   180 0.0275000000
 
Parent functions:
ml_hullfeatures 180  
 
Child functions:
bwmorph 4.92 99.4% 180 0.0273333333
nargin 0.01 0.2% 360 0.0000277778
nargout 0.00 0.0% 180 0.0000000000
error 0.00 0.0% 180 0.0000000000
nargchk 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    29: 
0.01 0% 30:  if nargin<2, n = 4; end
    31: 
0.01 0% 32:  if n~=8 & n~=4, error('N must be either 4 or 8.'); end
    33: 
    34:  if n==4,
4.92 99% 35:  p = bwmorph(b,'perim4');
    36:  else

sqrt     Builtin-function
Time: 4.60 s    ( 0.1%)
Calls: 6087
Self time: 4.60 s    ( 0.1%)

Function: Time Calls Time/call
sqrt 4.60   6087 0.0007557089
 
Parent functions:
tinv 65  
ttest2 65  
betainv 66  
std 1  
ml_imgedgefeatures 180  
filter2 720  
edge 180  
ml_zernike 180  
ml_hullfeatures 900  
delaunay 180  
convhull 540  
ml_imgfeatures 3010  
 
Child functions:
none



convhull     /usr/local/matlab/toolbox/matlab/polyfun/convhull.m
Time: 4.56 s    ( 0.1%)
Calls: 180
Self time: 0.36 s    ( 0.1%)

Function: Time Calls Time/call
convhull 4.56   180 0.0253333333
 
Parent functions:
ml_imgconvhull 180  
 
Child functions:
sparse 2.09 45.8% 180 0.0116111111
delaunay 1.83 40.1% 180 0.0101666667
triu 0.06 1.3% 180 0.0003333333
xychk 0.06 1.3% 180 0.0003333333
unique 0.05 1.1% 180 0.0002777778
mean 0.04 0.9% 360 0.0001111111
sum 0.03 0.7% 720 0.0000416667
find 0.02 0.4% 180 0.0001111111
vertcat 0.01 0.2% 540 0.0000185185
size 0.01 0.2% 720 0.0000138889
abs 0.00 0.0% 180 0.0000000000
horzcat 0.00 0.0% 540 0.0000000000
end 0.00 0.0% 1080 0.0000000000
angle 0.00 0.0% 180 0.0000000000
prod 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 540 0.0000000000
error 0.00 0.0% 180 0.0000000000
ndims 0.00 0.0% 180 0.0000000000
sqrt 0.00 0.0% 540 0.0000000000


98% of the total time in this function was spent on the following lines:

    17:  isrow = ndims(x)==2 & size(x,1)==1 & size(x,2)~=1;
0.07 2% 18:  [msg,x,y] = xychk(x(:),y(:)); % Treat these a columns.
    19:  error(msg);
 
    23:  if nargin==2, 
1.85 41% 24:  tri = delaunay(x,y);
    25:  end
 
    31:  % Triangle edge if T(i,j) is non-zero
2.20 48% 32:  T = sparse(tri(:,[1 1 2 2 3 3]),tri(:,[2 3 1 3 1 2]),1,n,n);
0.20 4% 33:  [i,j] = find(triu(T==1));
    34:  k = [i;j];
 
    41:  xc = x(k); yc = y(k);
0.05 1% 42:  xm = mean(xc); ym = mean(yc);
    43:  phi = angle((xc-xm) + (yc-ym)*sqrt(-1));
0.07 2% 44:  [dum,ind] = unique(phi);
    45:  k = k(ind);
 
    48:  % Remove any colinear points on the convex hull
0.01 0% 49:  xy = [x(k(end)) y(k(end));x(k) y(k);x(k(1)) y(k(1))];
    50:  a = xy(2:end-1,:) - xy(1:end-2,:);
    51:  b = xy(3:end  ,:) - xy(2:end-1,:);
0.02 0% 52:  mag = sqrt(sum(a .* a,2) .* sum(b .* b,2));
    53: 
    54:  % a dot b - norm(a)*norm(b) < tol when a and b are aligned
0.01 0% 55:  ind = abs(sum(a .* b,2) - mag) < tol & sum(a.*a,2) > tol;
0.01 0% 56:  k(ind) = []; % Remove collinear points
    57: 

bwmorph/majority     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 4.51 s    ( 0.1%)
Calls: 180
Self time: 0.04 s    ( 0.1%)

Function: Time Calls Time/call
bwmorph/majority 4.51   180 0.0250555556
 
Parent functions:
feval 180  
 
Child functions:
applylut 4.47 99.1% 180 0.0248333333
lutmajority 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    295: 
0.02 0% 296:  lut = lutmajority;
4.49 100% 297:  c = applylut(a, lut);

bwmorph/perim4     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 4.38 s    ( 0.1%)
Calls: 180
Self time: 0.03 s    ( 0.1%)

Function: Time Calls Time/call
bwmorph/perim4 4.38   180 0.0243333333
 
Parent functions:
feval 180  
 
Child functions:
applylut 4.35 99.3% 180 0.0241666667
lutper4 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    312: 
0.01 0% 313:  lut = lutper4;
4.37 100% 314:  c = applylut(a, lut);

bwselect     /usr/local/matlab/toolbox/images/images/bwselect.m
Time: 4.16 s    ( 0.1%)
Calls: 180
Self time: 1.16 s    ( 0.1%)

Function: Time Calls Time/call
bwselect 4.16   180 0.0231111111
 
Parent functions:
edge 180  
 
Child functions:
bwfill 2.91 70.0% 180 0.0161666667
bwselect/ParseInputs 0.08 1.9% 180 0.0004444444
nargout 0.01 0.2% 180 0.0000555556
logical 0.00 0.0% 180 0.0000000000
end 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    55: 
0.08 2% 56:  [xdata,ydata,BW,xi,yi,r,c,n,newFig,msg] = ParseInputs(varargin{:});
0.01 0% 57:  if (~isempty(msg))
    58:  error(msg);
 
    69: 
3.13 75% 70:  [BW2, idx] = bwfill(~BW, c, r, n);
0.92 22% 71:  BW2(1:end) = 0;  % clears logical flag
0.01 0% 72:  BW2(idx) = 1;
    73:  BW2 = logical(BW2);
    74: 
0.01 0% 75:  switch nargout
    76:  case 0

cellstr     /usr/local/matlab/toolbox/matlab/strfun/cellstr.m
Time: 3.84 s    ( 0.1%)
Calls: 14580
Self time: 1.31 s    ( 0.1%)

Function: Time Calls Time/call
cellstr 3.84   14580 0.0002633745
 
Parent functions:
ml_imgedgefeatures 1800  
ml_zernike 8820  
ml_hullfeatures 1080  
ml_imgfeatures 2880  
 
Child functions:
deblank 1.54 40.1% 14580 0.0001056241
iscellstr 0.59 15.4% 14580 0.0000404664
isempty 0.14 3.6% 14580 0.0000096022
cell 0.10 2.6% 14580 0.0000068587
ndims 0.10 2.6% 14580 0.0000068587
size 0.06 1.6% 29160 0.0000020576


97% of the total time in this function was spent on the following lines:

    16: 
0.80 21% 17:  if iscellstr(s), c = s; return, end
0.21 5% 18:  if ndims(s)~=2, error('S must be 2-D.'); end
    19: 
0.26 7% 20:  if isempty(s)
    21:  if isstr(s)
 
    25:  end
0.01 0% 26:  else
0.22 6% 27:  c = cell(size(s,1),1);
0.19 5% 28:  for i=1:size(s,1)
2.02 53% 29:  c{i} = deblank(s(i,:));
0.03 1% 30:  end
0.01 0% 31:  end

imfeature     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 3.84 s    ( 0.1%)
Calls: 180
Self time: 0.09 s    ( 0.1%)

Function: Time Calls Time/call
imfeature 3.84   180 0.0213333333
 
Parent functions:
ml_imgfeatures 180  
 
Child functions:
max 2.01 52.3% 180 0.0111666667
imfeature/ComputeEulerNumber 1.49 38.8% 180 0.0082777778
imfeature/ParseInputs 0.18 4.7% 180 0.0010000000
cell2struct 0.04 1.0% 540 0.0000740741
vertcat 0.01 0.3% 360 0.0000277778
cellhorzcat 0.01 0.3% 4140 0.0000024155
subsref 0.01 0.3% 180 0.0000555556
subsasgn 0.00 0.0% 180 0.0000000000
cell 0.00 0.0% 540 0.0000000000
length 0.00 0.0% 720 0.0000000000
round 0.00 0.0% 180 0.0000000000
double 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 360 0.0000000000


99% of the total time in this function was spent on the following lines:

    49: 
0.03 1% 50:  officialStats = {'Area'
    51:  'Centroid'
 
    71: 
0.19 5% 72:  [L, requestedStats, n, msg] = ParseInputs(officialStats, ...
    73:  varargin{:});
 
    77: 
0.01 0% 78:  if (isempty(L))
    79:  numObjs = 0;
    80:  else
2.02 53% 81:  numObjs = round(max(double(L(:))));
    82:  end
 
    91:  for k = 1:numStats
0.01 0% 92:  zz{k} = 0;
    93:  end
0.04 1% 94:  computedStats = cell2struct(zz, allStats, 1);
    95: 
    96:  for k = 1:length(requestedStats)
0.01 0% 97:  switch requestedStats{k}
    98: 
 
    114:  case 'EulerNumber'
1.49 39% 115:  [stats, computedStats] = ComputeEulerNumber(L,stats,computedStats,n);
    116: 
 
    163:  for p = 1:length(requestedStats)
0.01 0% 164:  s(1).subs = {k};
    165:  s(2).subs = {requestedStats{p}};
 
    172:  % in-place.
0.02 1% 173:  subsasgn(outstats, s, subsref(stats, s));
    174:  end

mod     /usr/local/matlab/toolbox/matlab/elfun/mod.m
Time: 3.25 s    ( 0.1%)
Calls: 17104
Self time: 2.25 s    ( 0.1%)

Function: Time Calls Time/call
mod 3.25   17104 0.0001900140
 
Parent functions:
datestr 4  
edge/cannyFindLocalMaxima 720  
ml_zernike 16380  
 
Child functions:
size 0.21 6.5% 68416 0.0000030695
isreal 0.18 5.5% 34208 0.0000052619
all 0.12 3.7% 17104 0.0000070159
fix 0.12 3.7% 17104 0.0000070159
zeros 0.10 3.1% 17104 0.0000058466
isempty 0.09 2.8% 34208 0.0000026310
floor 0.06 1.8% 17104 0.0000035080
ones 0.05 1.5% 17104 0.0000029233
length 0.04 1.2% 17104 0.0000023386
isequal 0.03 0.9% 17104 0.0000017540


96% of the total time in this function was spent on the following lines:

    18: 
0.41 13% 19:  if ~isreal(x) | ~isreal(y)
    20:  error('Arguments must be real.')
 
    24: 
0.19 6% 25:  if length(y) == 1
0.39 12% 26:  y = y(ones(size(x)));
    27:  elseif length(x) == 1
 
    29:  end
0.25 8% 30:  z = zeros(size(x));
    31: 
0.33 10% 32:  if ~isequal(size(x),size(y)), 
    33:  error('X and Y must be the same size.'); 
    34:  end
0.31 10% 35:  if isempty(x) | isempty(y), return, end
    36: 
 
    39: 
0.34 10% 40:  m = (y == fix(y)) & (y ~= 0);
0.60 18% 41:  z(m) = x(m) - floor(x(m)./y(m)).*y(m);
    42: 
    43:  % handle the non-integer and zero denominator cases
0.32 10% 44:  if ~all(m(:))

bwfill     /usr/local/matlab/toolbox/images/images/bwfill.m
Time: 2.91 s    ( 0.1%)
Calls: 180
Self time: 1.33 s    ( 0.1%)

Function: Time Calls Time/call
bwfill 2.91   180 0.0161666667
 
Parent functions:
bwselect 180  
 
Child functions:
impad 0.69 23.7% 180 0.0038333333
find 0.36 12.4% 360 0.0010000000
repmat 0.26 8.9% 180 0.0014444444
bwfillc 0.18 6.2% 180 0.0010000000
bwfill/ParseInputs 0.09 3.1% 180 0.0005000000
nargout 0.00 0.0% 180 0.0000000000
uint8 0.00 0.0% 360 0.0000000000
size 0.00 0.0% 360 0.0000000000
isempty 0.00 0.0% 360 0.0000000000


99% of the total time in this function was spent on the following lines:

    79: 
0.10 3% 80:  [xdata,ydata,I,xi,yi,r,c,style,newFig,fillHoles,msg] = ParseInputs(varargin{:});
    81:  if (~isempty(msg))
 
    108:  [M,N] = size(I);
0.95 33% 109:  Ip = impad(uint8(I~=0),1,1);
    110: 
 
    118:  % matrix indexing bug in MATLAB 5.0.  -sle
0.01 0% 119:  killIdx = find(Ip((c-1)*(M+2) + r) ~= 0);
0.01 0% 120:  r(killIdx) = [];
    121:  c(killIdx) = [];
 
    124:  % Preallocate output matrix
0.26 9% 125:  J = repmat(uint8(0), size(Ip));
    126: 
    127:  idxList = r + (c-1)*(M+2);
0.01 0% 128:  idxList(Ip(idxList)) = [];
    129: 
0.20 7% 130:  J = bwfillc(Ip, idxList, style);
    131: 
0.25 9% 132:  J = J(2:M+1,2:N+1);
    133: 
0.25 9% 134:  BW2 = J | I;
    135: 
 
    153:  varargout{1} = BW2;
0.85 29% 154:  varargout{2} = find(J & ~I);

int32     Builtin-function
Time: 2.72 s    ( 0.1%)
Calls: 360
Self time: 2.72 s    ( 0.1%)

Function: Time Calls Time/call
int32 2.72   360 0.0075555556
 
Parent functions:
ml_imgfeatures 360  
 
Child functions:
none



eval     Builtin-function
Time: 2.42 s    ( 0.1%)
Calls: 2
Self time: 0.00 s    ( 0.1%)

Function: Time Calls Time/call
eval 2.42   2 1.2100000000
 
Parent functions:
ml_compfeat 2  
 
Child functions:
ml_uni_confid_eval 2.33 96.3% 1 2.3300000000
ml_hotel 0.09 3.7% 1 0.0900000000



ml_compfeat     /home/ejr/ml/SImEC/matlab/ml_compfeat.m
Time: 2.42 s    ( 0.1%)
Calls: 1
Self time: 0.00 s    ( 0.1%)

Function: Time Calls Time/call
ml_compfeat 2.42   1 2.4200000000
 
Parent functions:
ml_simec 1  
 
Child functions:
eval 2.42 100.0% 2 1.2100000000
horzcat 0.00 0.0% 1 0.0000000000
size 0.00 0.0% 4 0.0000000000
double 0.00 0.0% 2 0.0000000000


100% of the total time in this function was spent on the following lines:

    57:  %eval('[F crit res hotel_warn] = er_hotel(feature_matrix1, feature_matrix2, conf);', 'succ = -2');
0.09 4% 58:  eval(['[F crit res hotel_warn] = ml_hotel(feature_matrix1,' ...
    59:  'feature_matrix2, conf);'], 'succ = -2');
2.33 96% 60:  eval('both = ml_uni_confid_eval(feature_matrix1, feature_matrix2);', ...

ml_uni_confid_eval     /home/ejr/ml/SImEC/matlab/ml_uni_confid_eval.m
Time: 2.33 s    ( 0.0%)
Calls: 1
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
ml_uni_confid_eval 2.33   1 2.3300000000
 
Parent functions:
eval 1  
 
Child functions:
ml_students_feats 2.32 99.6% 1 2.3200000000
horzcat 0.00 0.0% 1 0.0000000000
sort 0.00 0.0% 1 0.0000000000
zeros 0.00 0.0% 1 0.0000000000
size 0.00 0.0% 2 0.0000000000


100% of the total time in this function was spent on the following lines:

    13: 
2.33 100% 14:  test = ml_students_feats(featarr1, featarr2);
    15:  val = zeros(1,(size(test,2)));

ml_students_feats     /home/ejr/ml/SImEC/matlab/ml_students_feats.m
Time: 2.32 s    ( 0.0%)
Calls: 1
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
ml_students_feats 2.32   1 2.3200000000
 
Parent functions:
ml_uni_confid_eval 1  
 
Child functions:
ttest2 2.31 99.6% 65 0.0355384615
cellhorzcat 0.00 0.0% 130 0.0000000000
double 0.00 0.0% 130 0.0000000000
max 0.00 0.0% 130 0.0000000000
min 0.00 0.0% 130 0.0000000000
size 0.00 0.0% 3 0.0000000000
nargin 0.00 0.0% 2 0.0000000000


100% of the total time in this function was spent on the following lines:

    46:  (min(matrix2(:,num)) ~= max(matrix2(:,num))))
2.32 100% 47:  [h sig] = ttest2(double(matrix1(:,num)), ...
    48:  double(matrix2(:,num)), ttsig);

ttest2     /usr/local/matlab/toolbox/stats/ttest2.m
Time: 2.31 s    ( 0.0%)
Calls: 65
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
ttest2 2.31   65 0.0355384615
 
Parent functions:
ml_students_feats 65  
 
Child functions:
tinv 2.12 91.8% 65 0.0326153846
tcdf 0.12 5.2% 65 0.0018461538
mean 0.01 0.4% 130 0.0000769231
var 0.01 0.4% 130 0.0000769231
prod 0.01 0.4% 65 0.0001538462
min 0.00 0.0% 65 0.0000000000
nargout 0.00 0.0% 130 0.0000000000
sqrt 0.00 0.0% 65 0.0000000000
length 0.00 0.0% 130 0.0000000000
isnan 0.00 0.0% 195 0.0000000000
size 0.00 0.0% 195 0.0000000000
nargin 0.00 0.0% 195 0.0000000000


100% of the total time in this function was spent on the following lines:

    42: 
0.01 0% 43:  if nargin < 4, 
    44:  tail = 0; 
 
    50: 
0.01 0% 51:  if (prod(size(alpha))>1), error('ALPHA must be a scalar.'); end
    52:  if (alpha<=0 | alpha>=1), error('ALPHA must be between 0 and 1.'); end
 
    56:  dfe  = dfx + dfy;
0.01 0% 57:  msx = dfx * var(x);
    58:  msy = dfy * var(y);
    59: 
0.01 0% 60:  difference = mean(x) - mean(y);
0.01 0% 61:  pooleds    = sqrt((msx + msy) * (1/(dfx + 1) + 1/(dfy + 1)) / dfe);
    62: 
 
    66:  % Find the p-value for the tail = 1 test.
0.13 6% 67:  p  = 1 - tcdf(ratio,dfe);
    68: 
 
    71:  p = 2 * min(p, 1-p);
2.13 92% 72:  spread = tinv(1 - alpha / 2,dfe) * pooleds;
    73:  if (nargout>2), ci = [(difference - spread) (difference + spread)]; end

sparse     Builtin-function
Time: 2.12 s    ( 0.0%)
Calls: 540
Self time: 2.12 s    ( 0.0%)

Function: Time Calls Time/call
sparse 2.12   540 0.0039259259
 
Parent functions:
convhull 180  
bwlabel 180  
imfeature/ComputePixelList 180  
 
Child functions:
none



tinv     /usr/local/matlab/toolbox/stats/tinv.m
Time: 2.12 s    ( 0.0%)
Calls: 65
Self time: 0.03 s    ( 0.0%)

Function: Time Calls Time/call
tinv 2.12   65 0.0326153846
 
Parent functions:
ttest2 65  
 
Child functions:
betainv 2.08 98.1% 65 0.0320000000
sqrt 0.01 0.5% 65 0.0001538462
any 0.00 0.0% 390 0.0000000000
find 0.00 0.0% 390 0.0000000000
isnan 0.00 0.0% 390 0.0000000000
zeros 0.00 0.0% 65 0.0000000000
size 0.00 0.0% 65 0.0000000000
distchck 0.00 0.0% 65 0.0000000000
nargin 0.00 0.0% 65 0.0000000000


100% of the total time in this function was spent on the following lines:

    36:  % The inverse cdf of 0 is -Inf, and the inverse cdf of 1 is Inf.
0.01 0% 37:  k0 = find(p == 0 & ~isnan(x));
    38:  if any(k0)
 
    50:  if any(k)
2.09 99% 51:  z = betainv(2*(1-p(k)),v(k)/2,0.5);
0.01 0% 52:  x(k) = sqrt(v(k) ./ z - v(k));
    53:  end
 
    61:  % For large d.f., use Abramowitz & Stegun formula 26.7.5
0.01 0% 62:  k = find(p>0 & p<1 & ~isnan(x) & v >= 1000);
    63:  if any(k)

betainv     /usr/local/matlab/toolbox/stats/betainv.m
Time: 2.12 s    ( 0.0%)
Calls: 66
Self time: 0.10 s    ( 0.0%)

Function: Time Calls Time/call
betainv 2.12   66 0.0321212121
 
Parent functions:
tinv 65  
finv 1  
 
Child functions:
betacdf 1.71 80.7% 461 0.0037093275
betapdf 0.27 12.7% 461 0.0005856833
abs 0.01 0.5% 1515 0.0000066007
any 0.01 0.5% 1647 0.0000060716
distchck 0.01 0.5% 66 0.0001515152
find 0.01 0.5% 1186 0.0000084317
max 0.00 0.0% 461 0.0000000000
sqrt 0.00 0.0% 66 0.0000000000
ones 0.00 0.0% 66 0.0000000000
isempty 0.00 0.0% 66 0.0000000000
zeros 0.00 0.0% 66 0.0000000000
size 0.00 0.0% 132 0.0000000000
nargin 0.00 0.0% 66 0.0000000000


100% of the total time in this function was spent on the following lines:

    22: 
0.01 0% 23:  [errorcode p a b] = distchck(3,p,a,b);
    24: 
 
    82:  while(any(abs(h) > crit * abs(xk)) & max(abs(h)) > crit    ...
0.05 2% 83:  & count < count_limit), 
    84: 
    85:  count = count+1;    
2.01 95% 86:  h = (betacdf(xk,a(k),b(k)) - pk) ./ betapdf(xk,a(k),b(k));
0.01 0% 87:  xnew = xk - h;
    88: 
 
    91:  ksmall = find(xnew <= 0);
0.02 1% 92:  klarge = find(xnew >= 1);
0.01 0% 93:  if any(ksmall) | any(klarge)
    94:  xnew(ksmall) = xk(ksmall) /10;
 
    97: 
0.01 0% 98:  xk = xnew;  
    99:  end

min     Builtin-function
Time: 2.11 s    ( 0.0%)
Calls: 5758
Self time: 2.11 s    ( 0.0%)

Function: Time Calls Time/call
min 2.11   5758 0.0003664467
 
Parent functions:
num2str/lefttrim 4  
num2str 4  
ttest2 65  
ml_students_feats 130  
std 1  
ml_imgedgefeatures 180  
hist 1440  
impad/ParseInputs 180  
edge 180  
axes2pix 360  
delaunay 360  
xychk 540  
mean 1103  
var 490  
imfeature/ComputeBoundingBox 360  
ml_nihscale 360  
addpath 1  
 
Child functions:
none



repmat     /usr/local/matlab/toolbox/matlab/elmat/repmat.m
Time: 1.86 s    ( 0.0%)
Calls: 1443
Self time: 1.73 s    ( 0.0%)

Function: Time Calls Time/call
repmat 1.86   1443 0.0012889813
 
Parent functions:
cov 2  
std 1  
bwfill 180  
impad/constant 180  
edge 180  
bwarea 720  
bweuler 180  
 
Child functions:
nargin 0.06 3.2% 2886 0.0000207900
reshape 0.05 2.7% 1440 0.0000347222
prod 0.01 0.5% 1440 0.0000069444
length 0.01 0.5% 2707 0.0000036941
ones 0.00 0.0% 6 0.0000000000
size 0.00 0.0% 3 0.0000000000
ndims 0.00 0.0% 3 0.0000000000
horzcat 0.00 0.0% 182 0.0000000000


98% of the total time in this function was spent on the following lines:

    23: 
0.06 3% 24:  if nargin < 2
    25:  error('Requires at least 2 inputs.')
0.06 3% 26:  elseif nargin == 2
0.03 2% 27:  if length(M)==1
    28:  siz = [M M];
    29:  else
0.01 1% 30:  siz = M;
0.01 1% 31:  end
    32:  else
 
    35: 
0.01 1% 36:  if length(A)==1
0.01 1% 37:  nelems = prod(siz);
    38:  if nelems>0
 
    41:  % fill the array.. Finally reshape to the specified size.
0.80 43% 42:  B(nelems) = A; 
0.79 42% 43:  B(:) = A;
0.06 3% 44:  B = reshape(B,siz);
    45:  else

delaunay     /usr/local/matlab/toolbox/matlab/polyfun/delaunay.m
Time: 1.83 s    ( 0.0%)
Calls: 180
Self time: 0.56 s    ( 0.0%)

Function: Time Calls Time/call
delaunay 1.83   180 0.0101666667
 
Parent functions:
convhull 180  
 
Child functions:
delaunayc 0.76 41.5% 180 0.0042222222
unique 0.37 20.2% 180 0.0020555556
rand 0.06 3.3% 900 0.0000666667
size 0.02 1.1% 540 0.0000370370
max 0.02 1.1% 360 0.0000555556
min 0.02 1.1% 360 0.0000555556
pow2 0.01 0.5% 360 0.0000277778
log2 0.01 0.5% 360 0.0000277778
abs 0.00 0.0% 180 0.0000000000
reshape 0.00 0.0% 180 0.0000000000
horzcat 0.00 0.0% 180 0.0000000000
display 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 360 0.0000000000
sqrt 0.00 0.0% 180 0.0000000000


96% of the total time in this function was spent on the following lines:

    50:  xmin = min(x); xmax = max(x);
0.02 1% 51:  ymin = min(y); ymax = max(y);
    52: 
 
    55:  [yf,ye] = log2(y);  
0.39 21% 56:  [xy,ndx] = unique([xf xe yf ye],'rows');
    57:  xf = xy(:,1); xe = xy(:,2);
 
    66:  % special to make sure that there are no collinear points in the dataset.
0.02 1% 67:  xf = xf + tol*(rand(size(xf))-.5)*2;
0.05 3% 68:  yf = yf + tol*(rand(size(xf))-.5)*2; 
0.02 1% 69:  xx = pow2(xf,xe);
    70:  yy = pow2(yf,ye);
 
    74:  % Offset data so it is centered around zero
0.04 2% 75:  xx = xx - (xmin+xmax)/2;
    76:  yy = yy - (ymin+ymax)/2;
 
    78:  % Now do the triangulation
0.76 42% 79:  tri = delaunayc(xx,yy);
0.08 4% 80:  tri = reshape(ndx(tri),size(tri)); % Map to original indices
    81: 
    82:  % Remove any zero area triangles from list
0.34 19% 83:  Area = abs((x(tri(:,2))-x(tri(:,1))) .* (y(tri(:,3))-y(tri(:,1))) - ...
    84:  (x(tri(:,3))-x(tri(:,1))) .* (y(tri(:,2))-y(tri(:,1))))/2;
0.04 2% 85:  tri((Area == 0),:) = [];

betacdf     /usr/local/matlab/toolbox/stats/betacdf.m
Time: 1.71 s    ( 0.0%)
Calls: 461
Self time: 0.12 s    ( 0.0%)

Function: Time Calls Time/call
betacdf 1.71   461 0.0037093275
 
Parent functions:
betainv 461  
 
Child functions:
betainc 1.50 87.7% 461 0.0032537961
distchck 0.09 5.3% 461 0.0001952278
ones 0.00 0.0% 461 0.0000000000
any 0.00 0.0% 1383 0.0000000000
find 0.00 0.0% 1844 0.0000000000
zeros 0.00 0.0% 461 0.0000000000
size 0.00 0.0% 922 0.0000000000
nargin 0.00 0.0% 461 0.0000000000


100% of the total time in this function was spent on the following lines:

    21: 
0.12 7% 22:  [errorcode x a b] = distchck(3,x,a,b);
    23: 
0.01 1% 24:  if errorcode > 0
    25:  error('Requires non-scalar arguments to match in size.');
 
    28:  % Initialize P to 0.
0.01 1% 29:  p = zeros(size(x));
    30: 
 
    37:  % If is X >= 1 the cdf of X is 1. 
0.01 1% 38:  k2 = find(x >= 1);
0.01 1% 39:  if any(k2)
    40:  p(k2) = ones(size(k2));
 
    42: 
0.01 1% 43:  k = find(x > 0 & x < 1 & a > 0 & b > 0);
    44:  if any(k)
1.54 90% 45:  p(k) = betainc(x(k),a(k),b(k));
    46:  end

cumsum     Builtin-function
Time: 1.63 s    ( 0.0%)
Calls: 540
Self time: 1.63 s    ( 0.0%)

Function: Time Calls Time/call
cumsum 1.63   540 0.0030185185
 
Parent functions:
edge 180  
roipoly 180  
bwlabel 180  
 
Child functions:
none



betainc     /usr/local/matlab/toolbox/matlab/specfun/betainc.m
Time: 1.61 s    ( 0.0%)
Calls: 526
Self time: 0.17 s    ( 0.0%)

Function: Time Calls Time/call
betainc 1.61   526 0.0030608365
 
Parent functions:
tcdf 65  
betacdf 461  
 
Child functions:
betacore 1.38 85.7% 526 0.0026235741
log 0.02 1.2% 1052 0.0000190114
length 0.02 1.2% 3682 0.0000054318
gammaln 0.01 0.6% 1578 0.0000063371
any 0.01 0.6% 526 0.0000190114
find 0.00 0.0% 2104 0.0000000000
exp 0.00 0.0% 526 0.0000000000
isempty 0.00 0.0% 526 0.0000000000
nargin 0.00 0.0% 526 0.0000000000
isreal 0.00 0.0% 526 0.0000000000


98% of the total time in this function was spent on the following lines:

    19: 
0.03 2% 20:  if any(x(:) < 0 | x(:) > 1) | ~isreal(x),
    21:  error('X must be in the interval [0,1].')
 
    29:  % Preallocate y (using the size rules for plus)
0.02 1% 30:  y = x + a + b; 
    31:  y(:) = 0;
 
    36:  if ~isempty(y)
0.05 3% 37:  bt = exp(gammaln(a+b)-gammaln(a)-gammaln(b) + ...
    38:  a.*log(x+(x==0)) + b.*log(1-x+(x==1)));
    39: 
0.01 1% 40:  k = find(x < (a+1) ./ (a+b+2));
    41:  if length(k) > 0
0.02 1% 42:  if length(x) == 1, xk = x; else, xk = x(k); end
    43:  if length(a) == 1, ak = a; else, ak = a(k); end
    44:  if length(b) == 1, bk = b; else, bk = b(k); end
1.17 73% 45:  y(k) = bt(k) .* betacore(xk,ak,bk) ./ ak;
    46:  end
    47: 
0.02 1% 48:  k = find(x >= (a+1) ./ (a+b+2));
    49:  if length(k) > 0
0.01 1% 50:  if length(x) == 1, xk = x; else, xk = x(k); end
    51:  if length(a) == 1, ak = a; else, ak = a(k); end
    52:  if length(b) == 1, bk = b; else, bk = b(k); end
0.25 16% 53:  y(k) = 1 - bt(k) .* betacore(1-xk,bk,ak) ./ bk;
    54:  end
    55: 
0.01 1% 56:  k = find(x == 0);
    57:  if length(k) > 0

deblank     /usr/local/matlab/toolbox/matlab/strfun/deblank.m
Time: 1.60 s    ( 0.0%)
Calls: 15136
Self time: 1.00 s    ( 0.0%)

Function: Time Calls Time/call
deblank 1.60   15136 0.0001057082
 
Parent functions:
strcat 11  
num2str 4  
cellstr 14580  
bwmorph 540  
addpath 1  
 
Child functions:
find 0.21 13.1% 15136 0.0000138742
isempty 0.14 8.8% 30272 0.0000046247
max 0.10 6.2% 15136 0.0000066068
isspace 0.09 5.6% 15136 0.0000059461
isstr 0.06 3.8% 15136 0.0000039641


95% of the total time in this function was spent on the following lines:

    13: 
0.17 11% 14:  if isempty(s)
    15:  s1 = s([]);
0.02 1% 16:  else
0.14 9% 17:  if ~isstr(s),
    18:  warning('Input must be a string.')
 
    21:  % Remove trailing blanks
0.62 39% 22:  [r,c] = find( (s~=0) & ~isspace(s) );
0.11 7% 23:  if isempty(c),
    24:  s1 = s([]);
0.03 2% 25:  else
0.40 25% 26:  s1 = s(:,1:max(c));
0.01 1% 27:  end
0.03 2% 28:  end

imfeature/ComputeEulerNumber     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 1.49 s    ( 0.0%)
Calls: 180
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
imfeature/ComputeEulerNumber 1.49   180 0.0082777778
 
Parent functions:
imfeature 180  
 
Child functions:
imfeature/ComputeImage 1.32 88.6% 180 0.0073333333
bweuler 0.13 8.7% 180 0.0007222222
length 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    322:  if ~computedStats.EulerNumber
0.01 1% 323:  computedStats.EulerNumber = 1;
    324: 
1.34 90% 325:  [stats, computedStats] = ComputeImage(L, stats, computedStats);
    326: 
    327:  for k = 1:length(stats)
0.13 9% 328:  stats(k).EulerNumber = bweuler(stats(k).Image,n);
    329:  end

betacore     /usr/local/matlab/toolbox/matlab/specfun/betacore.m
Time: 1.38 s    ( 0.0%)
Calls: 526
Self time: 1.29 s    ( 0.0%)

Function: Time Calls Time/call
betacore 1.38   526 0.0026235741
 
Parent functions:
betainc 526  
 
Child functions:
any 0.05 3.6% 13011 0.0000038429
abs 0.03 2.2% 26022 0.0000011529
ones 0.01 0.7% 526 0.0000190114
zeros 0.00 0.0% 526 0.0000000000
size 0.00 0.0% 1052 0.0000000000


88% of the total time in this function was spent on the following lines:

    24:  m = 1;
0.30 22% 25:  while any(abs(y(:)-yold(:)) > 10*eps*abs(y(:)))
0.06 4% 26:  tem = 2 * m;
0.28 20% 27:  d = m * (b - m) .* x ./ ((qam + tem) .* (a + tem));
0.08 6% 28:  ap = y + d .* am;
0.05 4% 29:  bp = bz + d .* bm;
0.18 13% 30:  d = -(a + m) .* (qab + m) .* x ./ ((a + tem) .* (qap + tem));
    31:  app = ap + d .* y;
0.09 7% 32:  bpp = bp + d .* bz;
    33:  yold = y;
0.05 4% 34:  am = ap ./ bpp;
0.06 4% 35:  bm = bp ./ bpp;
0.07 5% 36:  y = app ./ bpp;
    37:  if m == 1

all     Builtin-function
Time: 1.32 s    ( 0.0%)
Calls: 20399
Self time: 1.32 s    ( 0.0%)

Function: Time Calls Time/call
all 1.32   20399 0.0000647091
 
Parent functions:
datestr 4  
strcat 4  
num2str 8  
distchck 1119  
filter2 1440  
mod 17104  
unique 180  
iscellstr 540  
 
Child functions:
none



imfeature/ComputeImage     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 1.32 s    ( 0.0%)
Calls: 180
Self time: 0.10 s    ( 0.0%)

Function: Time Calls Time/call
imfeature/ComputeImage 1.32   180 0.0073333333
 
Parent functions:
imfeature/ComputeEulerNumber 180  
 
Child functions:
imfeature/ComputePixelList 1.08 81.8% 180 0.0060000000
imfeature/ComputeBoundingBox 0.11 8.3% 180 0.0006111111
uint8 0.03 2.3% 180 0.0001666667
logical 0.00 0.0% 180 0.0000000000
zeros 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    558: 
1.09 83% 559:  [stats, computedStats] = ComputePixelList(L, stats, computedStats);
0.13 10% 560:  [stats, computedStats] = ComputeBoundingBox(L, stats, computedStats);
    561: 
 
    564:  N = stats(k).BoundingBox(3);
0.01 1% 565:  firstRow = stats(k).BoundingBox(2) + 0.5;
    566:  firstCol = stats(k).BoundingBox(1) + 0.5;
    567: 
0.03 2% 568:  stats(k).Image = uint8(zeros(M,N));
    569: 
0.01 1% 570:  r = stats(k).PixelList(:,2);
0.01 1% 571:  c = stats(k).PixelList(:,1);
0.02 2% 572:  r = r - firstRow + 1;
0.01 1% 573:  c = c - firstCol + 1;
    574: 
    575:  idx = M * (c - 1) + r;
0.01 1% 576:  stats(k).Image(idx) = 1;
    577:  stats(k).Image = logical(stats(k).Image);

gp_moments_1     /home/shared/matlab/gp_moments_1.mexglx
Time: 1.10 s    ( 0.0%)
Calls: 180
Self time: 1.10 s    ( 0.0%)

Function: Time Calls Time/call
gp_moments_1 1.10   180 0.0061111111
 
Parent functions:
ml_imgfeatures 180  
 
Child functions:
none



imfeature/ComputePixelList     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 1.08 s    ( 0.0%)
Calls: 360
Self time: 0.06 s    ( 0.0%)

Function: Time Calls Time/call
imfeature/ComputePixelList 1.08   360 0.0030000000
 
Parent functions:
imfeature/ComputeBoundingBox 180  
imfeature/ComputeImage 180  
 
Child functions:
find 0.95 88.0% 360 0.0026388889
sparse 0.03 2.8% 180 0.0001666667
horzcat 0.02 1.9% 180 0.0001111111
rem 0.01 0.9% 180 0.0000555556
size 0.01 0.9% 180 0.0000555556
floor 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 180 0.0000000000
double 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    595:  % example, S(100,5) is nonzero if and only L(100) equals 5.
0.95 88% 596:  idx = find(L);
0.01 1% 597:  elementValues = L(idx);
0.05 5% 598:  S = sparse(idx, double(elementValues), 1);
    599: 
 
    604:  % the results in the pixel list.
0.02 2% 605:  [M,N] = size(L);
    606:  for k = 1:length(stats)
 
    608:  c = floor(idx/M) + 1;
0.01 1% 609:  r = rem(idx,M) + 1;
0.03 3% 610:  stats(k).PixelList = [c(:) r(:)];
    611:  end

bwlabel     /usr/local/matlab/toolbox/images/images/bwlabel.m
Time: 1.01 s    ( 0.0%)
Calls: 180
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
bwlabel 1.01   180 0.0056111111
 
Parent functions:
ml_imgfeatures 180  
 
Child functions:
bwlabel2 0.77 76.2% 180 0.0042777778
bwlabel1 0.15 14.9% 180 0.0008333333
dmperm 0.04 4.0% 180 0.0002222222
vertcat 0.01 1.0% 360 0.0000277778
max 0.01 1.0% 180 0.0000555556
isempty 0.01 1.0% 180 0.0000555556
cumsum 0.00 0.0% 180 0.0000000000
zeros 0.00 0.0% 180 0.0000000000
diff 0.00 0.0% 180 0.0000000000
sparse 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 360 0.0000000000
isa 0.00 0.0% 360 0.0000000000
size 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    40:  if (nargin < 2)
0.01 1% 41:  mode = 8;
    42:  end
 
    52:  % Compute run-length encoding and assign initial labels.
0.15 15% 53:  [sr,er,sc,labels,i,j] = bwlabel1(BW,mode);
    54:  numRuns = length(sr);
0.01 1% 55:  if (isempty(labels))
    56:  numLabels = 0;
    57:  else
0.01 1% 58:  numLabels = max(labels);
    59:  end
 
    62:  tmp = (1:numLabels)';
0.01 1% 63:  A = sparse([i;j;tmp], [j;i;tmp], 1, numLabels, numLabels);
    64: 
 
    76:  % blocks; the k-th block as indices r(k):r(k+1)-1.
0.04 4% 77:  [p,p,r] = dmperm(A);
    78: 
 
    86:  blocks = cumsum(blocks);
0.01 1% 87:  blocks(p) = blocks;
    88:  labels = blocks(labels);
 
    90:  % Given label information, create output matrix.
0.77 76% 91:  L = bwlabel2(sr, er, sc, labels, M, N);

isequal     Builtin-function
Time: 0.91 s    ( 0.0%)
Calls: 18546
Self time: 0.91 s    ( 0.0%)

Function: Time Calls Time/call
isequal 0.91   18546 0.0000490672
 
Parent functions:
impad/ParseInputs 180  
mod 17104  
imfeature/ParseInputs 360  
bwmorph 540  
imftype/istif 360  
addpath 2  
 
Child functions:
none



imread     /usr/local/matlab/toolbox/matlab/iofun/imread.m
Time: 0.87 s    ( 0.0%)
Calls: 180
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
imread 0.87   180 0.0048333333
 
Parent functions:
ml_readimage 180  
 
Child functions:
readtif 0.63 72.4% 180 0.0035000000
imftype 0.12 13.8% 180 0.0006666667
fopen 0.05 5.7% 360 0.0001388889
imread/parse_inputs 0.03 3.4% 180 0.0001666667
fclose 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 540 0.0000000000


98% of the total time in this function was spent on the following lines:

    142: 
0.05 6% 143:  [filename, format, extraArgs, msg] = parse_inputs(varargin{:});
    144:  if (~isempty(msg))
 
    153: 
0.05 6% 154:  fid = fopen(filename, 'r');
    155:  if (fid == -1)
 
    162: 
0.13 15% 163:  format = imftype(filename);
    164:  if (isempty(format))
 
    240:  case 'tif'
0.63 72% 241:  [X,map] = readtif(filename, extraArgs{:});

zeros     Builtin-function
Time: 0.86 s    ( 0.0%)
Calls: 20410
Self time: 0.86 s    ( 0.0%)

Function: Time Calls Time/call
zeros 0.86   20410 0.0000421362
 
Parent functions:
ml_uni_confid_eval 1  
tinv 65  
tcdf 65  
betapdf 461  
betacore 526  
betacdf 461  
betainv 66  
finv 2  
distchck 1119  
mod 17104  
roipoly 180  
bwlabel 180  
imfeature/ComputeImage 180  
 
Child functions:
none



bwlabel2     /usr/local/matlab/toolbox/images/images/private/bwlabel2.mexglx
Time: 0.77 s    ( 0.0%)
Calls: 180
Self time: 0.77 s    ( 0.0%)

Function: Time Calls Time/call
bwlabel2 0.77   180 0.0042777778
 
Parent functions:
bwlabel 180  
 
Child functions:
none



delaunayc     /usr/local/matlab/toolbox/matlab/polyfun/private/delaunayc.mexglx
Time: 0.76 s    ( 0.0%)
Calls: 180
Self time: 0.76 s    ( 0.0%)

Function: Time Calls Time/call
delaunayc 0.76   180 0.0042222222
 
Parent functions:
delaunay 180  
 
Child functions:
none



impad     /usr/local/matlab/toolbox/images/images/private/impad.m
Time: 0.69 s    ( 0.0%)
Calls: 180
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
impad 0.69   180 0.0038333333
 
Parent functions:
bwfill 180  
 
Child functions:
feval 0.61 88.4% 180 0.0033888889
impad/ParseInputs 0.07 10.1% 180 0.0003888889
logical 0.00 0.0% 180 0.0000000000
islogical 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    6: 
0.08 12% 7:  [a, padSize, method, params, msg] = ParseInputs(varargin{:});
    8:  if (~isempty(msg))
 
    11: 
0.61 88% 12:  b = feval(method, a, padSize, params{:});
    13:  if (islogical(a))

readtif     /usr/local/matlab/toolbox/matlab/iofun/private/readtif.m
Time: 0.63 s    ( 0.0%)
Calls: 180
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
readtif 0.63   180 0.0035000000
 
Parent functions:
imread 180  
 
Child functions:
rtifc 0.60 95.2% 180 0.0033333333
double 0.01 1.6% 180 0.0000555556
nargchk 0.01 1.6% 180 0.0000555556
error 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    18: 
0.02 3% 19:  error(nargchk(1, 2, nargin));
    20: 
 
    24: 
0.60 95% 25:  [X,map] = rtifc(filename, index);
0.01 2% 26:  map = double(map)/65535;

iscellstr     /usr/local/matlab/toolbox/matlab/strfun/iscellstr.m
Time: 0.61 s    ( 0.0%)
Calls: 15660
Self time: 0.35 s    ( 0.0%)

Function: Time Calls Time/call
iscellstr 0.61   15660 0.0000389527
 
Parent functions:
cellstr 14580  
cell/strmatch 1080  
 
Child functions:
isa 0.18 29.5% 15660 0.0000114943
logical 0.07 11.5% 15120 0.0000046296
cellfun 0.01 1.6% 540 0.0000185185
all 0.00 0.0% 540 0.0000000000


83% of the total time in this function was spent on the following lines:

    11: 
0.27 44% 12:  if isa(s,'cell'),
0.01 2% 13:  res = cellfun('isclass',s,'char');
    14:  tf = all(res(:));
0.01 2% 15:  else
0.19 31% 16:  tf = logical(0);
0.03 5% 17:  end

rtifc     /usr/local/matlab/toolbox/matlab/iofun/private/rtifc.mexglx
Time: 0.60 s    ( 0.0%)
Calls: 180
Self time: 0.60 s    ( 0.0%)

Function: Time Calls Time/call
rtifc 0.60   180 0.0033333333
 
Parent functions:
readtif 180  
 
Child functions:
none



impad/constant     /usr/local/matlab/toolbox/images/images/private/impad.m
Time: 0.56 s    ( 0.0%)
Calls: 180
Self time: 0.26 s    ( 0.0%)

Function: Time Calls Time/call
impad/constant 0.56   180 0.0031111111
 
Parent functions:
feval 180  
 
Child functions:
repmat 0.28 50.0% 180 0.0015555556
nargin 0.02 3.6% 180 0.0001111111
cell 0.00 0.0% 180 0.0000000000
feval 0.00 0.0% 180 0.0000000000
class 0.00 0.0% 180 0.0000000000
size 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    22: 
0.02 4% 23:  if (nargin < 3)
    24:  padValue = 0;
 
    34:  sizeB = sizeA + 2*padSize;
0.28 50% 35:  b = repmat(feval(class(a), padValue), sizeB);
    36: 
 
    39:  for k = 1:numDims
0.01 2% 40:  idx{k} = (1:sizeA(k)) + padSize(k);
    41:  end
    42: 
0.25 45% 43:  b(idx{:}) = a;

sprintf     Builtin-function
Time: 0.53 s    ( 0.0%)
Calls: 9014
Self time: 0.53 s    ( 0.0%)

Function: Time Calls Time/call
sprintf 0.53   9014 0.0000587974
 
Parent functions:
datestr 2  
num2str 12  
ml_zernike 8820  
fcnchk 180  
 
Child functions:
none



size     Builtin-function
Time: 0.51 s    ( 0.0%)
Calls: 137494
Self time: 0.51 s    ( 0.0%)

Function: Time Calls Time/call
size 0.51   137494 0.0000037093
 
Parent functions:
ml_confid_writer 1  
strcat 11  
num2str 4  
ml_uni_confid_eval 2  
tinv 65  
tcdf 65  
ttest2 195  
ml_students_feats 3  
betapdf 461  
betacore 1052  
betacdf 922  
betainv 132  
finv 2  
distchck 3227  
cov 4  
repmat 3  
std 5  
ml_hotel 9  
ml_compfeat 4  
hist 1080  
bwmorph/thin 180  
impad/constant 180  
impad/ParseInputs 360  
bwfill 360  
bwfill/ParseInputs 720  
bwselect/ParseInputs 720  
edge/cannyFindLocalMaxima 720  
conv 360  
edge 720  
isrgb 180  
edge/parse_inputs 360  
mod 68416  
ml_imgcentmoments 2160  
bwarea 720  
flipud 2112  
roipoly 2379  
axes2pix 1080  
roipoly/parse_inputs 360  
delaunay 540  
unique 360  
xychk 720  
convhull 720  
var 980  
mean 2386  
ml_imgfeatures 3010  
ml_imgmoments 5580  
cellstr 29160  
bwlabel 180  
bweuler 360  
imfeature/ComputePixelList 180  
rot90 540  
filter2 1080  
strmatch 1080  
im2bw 180  
flipdim 360  
imhist/parse_inputs 540  
ml_slash_check 6  
sortrows 186  
cell/sort 12  
 
Child functions:
none



isempty     Builtin-function
Time: 0.43 s    ( 0.0%)
Calls: 101253
Self time: 0.43 s    ( 0.0%)

Function: Time Calls Time/call
isempty 0.43   101253 0.0000042468
 
Parent functions:
profreport/ParseInputs 1  
datestr 2  
num2str/lefttrim 8  
strvcat 16  
num2str 4  
betainc 526  
betainv 66  
std 2  
hist 360  
bwmorph/thin 180  
impad 180  
impad/ParseInputs 180  
bwfill 360  
bwfill/ParseInputs 180  
bwselect 180  
bwselect/ParseInputs 180  
edge/cannyFindLocalMaxima 720  
edge 360  
edge/parse_inputs 360  
mod 34208  
ml_imgcentmoments 720  
isbw 180  
axes2pix 360  
roipoly 180  
unique 360  
convhull 540  
ml_imgconvhull 180  
mean 1103  
var 490  
ml_imgfeatures 3370  
ml_imgmoments 3420  
cellstr 14580  
bwlabel 180  
imfeature/ComputeBoundingBox 180  
imfeature 360  
cell/strmatch 540  
imfeature/ParseInputs 540  
ml_features 720  
ml_featset 180  
filter2 540  
roifilt2 180  
ml_threshcrop 180  
bwmorph 540  
im2bw 720  
ml_preprocess 180  
imhist 540  
ml_imgbgsub 180  
imftype 360  
imread 540  
ml_readimage 540  
ml_calcfeat 186  
ml_dot_check 6  
ml_file_check 6  
ml_simec 2  
filesep 8  
path 6  
addpath 2  
deblank 30272  
isunix 9  
 
Child functions:
none



unique     /usr/local/matlab/toolbox/matlab/ops/unique.m
Time: 0.42 s    ( 0.0%)
Calls: 360
Self time: 0.10 s    ( 0.0%)

Function: Time Calls Time/call
unique 0.42   360 0.0011666667
 
Parent functions:
convhull 180  
delaunay 180  
 
Child functions:
sortrows 0.30 71.4% 180 0.0016666667
prod 0.01 2.4% 180 0.0000555556
end 0.01 2.4% 720 0.0000138889
sort 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 180 0.0000000000
nargout 0.00 0.0% 360 0.0000000000
find 0.00 0.0% 720 0.0000000000
all 0.00 0.0% 180 0.0000000000
size 0.00 0.0% 360 0.0000000000
strcmp 0.00 0.0% 180 0.0000000000
isstr 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 360 0.0000000000
nargin 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    20:  % Convert matrices and rectangular empties into columns
0.02 5% 21:  if length(a) ~= prod(size(a)) | (isempty(a) & any(size(a)))
    22:  a = a(:);
 
    25:  % d indicates the location of matching entries
0.02 5% 26:  d = b((1:end-1)')==b((2:end)');
    27:  b(find(d)) = [];
0.01 2% 28:  if nargout==3, % Create position mapping vector
    29:  pos = zeros(size(a));
 
    33:  if ~isstr(flag) | ~strcmp(flag,'rows'), error('Unknown flag.'); end
0.30 71% 34:  [b,ndx] = sortrows(a);
    35:  [m,n] = size(a);
 
    37:  % d indicates the location of matching entries
0.05 12% 38:  d = b(1:end-1,:)==b(2:end,:);
    39:  else
 
    42:  d = all(d,2);
0.01 2% 43:  b(find(d),:) = [];
    44:  if nargout==3, % Create position mapping vector
 
    49: 
0.01 2% 50:  ndx(find(d)) = [];

sortrows     /usr/local/matlab/toolbox/matlab/datafun/sortrows.m
Time: 0.31 s    ( 0.0%)
Calls: 186
Self time: 0.21 s    ( 0.0%)

Function: Time Calls Time/call
sortrows 0.31   186 0.0016666667
 
Parent functions:
unique 180  
cell/sort 6  
 
Child functions:
sort 0.10 32.3% 875 0.0001142857
length 0.00 0.0% 186 0.0000000000
size 0.00 0.0% 186 0.0000000000
ndims 0.00 0.0% 186 0.0000000000
nargin 0.00 0.0% 372 0.0000000000


99% of the total time in this function was spent on the following lines:

    18: 
0.01 3% 19:  if nargin<1, error('Not enough input arguments.'); end
    20:  if ndims(x)>2, error('X must be a 2-D matrix.'); end
 
    22:  [m,n] = size(x);
0.01 3% 23:  if nargin<2, col = 1:n; end
    24: 
 
    32:  for i=length(col):-1:1,
0.17 55% 33:  [v,ind] = sort(x(ndx,col(i)));
0.07 23% 34:  ndx = ndx(ind);
    35:  end
0.05 16% 36:  y = x(ndx,:);

intline     /usr/local/matlab/toolbox/images/images/private/intline.m
Time: 0.30 s    ( 0.0%)
Calls: 2199
Self time: 0.19 s    ( 0.0%)

Function: Time Calls Time/call
intline 0.30   2199 0.0001364256
 
Parent functions:
roipoly 2199  
 
Child functions:
flipud 0.09 30.0% 2112 0.0000426136
round 0.01 3.3% 2199 0.0000045475
abs 0.01 3.3% 4398 0.0000022738


83% of the total time in this function was spent on the following lines:

    12: 
0.02 7% 13:  dx = abs(x2 - x1);
0.04 13% 14:  dy = abs(y2 - y1);
    15: 
 
    26:  % Always "draw" from left to right.
0.01 3% 27:  t = x1; x1 = x2; x2 = t;
    28:  t = y1; y1 = y2; y2 = t;
 
    31:  m = (y2 - y1)/(x2 - x1);
0.03 10% 32:  x = (x1:x2).';
0.03 10% 33:  y = round(y1 + m*(x - x1));
0.01 3% 34:  else
    35:  if (y1 > y2)
 
    45: 
0.01 3% 46:  if (flip)
0.06 20% 47:  x = flipud(x);
0.03 10% 48:  y = flipud(y);
0.01 3% 49:  end

hist     /usr/local/matlab/toolbox/matlab/datafun/hist.m
Time: 0.29 s    ( 0.0%)
Calls: 360
Self time: 0.14 s    ( 0.0%)

Function: Time Calls Time/call
hist 0.29   360 0.0008055556
 
Parent functions:
ml_imgedgefeatures 360  
 
Child functions:
histc 0.07 24.1% 360 0.0001944444
min 0.03 10.3% 1440 0.0000208333
length 0.02 6.9% 1440 0.0000138889
horzcat 0.01 3.4% 360 0.0000277778
max 0.01 3.4% 1080 0.0000092593
isstr 0.01 3.4% 720 0.0000138889
nargout 0.00 0.0% 360 0.0000000000
end 0.00 0.0% 1440 0.0000000000
abs 0.00 0.0% 360 0.0000000000
full 0.00 0.0% 720 0.0000000000
real 0.00 0.0% 720 0.0000000000
isempty 0.00 0.0% 360 0.0000000000
size 0.00 0.0% 1080 0.0000000000
nargin 0.00 0.0% 720 0.0000000000


72% of the total time in this function was spent on the following lines:

    44:  if length(x) == 1
0.02 7% 45:  miny = min(min(y));
    46:  maxy = max(max(y));
 
    53:  xx(length(xx)) = maxy;
0.01 3% 54:  x = xx(1:length(xx)-1) + binwidth/2;
    55:  else
 
    63:  end
0.01 3% 64:  nbin = length(xx);
    65:  % Shift bins so the internal is ( ] instead of [ ).
0.01 3% 66:  xx = full(real(xx)); y = full(real(y)); % For compatibility
0.02 7% 67:  bins = xx + max(eps,eps*abs(xx));
0.09 31% 68:  nn = histc(y,[-inf bins],1);
    69: 
 
    71:  nn(2,:) = nn(2,:)+nn(1,:);
0.02 7% 72:  nn(end-1,:) = nn(end-1,:)+nn(end,:);
0.01 3% 73:  nn = nn(2:end-1,:);
    74:  end
 
    78:  else
0.01 3% 79:  if min(size(y))==1, % Return row vectors if possible.
    80:  no = nn';
0.01 3% 81:  xo = x;
    82:  else

betapdf     /usr/local/matlab/toolbox/stats/betapdf.m
Time: 0.27 s    ( 0.0%)
Calls: 461
Self time: 0.10 s    ( 0.0%)

Function: Time Calls Time/call
betapdf 0.27   461 0.0005856833
 
Parent functions:
betainv 461  
 
Child functions:
distchck 0.15 55.6% 461 0.0003253796
betaln 0.01 3.7% 461 0.0000216920
zeros 0.01 3.7% 461 0.0000216920
exp 0.00 0.0% 461 0.0000000000
log 0.00 0.0% 922 0.0000000000
any 0.00 0.0% 1383 0.0000000000
find 0.00 0.0% 1383 0.0000000000
size 0.00 0.0% 461 0.0000000000
nargin 0.00 0.0% 461 0.0000000000


92% of the total time in this function was spent on the following lines:

    19: 
0.16 59% 20:  [errorcode x a b] = distchck(3,x,a,b);
    21: 
 
    26:  % Initialize Y to zero.
0.01 4% 27:  y = zeros(size(x));
    28: 
    29:  % Return NaN for parameter values outside their respective limits.
0.01 4% 30:  k1 = find(a <= 0 | b <= 0);
0.02 7% 31:  if any(k1)
    32:  tmp = NaN;
 
    44:  % Return the beta density function for valid parameters.
0.02 7% 45:  k = find(~(a <= 0 | b <= 0 | x <= 0 | x >= 1));
    46:  if any(k)
    47:  %    y(k) = x(k) .^ (a(k) - 1) .* (1 - x(k)) .^ (b(k) - 1) ./ beta(a(k),b(k));
0.03 11% 48:  tmp(k) = (a(k) - 1).*log(x(k)) + (b(k) - 1).*log((1 - x(k))) - betaln(a(k),b(k));
    49:  y(k) = exp(tmp(k));

isa     Builtin-function
Time: 0.27 s    ( 0.0%)
Calls: 30062
Self time: 0.27 s    ( 0.0%)

Function: Time Calls Time/call
isa 0.27   30062 0.0000089814
 
Parent functions:
bwfill/ParseInputs 180  
bwselect/ParseInputs 180  
edge 360  
ml_imgcentmoments 720  
bwarea 720  
isbw 360  
roipoly/parse_inputs 1080  
ml_imgmoments 3420  
bwlabel 360  
bweuler 180  
iscellstr 15660  
iscell 542  
isnumeric 360  
filter2 1080  
roifilt2 180  
isobject 900  
fcnchk 180  
bwmorph 540  
im2bw 1440  
imhist/parse_inputs 1620  
 
Child functions:
none



distchck     /usr/local/matlab/toolbox/stats/distchck.m
Time: 0.25 s    ( 0.0%)
Calls: 1119
Self time: 0.19 s    ( 0.0%)

Function: Time Calls Time/call
distchck 0.25   1119 0.0002234138
 
Parent functions:
tinv 65  
tcdf 65  
betapdf 461  
betacdf 461  
betainv 66  
finv 1  
 
Child functions:
size 0.04 16.0% 3227 0.0000123954
prod 0.01 4.0% 3227 0.0000030989
cell 0.01 4.0% 2238 0.0000044683
all 0.00 0.0% 1119 0.0000000000
logical 0.00 0.0% 1119 0.0000000000
zeros 0.00 0.0% 1119 0.0000000000
nargout 0.00 0.0% 1119 0.0000000000


100% of the total time in this function was spent on the following lines:

    8:  errorcode = 0;
0.01 4% 9:  n = nargout-1;
    10:  varargout = cell(1,n);
 
    17:  % Get size of each input, check for scalars, copy to output
0.01 4% 18:  sz = cell(1,n);
0.02 8% 19:  isscalar = logical(zeros(1,n));
0.01 4% 20:  for j=1:n
0.07 28% 21:  s = size(varargin{j});
0.04 16% 22:  sz{j} = s;
0.03 12% 23:  isscalar(j) = (prod(s) == 1);
0.04 16% 24:  varargout{j} = varargin{j};
    25:  end
 
    27:  % Done if all inputs are scalars.  Otherwise fetch their common size.
0.02 8% 28:  if (all(isscalar)), return; end

length     Builtin-function
Time: 0.22 s    ( 0.0%)
Calls: 77907
Self time: 0.22 s    ( 0.0%)

Function: Time Calls Time/call
length 0.22   77907 0.0000028239
 
Parent functions:
datestr 6  
ml_report_writer 12  
strcat 8  
num2str 4  
ttest2 130  
betainc 3682  
cov 2  
ml_calcfeat 180  
hist 1440  
filter2 360  
impad/constant 360  
impad/ParseInputs 180  
conv 360  
ml_Znl 44100  
mod 17104  
ml_hullfeatures 180  
roipoly 360  
unique 180  
xychk 360  
bwlabel 360  
repmat 2707  
imfeature/ComputeEulerNumber 180  
imfeature/ComputeImage 180  
imfeature/ComputeBoundingBox 180  
imfeature/ComputePixelList 180  
imfeature 720  
imfeature/ParseInputs 360  
ml_features 180  
rot90 540  
roifilt2 180  
bwmorph 540  
strmatch 1080  
flipdim 180  
ml_readimage 540  
sortrows 186  
ml_dot_check 546  
ml_file_check 18  
path 42  
 
Child functions:
none



cell/strmatch     /usr/local/matlab/toolbox/matlab/strfun/@cell/strmatch.m
Time: 0.18 s    ( 0.0%)
Calls: 540
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
cell/strmatch 0.18   540 0.0003333333
 
Parent functions:
edge/parse_inputs 360  
imfeature/ParseInputs 180  
 
Child functions:
strmatch 0.07 38.9% 540 0.0001296296
iscellstr 0.02 11.1% 1080 0.0000185185
isempty 0.01 5.6% 540 0.0000185185
nargchk 0.01 5.6% 540 0.0000185185
ischar 0.00 0.0% 1080 0.0000000000
char 0.00 0.0% 540 0.0000000000
error 0.00 0.0% 540 0.0000000000
nargin 0.00 0.0% 1620 0.0000000000


100% of the total time in this function was spent on the following lines:

    9: 
0.01 6% 10:  error(nargchk(2,3,nargin));
0.01 6% 11:  if isempty(strs), out = []; return; end
0.02 11% 12:  if iscellstr(str), str = char(str); end
0.03 17% 13:  if iscellstr(strs), strs = char(strs); end
    14: 
0.01 6% 15:  if ~ischar(str) | ~ischar(strs)
    16:  error('Requires character array or cell array of strings as inputs.')
    17:  end
0.01 6% 18:  if (nargin==3) & ~ischar(flag)
    19:  error('FLAG must be a string.');
 
    22:  if nargin==2,
0.09 50% 23:  out = strmatch(str,strs);

bwfillc     /usr/local/matlab/toolbox/images/images/private/bwfillc.mexglx
Time: 0.18 s    ( 0.0%)
Calls: 180
Self time: 0.18 s    ( 0.0%)

Function: Time Calls Time/call
bwfillc 0.18   180 0.0010000000
 
Parent functions:
bwfill 180  
 
Child functions:
none



isreal     Builtin-function
Time: 0.18 s    ( 0.0%)
Calls: 34742
Self time: 0.18 s    ( 0.0%)

Function: Time Calls Time/call
isreal 0.18   34742 0.0000051810
 
Parent functions:
num2str 8  
betainc 526  
mod 34208  
 
Child functions:
none



imfeature/ParseInputs     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 0.18 s    ( 0.0%)
Calls: 180
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
imfeature/ParseInputs 0.18   180 0.0010000000
 
Parent functions:
imfeature 180  
 
Child functions:
cell/strmatch 0.07 38.9% 180 0.0003888889
lower 0.02 11.1% 720 0.0000277778
iscell 0.01 5.6% 540 0.0000185185
vertcat 0.01 5.6% 180 0.0000555556
isstr 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 360 0.0000000000
strcmp 0.00 0.0% 360 0.0000000000
isempty 0.00 0.0% 540 0.0000000000
isnumeric 0.00 0.0% 180 0.0000000000
isequal 0.00 0.0% 360 0.0000000000
end 0.00 0.0% 540 0.0000000000
nargin 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    707:  list = varargin(2:end);
0.02 11% 708:  if (~isempty(list) & ~iscell(list{1}) & strcmp(lower(list{1}), 'all'))
    709:  reqStats = officialStats;
 
    711: 
0.02 11% 712:  elseif (isempty(list) | (~iscell(list{1}) & strcmp(lower(list{1}),'basic')))
    713:  % Default list
 
    723: 
0.02 11% 724:  officialStatsL = lower(officialStats);
    725: 
    726:  reqStatsIdx = [];
0.01 6% 727:  for k = 1:length(list)
0.02 11% 728:  if (~isstr(list{k}))
    729:  msg = 'Invalid input argument.';
 
    732: 
0.07 39% 733:  idx = strmatch(lower(list{k}), officialStatsL);
0.01 6% 734:  if (isempty(idx))
    735:  msg = sprintf('Unknown measurement: "%s".', list{k});
 
    742:  else
0.01 6% 743:  reqStatsIdx = [reqStatsIdx; idx];
    744:  end

strmatch     /usr/local/matlab/toolbox/matlab/strfun/strmatch.m
Time: 0.17 s    ( 0.0%)
Calls: 1080
Self time: 0.11 s    ( 0.0%)

Function: Time Calls Time/call
strmatch 0.17   1080 0.0001574074
 
Parent functions:
cell/strmatch 540  
bwmorph 540  
 
Child functions:
find 0.01 5.9% 1080 0.0000092593
sum 0.01 5.9% 1080 0.0000092593
nargin 0.01 5.9% 1080 0.0000092593
setstr 0.01 5.9% 1080 0.0000092593
length 0.01 5.9% 1080 0.0000092593
size 0.01 5.9% 1080 0.0000092593
ones 0.00 0.0% 1080 0.0000000000


100% of the total time in this function was spent on the following lines:

    24: 
0.02 12% 25:  [m,n] = size(strs);
0.03 18% 26:  len = length(str);
0.01 6% 27:  null = setstr(0); space = ' ';
0.01 6% 28:  if (nargin < 3)
    29:  exactFlag = 0;
 
    38:  end 
0.02 12% 39:  if n==0
    40:  strs = reshape(strs,max(m,1),n);
 
    43: 
0.01 6% 44:  if len > n
    45:  i = [];
0.01 6% 46:  else
    47:  if exactFlag  % if 'exact' flag, pad str with blanks or nulls
 
    55:  end
0.06 35% 56:  i = find(~sum((strs(:,1:len) ~= str(ones(m,1),:)),2));
    57:  end

vertcat     Builtin-function
Time: 0.16 s    ( 0.0%)
Calls: 6161
Self time: 0.16 s    ( 0.0%)

Function: Time Calls Time/call
vertcat 0.16   6161 0.0000259698
 
Parent functions:
datestr 2  
ml_hotel 180  
ml_calcfeat 180  
edge 900  
roipoly 2199  
convhull 540  
bwlabel 360  
imfeature/ParseInputs 180  
imfeature 360  
bwmorph 1080  
imread/parse_inputs 180  
 
Child functions:
none



edge/parse_inputs     /usr/local/matlab/toolbox/images/images/edge.m
Time: 0.16 s    ( 0.0%)
Calls: 180
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
edge/parse_inputs 0.16   180 0.0008888889
 
Parent functions:
edge 180  
 
Child functions:
cell/strmatch 0.11 68.8% 360 0.0003055556
isrgb 0.01 6.3% 180 0.0000555556
prod 0.00 0.0% 360 0.0000000000
size 0.00 0.0% 360 0.0000000000
horzcat 0.00 0.0% 180 0.0000000000
strcmp 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 360 0.0000000000
lower 0.00 0.0% 180 0.0000000000
ischar 0.00 0.0% 360 0.0000000000
cellhorzcat 0.00 0.0% 540 0.0000000000
error 0.00 0.0% 180 0.0000000000
nargchk 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    503:  methods = {'canny','prewitt','sobel','marr-hildreth','log','roberts','zerocross'};
0.01 6% 504:  directions = {'both','horizontal','vertical'};
    505: 
 
    513:  str = lower(varargin{i});
0.05 31% 514:  j = strmatch(str,methods);
0.07 44% 515:  k = strmatch(str,directions);
0.01 6% 516:  if ~isempty(j)
    517:  Method = methods{j(1)};
 
    561:  end
0.01 6% 562:  elseif isempty(varargin{i}) & ~threshSpecified
    563:  % Thresh = [];
 
    630: 
0.01 6% 631:  if isrgb(I)

ml_file_check     /home/ejr/ml/SImEC/matlab/ml_file_check.m
Time: 0.16 s    ( 0.0%)
Calls: 6
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
ml_file_check 0.16   6 0.0266666667
 
Parent functions:
ml_calcfeat 6  
 
Child functions:
isdir 0.05 31.3% 546 0.0000915751
ml_dot_check 0.02 12.5% 6 0.0033333333
cell/sort 0.02 12.5% 6 0.0033333333
dir 0.01 6.3% 6 0.0016666667
cd 0.01 6.3% 12 0.0008333333
ml_slash_check 0.00 0.0% 6 0.0000000000
deal 0.00 0.0% 6 0.0000000000
length 0.00 0.0% 18 0.0000000000
isempty 0.00 0.0% 6 0.0000000000
exist 0.00 0.0% 6 0.0000000000
pwd 0.00 0.0% 12 0.0000000000


100% of the total time in this function was spent on the following lines:

    37: 
0.01 6% 38:  cd(old_dir); newDir = pwd; cd(currDir);
    39: 
0.01 6% 40:  direc = dir(old_dir); 
0.01 6% 41:  [files{1:length(direc),1}] = deal(direc.name);
0.05 31% 42:  files = sort(ml_dot_check(files));
    43:  new_dir = ml_slash_check(newDir);
    44:  for i = 1:length(files)
0.07 44% 45:  if (~isdir(files{i}))
0.01 6% 46:  new_files(i) = files(i);
    47:  end

bwlabel1     /usr/local/matlab/toolbox/images/images/private/bwlabel1.mexglx
Time: 0.15 s    ( 0.0%)
Calls: 180
Self time: 0.15 s    ( 0.0%)

Function: Time Calls Time/call
bwlabel1 0.15   180 0.0008333333
 
Parent functions:
bwlabel 180  
 
Child functions:
none



bweuler     /usr/local/matlab/toolbox/images/images/bweuler.m
Time: 0.13 s    ( 0.0%)
Calls: 180
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
bweuler 0.13   180 0.0007222222
 
Parent functions:
imfeature/ComputeEulerNumber 180  
 
Child functions:
applylut 0.06 46.2% 180 0.0003333333
repmat 0.04 30.8% 180 0.0002222222
sum 0.01 7.7% 180 0.0000555556
prod 0.00 0.0% 180 0.0000000000
end 0.00 0.0% 360 0.0000000000
size 0.00 0.0% 360 0.0000000000
uint8 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000
isa 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    44:  % Need to zero-pad the input
0.05 38% 45:  b = repmat(uint8(0),size(a)+2);
    46:  b(2:end-1,2:end-1) = a;
    47: 
0.07 54% 48:  weights = applylut(b,lut);
0.01 8% 49:  e = (sum(weights(:)) - 2*prod(size(b))) / 4;

cell     Builtin-function
Time: 0.13 s    ( 0.0%)
Calls: 17718
Self time: 0.13 s    ( 0.0%)

Function: Time Calls Time/call
cell 0.13   17718 0.0000073372
 
Parent functions:
distchck 2238  
impad/constant 180  
cellstr 14580  
imfeature 540  
flipdim 180  
 
Child functions:
none



ndims     Builtin-function
Time: 0.13 s    ( 0.0%)
Calls: 19421
Self time: 0.13 s    ( 0.0%)

Function: Time Calls Time/call
ndims 0.13   19421 0.0000066938
 
Parent functions:
strcat 11  
cov 2  
repmat 3  
std 1  
impad/ParseInputs 180  
isbw 180  
flipud 2112  
xychk 360  
convhull 180  
cellstr 14580  
rot90 540  
roifilt2 180  
im2bw 720  
flipdim 180  
sortrows 186  
cell/sort 6  
 
Child functions:
none



mean     /usr/local/matlab/toolbox/matlab/datafun/mean.m
Time: 0.13 s    ( 0.0%)
Calls: 1283
Self time: 0.10 s    ( 0.0%)

Function: Time Calls Time/call
mean 0.13   1283 0.0001013250
 
Parent functions:
ttest2 130  
ml_hotel 3  
convhull 360  
var 430  
ml_imgfeatures 360  
 
Child functions:
sum 0.02 15.4% 1283 0.0000155885
find 0.01 7.7% 1103 0.0000090662
isempty 0.00 0.0% 1103 0.0000000000
min 0.00 0.0% 1103 0.0000000000
size 0.00 0.0% 2386 0.0000000000
nargin 0.00 0.0% 1283 0.0000000000


76% of the total time in this function was spent on the following lines:

    20: 
0.02 15% 21:  if nargin==1, 
    22:  % Determine which dimension SUM will use
0.04 31% 23:  dim = min(find(size(x)~=1));
    24:  if isempty(dim), dim = 1; end
    25: 
0.04 31% 26:  y = sum(x)/size(x,dim);
    27:  else

tcdf     /usr/local/matlab/toolbox/stats/tcdf.m
Time: 0.12 s    ( 0.0%)
Calls: 65
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
tcdf 0.12   65 0.0018461538
 
Parent functions:
ttest2 65  
 
Child functions:
betainc 0.11 91.7% 65 0.0016923077
isnan 0.00 0.0% 130 0.0000000000
any 0.00 0.0% 260 0.0000000000
find 0.00 0.0% 260 0.0000000000
zeros 0.00 0.0% 65 0.0000000000
size 0.00 0.0% 65 0.0000000000
distchck 0.00 0.0% 65 0.0000000000
nargin 0.00 0.0% 65 0.0000000000


100% of the total time in this function was spent on the following lines:

    49:  xx = v(k) ./ (v(k) + x(k).^2);
0.12 100% 50:  p(k) = betainc(xx, v(k)/2, 0.5)/2;
    51:  end

imftype     /usr/local/matlab/toolbox/matlab/iofun/private/imftype.m
Time: 0.12 s    ( 0.0%)
Calls: 180
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
imftype 0.12   180 0.0006666667
 
Parent functions:
imread 180  
 
Child functions:
imftype/istif 0.06 50.0% 180 0.0003333333
find 0.02 16.7% 180 0.0001111111
cellhorzcat 0.00 0.0% 360 0.0000000000
lower 0.00 0.0% 180 0.0000000000
end 0.00 0.0% 360 0.0000000000
isempty 0.00 0.0% 360 0.0000000000
error 0.00 0.0% 180 0.0000000000
nargchk 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    18: 
0.01 8% 19:  error(nargchk(1, 1, nargin));
    20: 
 
    23: 
0.03 25% 24:  idx = find(filename == '.');
    25:  if (~isempty(idx))
0.01 8% 26:  extension = lower(filename(idx(end)+1:end));
    27:  else
 
    59:  case {'tiff', 'tif'}
0.06 50% 60:  formatFound = istif(filename);
    61:  if (formatFound)
 
    156: 
0.01 8% 157:  if (~formatFound)
    158:  formatFound = isico(filename);

load     Builtin-function
Time: 0.12 s    ( 0.0%)
Calls: 180
Self time: 0.12 s    ( 0.0%)

Function: Time Calls Time/call
load 0.12   180 0.0006666667
 
Parent functions:
ml_featset 180  
 
Child functions:
none



fix     Builtin-function
Time: 0.12 s    ( 0.0%)
Calls: 17110
Self time: 0.12 s    ( 0.0%)

Function: Time Calls Time/call
fix 0.12   17110 0.0000070134
 
Parent functions:
datestr 2  
num2str 4  
mod 17104  
 
Child functions:
none



imhist/parse_inputs     /usr/local/matlab/toolbox/images/images/imhist.m
Time: 0.11 s    ( 0.0%)
Calls: 540
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
imhist/parse_inputs 0.11   540 0.0002037037
 
Parent functions:
imhist 540  
 
Child functions:
prod 0.02 18.2% 540 0.0000370370
nargin 0.02 18.2% 540 0.0000370370
isa 0.00 0.0% 1620 0.0000000000
size 0.00 0.0% 540 0.0000000000


99% of the total time in this function was spent on the following lines:

    150: 
0.04 36% 151:  switch nargin
    152:  case 0
 
    191:  case 2
0.01 9% 192:  a = varargin{1};
0.03 27% 193:  if (prod(size(varargin{2})) == 1)
    194:  % IMHIST(I, N)
0.02 18% 195:  if (isa(a,'uint8'))
    196:  if (islogical(a))
 
    215:  elseif (isa(a, 'double'))
0.01 9% 216:  a = varargin{1};
    217:  n = varargin{2};

imfeature/ComputeBoundingBox     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 0.11 s    ( 0.0%)
Calls: 180
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
imfeature/ComputeBoundingBox 0.11   180 0.0006111111
 
Parent functions:
imfeature/ComputeImage 180  
 
Child functions:
max 0.03 27.3% 360 0.0000833333
min 0.03 27.3% 360 0.0000833333
horzcat 0.00 0.0% 180 0.0000000000
isempty 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 180 0.0000000000
imfeature/ComputePixelList 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    423: 
0.01 9% 424:  [stats, computedStats] = ComputePixelList(L, stats, computedStats);
    425: 
 
    430:  else
0.01 9% 431:  rows = list(:,2);
    432:  cols = list(:,1);
0.01 9% 433:  minR = min(rows) - 0.5;
0.03 27% 434:  maxR = max(rows) + 0.5;
0.03 27% 435:  minC = min(cols) - 0.5;
0.02 18% 436:  maxC = max(cols) + 0.5;
    437:  stats(k).BoundingBox = [minC minR (maxC-minC) (maxR-minR)];

sort     Builtin-function
Time: 0.10 s    ( 0.0%)
Calls: 1056
Self time: 0.10 s    ( 0.0%)

Function: Time Calls Time/call
sort 0.10   1056 0.0000946970
 
Parent functions:
ml_uni_confid_eval 1  
unique 180  
sortrows 875  
 
Child functions:
none



ml_hotel     /home/ejr/ml/SImEC/matlab/ml_hotel.m
Time: 0.09 s    ( 0.0%)
Calls: 1
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
ml_hotel 0.09   1 0.0900000000
 
Parent functions:
eval 1  
 
Child functions:
finv 0.05 55.6% 1 0.0500000000
std 0.01 11.1% 1 0.0100000000
mean 0.01 11.1% 3 0.0033333333
cov 0.00 0.0% 2 0.0000000000
end 0.00 0.0% 260 0.0000000000
size 0.00 0.0% 9 0.0000000000
vertcat 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 2 0.0000000000
lastwarn 0.00 0.0% 2 0.0000000000


100% of the total time in this function was spent on the following lines:

    36:  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0.01 11% 37:  meanallsingle = mean([matrix1;matrix2]); % mean value for two matrices
    38:  meanall1 = meanallsingle;
 
    48: 
0.01 11% 49:  stdall = std([matrix1;matrix2]); % standard deviation for two matrices
    50:  zmatrix1 = (matrix1 - meanall1);
 
    68:  diff = mean1 - mean2;
0.01 11% 69:  cov1 = cov(zmatrix1);
0.01 11% 70:  cov2 = cov(zmatrix2);
    71:  n1 = size(zmatrix1,1);
 
    80:  deg2 = (n1 + n2 - deg1 -1);
0.05 56% 81:  crit = finv((1-ttsig),deg1,deg2);
    82:  if (F > crit)

bwfill/ParseInputs     /usr/local/matlab/toolbox/images/images/bwfill.m
Time: 0.09 s    ( 0.0%)
Calls: 180
Self time: 0.06 s    ( 0.0%)

Function: Time Calls Time/call
bwfill/ParseInputs 0.09   180 0.0005000000
 
Parent functions:
bwfill 180  
 
Child functions:
round 0.03 33.3% 360 0.0000833333
isempty 0.00 0.0% 180 0.0000000000
find 0.00 0.0% 180 0.0000000000
isa 0.00 0.0% 180 0.0000000000
horzcat 0.00 0.0% 360 0.0000000000
size 0.00 0.0% 720 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    187: 
0.01 11% 188:  msg = '';
    189:  style = 8;
 
    316: 
0.01 11% 317:  I = varargin{1};
0.01 11% 318:  xdata = [1 size(I,2)];
    319:  ydata = [1 size(I,1)];
0.01 11% 320:  xi = varargin{2};
    321:  yi = varargin{3};
0.03 33% 322:  r = round(yi);
    323:  c = round(xi);
 
    359: 
0.02 22% 360:  badPix = find((r < 1) | (r > size(I,1)) | ...
    361:  (c < 1) | (c > size(I,2)));

var     /usr/local/matlab/toolbox/matlab/datafun/var.m
Time: 0.09 s    ( 0.0%)
Calls: 490
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
var 0.09   490 0.0001836735
 
Parent functions:
ttest2 130  
ml_imgfeatures 360  
 
Child functions:
mean 0.05 55.6% 430 0.0001162791
min 0.01 11.1% 490 0.0000204082
size 0.01 11.1% 980 0.0000102041
sum 0.00 0.0% 430 0.0000000000
conj 0.00 0.0% 430 0.0000000000
nargin 0.00 0.0% 860 0.0000000000
isempty 0.00 0.0% 490 0.0000000000


100% of the total time in this function was spent on the following lines:

    37: 
0.01 11% 38:  if min(size(x)) == 1
    39:  x = x(:);
 
    41: 
0.02 22% 42:  [m,n] = size(x);
    43: 
 
    78:  avg = sum(w.*x);
0.01 11% 79:  else
0.05 56% 80:  avg = mean(x);
    81:  end

nargchk     /usr/local/matlab/toolbox/matlab/lang/nargchk.m
Time: 0.09 s    ( 0.0%)
Calls: 2702
Self time: 0.09 s    ( 0.0%)

Function: Time Calls Time/call
nargchk 0.09   2702 0.0000333087
 
Parent functions:
profreport/ParseInputs 1  
edge/parse_inputs 180  
bwperim 180  
axes2pix 360  
cell/strmatch 540  
filter2 540  
bwmorph 540  
readtif 180  
imftype 180  
addpath 1  
 
Child functions:
none


55% of the total time in this function was spent on the following lines:

    10: 
0.01 11% 11:  msg = [];
0.01 11% 12:  if (number < low)
    13:  msg = 'Not enough input arguments.';
0.03 33% 14:  elseif (number > high)

flipud     /usr/local/matlab/toolbox/matlab/elmat/flipud.m
Time: 0.09 s    ( 0.0%)
Calls: 2112
Self time: 0.08 s    ( 0.0%)

Function: Time Calls Time/call
flipud 0.09   2112 0.0000426136
 
Parent functions:
intline 2112  
 
Child functions:
ndims 0.01 11.1% 2112 0.0000047348
size 0.00 0.0% 2112 0.0000000000


88% of the total time in this function was spent on the following lines:

    14: 
0.01 11% 15:  if ndims(x)~=2, error('X must be a 2-D matrix.'); end
0.03 33% 16:  [m,n] = size(x);
0.04 44% 17:  y = x(m:-1:1,:);

isspace     Builtin-function
Time: 0.09 s    ( 0.0%)
Calls: 15136
Self time: 0.09 s    ( 0.0%)

Function: Time Calls Time/call
isspace 0.09   15136 0.0000059461
 
Parent functions:
deblank 15136  
 
Child functions:
none



fopen     Builtin-function
Time: 0.08 s    ( 0.0%)
Calls: 902
Self time: 0.08 s    ( 0.0%)

Function: Time Calls Time/call
fopen 0.08   902 0.0000886918
 
Parent functions:
ml_confid_writer 1  
ml_report_writer 1  
imftype/istif 180  
imread 360  
ml_tclread 360  
 
Child functions:
none



bwselect/ParseInputs     /usr/local/matlab/toolbox/images/images/bwselect.m
Time: 0.08 s    ( 0.0%)
Calls: 180
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
bwselect/ParseInputs 0.08   180 0.0004444444
 
Parent functions:
bwselect 180  
 
Child functions:
round 0.02 25.0% 360 0.0000555556
size 0.01 12.5% 720 0.0000138889
isempty 0.00 0.0% 180 0.0000000000
find 0.00 0.0% 180 0.0000000000
isa 0.00 0.0% 180 0.0000000000
horzcat 0.00 0.0% 360 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    215:  I = varargin{1};
0.01 13% 216:  xdata = [1 size(I,2)];
0.01 13% 217:  ydata = [1 size(I,1)];
    218:  xi = varargin{2};
    219:  yi = varargin{3};
0.01 13% 220:  r = round(yi);
0.02 25% 221:  c = round(xi);
    222:  style = varargin{4};
 
    254:  % Force input input image to be binary.
0.01 13% 255:  if ~isa(I, 'uint8')
    256:  if ~isa(I, 'uint16')
 
    262: 
0.02 25% 263:  badPix = find((r < 1) | (r > size(I,1)) | ...
    264:  (c < 1) | (c > size(I,2)));

flipdim     /usr/local/matlab/toolbox/matlab/elmat/flipdim.m
Time: 0.08 s    ( 0.0%)
Calls: 180
Self time: 0.06 s    ( 0.0%)

Function: Time Calls Time/call
flipdim 0.08   180 0.0004444444
 
Parent functions:
ml_nihthreshold 180  
 
Child functions:
cell 0.02 25.0% 180 0.0001111111
cellhorzcat 0.00 0.0% 540 0.0000000000
length 0.00 0.0% 180 0.0000000000
horzcat 0.00 0.0% 180 0.0000000000
ones 0.00 0.0% 180 0.0000000000
max 0.00 0.0% 180 0.0000000000
ndims 0.00 0.0% 180 0.0000000000
size 0.00 0.0% 360 0.0000000000
floor 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


99% of the total time in this function was spent on the following lines:

    16:  if dim<=0, error('DIM must be a positive integer.'); end
0.02 25% 17:  dim = floor(dim);
    18:  siz = [size(x) ones(1,max(dim-ndims(x),0))];
0.02 25% 19:  v = cell(size(siz));
0.01 13% 20:  for i=1:length(siz),
0.02 25% 21:  v(i) = {':'};
    22:  end
0.01 12% 23:  v(dim) = {siz(dim):-1:1}; % Flip dimension v
    24:  y = x(v{:}); % "Index with v" and flip dimension v.

any     Builtin-function
Time: 0.07 s    ( 0.0%)
Calls: 18611
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
any 0.07   18611 0.0000037612
 
Parent functions:
strcat 4  
num2str 4  
tinv 390  
tcdf 260  
betapdf 1383  
betacore 13011  
betainc 526  
betacdf 1383  
betainv 1647  
finv 3  
 
Child functions:
none



impad/ParseInputs     /usr/local/matlab/toolbox/images/images/private/impad.m
Time: 0.07 s    ( 0.0%)
Calls: 180
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
impad/ParseInputs 0.07   180 0.0003888889
 
Parent functions:
impad 180  
 
Child functions:
isnumeric 0.01 14.3% 180 0.0000555556
nargin 0.01 14.3% 360 0.0000277778
length 0.00 0.0% 180 0.0000000000
ndims 0.00 0.0% 180 0.0000000000
horzcat 0.00 0.0% 180 0.0000000000
isequal 0.00 0.0% 180 0.0000000000
min 0.00 0.0% 180 0.0000000000
size 0.00 0.0% 360 0.0000000000
isempty 0.00 0.0% 180 0.0000000000
ischar 0.00 0.0% 180 0.0000000000
cellhorzcat 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    114: 
0.01 14% 115:  if (nargin < 2)
    116:  msg = 'Too few input arguments';
 
    122: 
0.02 29% 123:  if (~isnumeric(a))
    124:  msg = 'Invalid input image';
 
    127: 
0.01 14% 128:  if (nargin >= 3)
    129:  if (ischar(varargin{3}))
 
    153:  params = {varargin{3}};
0.01 14% 154:  end
    155: 
 
    162: 
0.02 29% 163:  if (min(size(padSize)) ~= 1)
    164:  msg = 'Pad size must be a vector.';

linspace     /usr/local/matlab/toolbox/matlab/elmat/linspace.m
Time: 0.07 s    ( 0.0%)
Calls: 540
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
linspace 0.07   540 0.0001296296
 
Parent functions:
imhist 540  
 
Child functions:
horzcat 0.00 0.0% 540 0.0000000000
nargin 0.00 0.0% 540 0.0000000000


71% of the total time in this function was spent on the following lines:

    12: 
0.01 14% 13:  if nargin == 2
    14:  n = 100;
    15:  end
0.04 57% 16:  y = [d1+(0:n-2)*(d2-d1)/(n-1) d2];

isstr     Builtin-function
Time: 0.07 s    ( 0.0%)
Calls: 17127
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
isstr 0.07   17127 0.0000040871
 
Parent functions:
datestr 4  
num2str 4  
hist 720  
unique 180  
xychk 180  
imfeature/ParseInputs 180  
fcnchk 180  
bwmorph 540  
path 2  
addpath 1  
deblank 15136  
 
Child functions:
none



histc     /usr/local/matlab/toolbox/matlab/datafun/histc.mexglx
Time: 0.07 s    ( 0.0%)
Calls: 360
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
histc 0.07   360 0.0001944444
 
Parent functions:
hist 360  
 
Child functions:
none



axes2pix     /usr/local/matlab/toolbox/images/images/private/axes2pix.m
Time: 0.07 s    ( 0.0%)
Calls: 360
Self time: 0.03 s    ( 0.0%)

Function: Time Calls Time/call
axes2pix 0.07   360 0.0001944444
 
Parent functions:
roipoly 360  
 
Child functions:
min 0.02 28.6% 360 0.0000555556
size 0.01 14.3% 1080 0.0000092593
nargchk 0.01 14.3% 360 0.0000277778
max 0.00 0.0% 720 0.0000000000
isempty 0.00 0.0% 360 0.0000000000
nargin 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    15:  % Error checking on input arguments.
0.01 14% 16:  error_str = nargchk(3, 3, nargin);
    17:  if (~ isempty(error_str));
 
    19:  end
0.01 14% 20:  if (max(size(dim)) ~= 1)
    21:  error('First argument must be a scalar.');
    22:  end
0.02 29% 23:  if (min(size(x)) > 1)
    24:  error('X must be a vector.');
 
    27:  xfirst = x(1);
0.02 29% 28:  xlast = x(max(size(x)));
    29: 
0.01 14% 30:  if (dim == 1)
    31:  pixelx = axesx - xfirst + 1;

logical     Builtin-function
Time: 0.07 s    ( 0.0%)
Calls: 17319
Self time: 0.07 s    ( 0.0%)

Function: Time Calls Time/call
logical 0.07   17319 0.0000040418
 
Parent functions:
distchck 1119  
bwselect 180  
impad 180  
edge 180  
isrgb 180  
isbw 180  
imfeature/ComputeImage 180  
iscellstr 15120  
 
Child functions:
none



rot90     /usr/local/matlab/toolbox/matlab/elmat/rot90.m
Time: 0.07 s    ( 0.0%)
Calls: 540
Self time: 0.06 s    ( 0.0%)

Function: Time Calls Time/call
rot90 0.07   540 0.0001296296
 
Parent functions:
filter2 540  
 
Child functions:
length 0.01 14.3% 540 0.0000185185
rem 0.00 0.0% 540 0.0000000000
nargin 0.00 0.0% 540 0.0000000000
size 0.00 0.0% 540 0.0000000000
ndims 0.00 0.0% 540 0.0000000000


85% of the total time in this function was spent on the following lines:

    18:  if ndims(A)~=2, error('A must be a 2-D matrix.'); end
0.01 14% 19:  [m,n] = size(A);
    20:  if nargin == 1
 
    22:  else
0.03 43% 23:  if length(k)~=1, error('k must be a scalar.'); end
    24:  k = rem(k,4);
 
    32:  elseif k == 2
0.02 29% 33:  B = A(m:-1:1,n:-1:1);

imftype/istif     /usr/local/matlab/toolbox/matlab/iofun/private/imftype.m
Time: 0.06 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
imftype/istif 0.06   180 0.0003333333
 
Parent functions:
imftype 180  
 
Child functions:
fclose 0.03 50.0% 180 0.0001666667
fread 0.03 50.0% 180 0.0001666667
isequal 0.00 0.0% 360 0.0000000000
fopen 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    262:  else
0.03 50% 263:  sig = fread(fid, 4, 'uint8');
0.03 50% 264:  fclose(fid);
    265:  tf = isequal(sig, [73; 73; 42; 0]) | isequal(sig, [77; 77; 0; 42]);

floor     Builtin-function
Time: 0.06 s    ( 0.0%)
Calls: 18010
Self time: 0.06 s    ( 0.0%)

Function: Time Calls Time/call
floor 0.06   18010 0.0000033315
 
Parent functions:
datestr 4  
edge 180  
mod 17104  
roipoly 360  
imfeature/ComputePixelList 180  
flipdim 180  
ml_simec 2  
 
Child functions:
none



triu     Builtin-function
Time: 0.06 s    ( 0.0%)
Calls: 180
Self time: 0.06 s    ( 0.0%)

Function: Time Calls Time/call
triu 0.06   180 0.0003333333
 
Parent functions:
convhull 180  
 
Child functions:
none



rand     Builtin-function
Time: 0.06 s    ( 0.0%)
Calls: 900
Self time: 0.06 s    ( 0.0%)

Function: Time Calls Time/call
rand 0.06   900 0.0000666667
 
Parent functions:
delaunay 900  
 
Child functions:
none



xychk     /usr/local/matlab/toolbox/matlab/polyfun/xychk.m
Time: 0.06 s    ( 0.0%)
Calls: 180
Self time: 0.03 s    ( 0.0%)

Function: Time Calls Time/call
xychk 0.06   180 0.0003333333
 
Parent functions:
convhull 180  
 
Child functions:
size 0.01 16.7% 720 0.0000138889
ndims 0.01 16.7% 360 0.0000277778
nargin 0.01 16.7% 540 0.0000185185
reshape 0.00 0.0% 180 0.0000000000
length 0.00 0.0% 360 0.0000000000
min 0.00 0.0% 540 0.0000000000
isstr 0.00 0.0% 180 0.0000000000
end 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    15: 
0.01 17% 16:  if nargin==0 | nargin>3, error('Wrong number of input arguments.'); end
    17: 
0.01 17% 18:  nin = nargin; msg = [];
    19: 
0.01 17% 20:  if nin > 1 & isstr(varargin{end}),
    21:  plot_flag = 1;
 
    51:  y = varargin{2};
0.01 17% 52:  if ndims(x)>2 | ndims(y)>2, msg = 'Inputs must be 2-D.'; return, end
    53:  if nin==3, xi = varargin{3}; end
 
    67:  % Make sure x has the same orientation as y.
0.02 33% 68:  x = reshape(x,size(y));
    69:  end

abs     Builtin-function
Time: 0.05 s    ( 0.0%)
Calls: 33921
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
abs 0.05   33921 0.0000014740
 
Parent functions:
datestr 2  
num2str 4  
betacore 26022  
betainv 1515  
ml_imgedgefeatures 360  
hist 360  
edge/cannyFindLocalMaxima 720  
ml_features 180  
intline 4398  
convhull 180  
delaunay 180  
 
Child functions:
none



finv     /usr/local/matlab/toolbox/stats/finv.m
Time: 0.05 s    ( 0.0%)
Calls: 1
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
finv 0.05   1 0.0500000000
 
Parent functions:
ml_hotel 1  
 
Child functions:
betainv 0.04 80.0% 1 0.0400000000
any 0.00 0.0% 3 0.0000000000
isnan 0.00 0.0% 1 0.0000000000
zeros 0.00 0.0% 2 0.0000000000
size 0.00 0.0% 2 0.0000000000
distchck 0.00 0.0% 1 0.0000000000
nargin 0.00 0.0% 1 0.0000000000


100% of the total time in this function was spent on the following lines:

    36:  if any(k1(:))
0.05 100% 37:  z = betainv(1 - p(k1),v2(k1)/2,v1(k1)/2);
    38:  x(k1) = (v2(k1) ./ z - v2(k1)) ./ v1(k1);

svd     Builtin-function
Time: 0.05 s    ( 0.0%)
Calls: 360
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
svd 0.05   360 0.0001388889
 
Parent functions:
filter2 360  
 
Child functions:
none



fclose     Builtin-function
Time: 0.05 s    ( 0.0%)
Calls: 722
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
fclose 0.05   722 0.0000692521
 
Parent functions:
ml_confid_writer 1  
ml_report_writer 1  
imftype/istif 180  
imread 180  
ml_tclread 360  
 
Child functions:
none



fseek     Builtin-function
Time: 0.05 s    ( 0.0%)
Calls: 720
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
fseek 0.05   720 0.0000694444
 
Parent functions:
ml_tclread 720  
 
Child functions:
none



reshape     Builtin-function
Time: 0.05 s    ( 0.0%)
Calls: 1808
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
reshape 0.05   1808 0.0000276549
 
Parent functions:
datestr 2  
delaunay 180  
xychk 180  
repmat 1440  
cell/sort 6  
 
Child functions:
none



isdir     /usr/local/matlab/toolbox/matlab/uitools/isdir.m
Time: 0.05 s    ( 0.0%)
Calls: 546
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
isdir 0.05   546 0.0000915751
 
Parent functions:
ml_file_check 546  
 
Child functions:
exist 0.05 100.0% 546 0.0000915751


100% of the total time in this function was spent on the following lines:

    10: 
0.05 100% 11:  result = exist(dirpath,'dir') == 7;

exist     Builtin-function
Time: 0.05 s    ( 0.0%)
Calls: 566
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
exist 0.05   566 0.0000883392
 
Parent functions:
ml_slash_check 6  
ml_dot_check 6  
isdir 546  
ml_file_check 6  
ml_simec 2  
 
Child functions:
none



display     Builtin-function
Time: 0.05 s    ( 0.0%)
Calls: 552
Self time: 0.05 s    ( 0.0%)

Function: Time Calls Time/call
display 0.05   552 0.0000905797
 
Parent functions:
ml_simec_demo 9  
delaunay 180  
ml_featset 180  
ml_calcfeat 180  
 
Child functions:
none



dmperm     /usr/local/matlab/toolbox/matlab/sparfun/dmperm.m
Time: 0.04 s    ( 0.0%)
Calls: 180
Self time: 0.03 s    ( 0.0%)

Function: Time Calls Time/call
dmperm 0.04   180 0.0002222222
 
Parent functions:
bwlabel 180  
 
Child functions:
sparsfun 0.01 25.0% 180 0.0000555556
nargout 0.00 0.0% 540 0.0000000000


74% of the total time in this function was spent on the following lines:

    23: 
0.01 25% 24:  if nargout <= 1,
    25:  p = sparsfun('dmperm',A);
 
    28:  elseif nargout == 3,
0.02 50% 29:  [p,q,r] = sparsfun('dmperm',A);

cell2struct     Builtin-function
Time: 0.04 s    ( 0.0%)
Calls: 540
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
cell2struct 0.04   540 0.0000740741
 
Parent functions:
imfeature 540  
 
Child functions:
none



cellhorzcat     Builtin-function
Time: 0.04 s    ( 0.0%)
Calls: 9143
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
cellhorzcat 0.04   9143 0.0000043749
 
Parent functions:
ml_report_writer 1  
ml_students_feats 130  
impad/ParseInputs 360  
edge/parse_inputs 540  
ml_imgedgefeatures 360  
ml_zernike 180  
ml_hullfeatures 360  
imfeature 4140  
ml_imgfeatures 360  
ml_features 540  
flipdim 540  
ml_imgbgsub 180  
ml_featset 180  
imftype 360  
imread/parse_inputs 180  
ml_calcfeat 186  
ml_dot_check 546  
 
Child functions:
none



nargout     Builtin-function
Time: 0.04 s    ( 0.0%)
Calls: 5938
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
nargout 0.04   5938 0.0000067363
 
Parent functions:
ttest2 130  
distchck 1119  
hist 360  
edge 180  
bwselect 180  
bwfill 180  
bwperim 180  
roipoly 180  
unique 360  
dmperm 540  
fcnchk 180  
bwmorph 1080  
im2bw 720  
imhist 540  
deal 6  
path 3  
 
Child functions:
none



rem     Builtin-function
Time: 0.04 s    ( 0.0%)
Calls: 905
Self time: 0.04 s    ( 0.0%)

Function: Time Calls Time/call
rem 0.04   905 0.0000441989
 
Parent functions:
num2str 4  
edge 180  
imfeature/ComputePixelList 180  
rot90 540  
ml_simec 1  
 
Child functions:
none



imread/parse_inputs     /usr/local/matlab/toolbox/matlab/iofun/imread.m
Time: 0.03 s    ( 0.0%)
Calls: 180
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
imread/parse_inputs 0.03   180 0.0001666667
 
Parent functions:
imread 180  
 
Child functions:
vertcat 0.01 33.3% 180 0.0000555556
nargin 0.00 0.0% 180 0.0000000000
cellhorzcat 0.00 0.0% 180 0.0000000000


66% of the total time in this function was spent on the following lines:

    279: 
0.01 33% 280:  formatStrings = ['bmp'
    281:  'xwd'
 
    290: 
0.01 33% 291:  switch (nargin)
    292:  case 0

fprintf     Builtin-function
Time: 0.03 s    ( 0.0%)
Calls: 617
Self time: 0.03 s    ( 0.0%)

Function: Time Calls Time/call
fprintf 0.03   617 0.0000486224
 
Parent functions:
ml_confid_writer 211  
ml_report_writer 41  
ml_calcfeat 360  
ml_simec 5  
 
Child functions:
none



roipoly/parse_inputs     /usr/local/matlab/toolbox/images/images/roipoly.m
Time: 0.03 s    ( 0.0%)
Calls: 180
Self time: 0.03 s    ( 0.0%)

Function: Time Calls Time/call
roipoly/parse_inputs 0.03   180 0.0001666667
 
Parent functions:
roipoly 180  
 
Child functions:
isa 0.00 0.0% 1080 0.0000000000
horzcat 0.00 0.0% 360 0.0000000000
size 0.00 0.0% 360 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


66% of the total time in this function was spent on the following lines:

    236:  % SYNTAX: roipoly(A,xi,yi)
0.01 33% 237:  a = varargin{1};
    238:  nrows = size(a,1);
    239:  ncols = size(a,2);
0.01 33% 240:  xi = varargin{2}(:);
    241:  yi = varargin{3}(:);

ml_report_writer     /home/ejr/ml/SImEC/matlab/ml_report_writer.m
Time: 0.02 s    ( 0.0%)
Calls: 1
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
ml_report_writer 0.02   1 0.0200000000
 
Parent functions:
ml_simec 1  
 
Child functions:
fclose 0.00 0.0% 1 0.0000000000
num2str 0.00 0.0% 1 0.0000000000
strcmp 0.00 0.0% 1 0.0000000000
horzcat 0.00 0.0% 2 0.0000000000
datestr 0.00 0.0% 1 0.0000000000
fprintf 0.00 0.0% 41 0.0000000000
fopen 0.00 0.0% 1 0.0000000000
cellhorzcat 0.00 0.0% 1 0.0000000000
length 0.00 0.0% 12 0.0000000000


100% of the total time in this function was spent on the following lines:

    40:  if (id ~= -1) 
0.02 100% 41:  st_time = datestr(id/10000); 
    42:  fprintf(fid, [' for SImEC session started on ' st_time ' GMT']); 

log     Builtin-function
Time: 0.02 s    ( 0.0%)
Calls: 1982
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
log 0.02   1982 0.0000100908
 
Parent functions:
log10 8  
betapdf 922  
betainc 1052  
 
Child functions:
none



gammaln     /usr/local/matlab/toolbox/matlab/specfun/gammaln.mexglx
Time: 0.02 s    ( 0.0%)
Calls: 2961
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
gammaln 0.02   2961 0.0000067545
 
Parent functions:
betaln 1383  
betainc 1578  
 
Child functions:
none



lutthin1     /usr/local/matlab/toolbox/images/images/private/lutthin1.m
Time: 0.02 s    ( 0.0%)
Calls: 180
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
lutthin1 0.02   180 0.0001111111
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none


50% of the total time in this function was spent on the following lines:

    6: 
0.01 50% 7:  lut = [ ...
    8:  0     0     0     0     0     0     0     0     0     0     0     0 ...

class     Builtin-function
Time: 0.02 s    ( 0.0%)
Calls: 720
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
class 0.02   720 0.0000277778
 
Parent functions:
impad/constant 180  
imhist 540  
 
Child functions:
none



ml_dot_check     /home/ejr/ml/SImEC/matlab/ml_dot_check.m
Time: 0.02 s    ( 0.0%)
Calls: 6
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
ml_dot_check 0.02   6 0.0033333333
 
Parent functions:
ml_file_check 6  
 
Child functions:
cellhorzcat 0.01 50.0% 546 0.0000183150
strncmp 0.00 0.0% 552 0.0000000000
length 0.00 0.0% 546 0.0000000000
isempty 0.00 0.0% 6 0.0000000000
exist 0.00 0.0% 6 0.0000000000


100% of the total time in this function was spent on the following lines:

    37:  if (~strncmp(old_filenames{i}, '.', 1)) 
0.02 100% 38:  new_filenames(length(new_filenames)+1) = {old_filenames{i}};  
    39:  end

end     Builtin-function
Time: 0.02 s    ( 0.0%)
Calls: 7652
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
end 0.02   7652 0.0000026137
 
Parent functions:
num2str/lefttrim 4  
ml_hotel 260  
hist 1440  
bwselect 180  
bwarea 1440  
roipoly 540  
convhull 1080  
unique 720  
xychk 180  
ml_imgfeatures 180  
bweuler 360  
imfeature/ParseInputs 540  
fcnchk 180  
roifilt2 180  
imftype 360  
path 7  
addpath 1  
 
Child functions:
none



error     Builtin-function
Time: 0.02 s    ( 0.0%)
Calls: 2521
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
error 0.02   2521 0.0000079334
 
Parent functions:
edge/parse_inputs 180  
bwperim 180  
convhull 180  
cell/strmatch 540  
filter2 540  
bwmorph 540  
readtif 180  
imftype 180  
addpath 1  
 
Child functions:
none



cell/sort     /usr/local/matlab/toolbox/matlab/datafun/@cell/sort.m
Time: 0.02 s    ( 0.0%)
Calls: 6
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
cell/sort 0.02   6 0.0033333333
 
Parent functions:
ml_file_check 6  
 
Child functions:
sortrows 0.01 50.0% 6 0.0016666667
reshape 0.00 0.0% 6 0.0000000000
char 0.00 0.0% 6 0.0000000000
size 0.00 0.0% 12 0.0000000000
ndims 0.00 0.0% 6 0.0000000000
nargin 0.00 0.0% 6 0.0000000000


100% of the total time in this function was spent on the following lines:

    15: 
0.01 50% 16:  isrow = ndims(x)==2 & size(x,1)==1;
0.01 50% 17:  [y,i] = sortrows(char(x));
    18:  y = reshape(x(i),size(i));

lower     Builtin-function
Time: 0.02 s    ( 0.0%)
Calls: 1620
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
lower 0.02   1620 0.0000123457
 
Parent functions:
edge/parse_inputs 180  
imfeature/ParseInputs 720  
bwmorph 540  
imftype 180  
 
Child functions:
none



diff     Builtin-function
Time: 0.02 s    ( 0.0%)
Calls: 2379
Self time: 0.02 s    ( 0.0%)

Function: Time Calls Time/call
diff 0.02   2379 0.0000084069
 
Parent functions:
roipoly 2199  
bwlabel 180  
 
Child functions:
none



ml_confid_writer     /home/ejr/ml/SImEC/matlab/ml_confid_writer.m
Time: 0.01 s    ( 0.0%)
Calls: 1
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
ml_confid_writer 0.01   1 0.0100000000
 
Parent functions:
ml_simec 1  
 
Child functions:
fclose 0.00 0.0% 1 0.0000000000
findstr 0.00 0.0% 48 0.0000000000
strncmp 0.00 0.0% 65 0.0000000000
strcat 0.00 0.0% 1 0.0000000000
datestr 0.00 0.0% 1 0.0000000000
fprintf 0.00 0.0% 211 0.0000000000
fopen 0.00 0.0% 1 0.0000000000
size 0.00 0.0% 1 0.0000000000
nargin 0.00 0.0% 1 0.0000000000


100% of the total time in this function was spent on the following lines:

\n');
    49:  end
0.01 100% 50:  fprintf(fid, '
    51:  end

num2str/lefttrim     /usr/local/matlab/toolbox/matlab/strfun/num2str.m
Time: 0.01 s    ( 0.0%)
Calls: 4
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
num2str/lefttrim 0.01   4 0.0025000000
 
Parent functions:
num2str 4  
 
Child functions:
end 0.00 0.0% 4 0.0000000000
min 0.00 0.0% 4 0.0000000000
find 0.00 0.0% 4 0.0000000000
isempty 0.00 0.0% 8 0.0000000000


100% of the total time in this function was spent on the following lines:

    93:  if ~isempty(s)
0.01 100% 94:  [r,c] = find(s ~= ' ');
    95:  if ~isempty(c)

num2str     /usr/local/matlab/toolbox/matlab/strfun/num2str.m
Time: 0.01 s    ( 0.0%)
Calls: 4
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
num2str 0.01   4 0.0025000000
 
Parent functions:
ml_report_writer 1  
ml_simec 3  
 
Child functions:
num2str/lefttrim 0.01 100.0% 4 0.0025000000
deblank 0.00 0.0% 4 0.0000000000
length 0.00 0.0% 4 0.0000000000
strvcat 0.00 0.0% 4 0.0000000000
imag 0.00 0.0% 8 0.0000000000
real 0.00 0.0% 4 0.0000000000
size 0.00 0.0% 4 0.0000000000
horzcat 0.00 0.0% 12 0.0000000000
sprintf 0.00 0.0% 12 0.0000000000
min 0.00 0.0% 4 0.0000000000
max 0.00 0.0% 8 0.0000000000
ceil 0.00 0.0% 4 0.0000000000
log10 0.00 0.0% 4 0.0000000000
abs 0.00 0.0% 4 0.0000000000
any 0.00 0.0% 4 0.0000000000
rem 0.00 0.0% 4 0.0000000000
find 0.00 0.0% 4 0.0000000000
isreal 0.00 0.0% 8 0.0000000000
all 0.00 0.0% 8 0.0000000000
fix 0.00 0.0% 4 0.0000000000
isempty 0.00 0.0% 4 0.0000000000
nargin 0.00 0.0% 4 0.0000000000
isstr 0.00 0.0% 4 0.0000000000


100% of the total time in this function was spent on the following lines:

    74: 
0.01 100% 75:  s = lefttrim(s);
    76: 

betaln     /usr/local/matlab/toolbox/matlab/specfun/betaln.m
Time: 0.01 s    ( 0.0%)
Calls: 461
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
betaln 0.01   461 0.0000216920
 
Parent functions:
betapdf 461  
 
Child functions:
gammaln 0.01 100.0% 1383 0.0000072307


100% of the total time in this function was spent on the following lines:

    19: 
0.01 100% 20:  y = gammaln(z)+gammaln(w)-gammaln(z+w);

std     /usr/local/matlab/toolbox/matlab/datafun/std.m
Time: 0.01 s    ( 0.0%)
Calls: 1
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
std 0.01   1 0.0100000000
 
Parent functions:
ml_hotel 1  
 
Child functions:
sqrt 0.00 0.0% 1 0.0000000000
conj 0.00 0.0% 1 0.0000000000
repmat 0.00 0.0% 1 0.0000000000
sum 0.00 0.0% 2 0.0000000000
ones 0.00 0.0% 1 0.0000000000
max 0.00 0.0% 1 0.0000000000
ndims 0.00 0.0% 1 0.0000000000
min 0.00 0.0% 1 0.0000000000
find 0.00 0.0% 1 0.0000000000
size 0.00 0.0% 5 0.0000000000
isempty 0.00 0.0% 2 0.0000000000
nargin 0.00 0.0% 2 0.0000000000


100% of the total time in this function was spent on the following lines:

    29: 
0.01 100% 30:  if nargin<2, flag = 0; end
    31:  if nargin<3,

conv     /usr/local/matlab/toolbox/matlab/datafun/conv.m
Time: 0.01 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
conv 0.01   180 0.0000555556
 
Parent functions:
edge 180  
 
Child functions:
prod 0.01 100.0% 360 0.0000277778
filter 0.00 0.0% 180 0.0000000000
size 0.00 0.0% 360 0.0000000000
length 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    16: 
0.01 100% 17:  if na ~= prod(size(a)) | nb ~= prod(size(b))
    18:  error('A and B must be vectors.');

isrgb     /usr/local/matlab/toolbox/images/images/isrgb.m
Time: 0.01 s    ( 0.0%)
Calls: 180
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
isrgb 0.01   180 0.0000555556
 
Parent functions:
edge/parse_inputs 180  
 
Child functions:
double 0.00 0.0% 180 0.0000000000
logical 0.00 0.0% 180 0.0000000000
size 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    24: 
0.01 100% 25:  y = size(x,3)==3;
    26:  if y

pow2     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 360
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
pow2 0.01   360 0.0000277778
 
Parent functions:
delaunay 360  
 
Child functions:
none



log2     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 360
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
log2 0.01   360 0.0000277778
 
Parent functions:
delaunay 360  
 
Child functions:
none



sparsfun     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 180
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
sparsfun 0.01   180 0.0000555556
 
Parent functions:
dmperm 180  
 
Child functions:
none



cellfun     /usr/local/matlab/toolbox/matlab/datatypes/cellfun.mexglx
Time: 0.01 s    ( 0.0%)
Calls: 540
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
cellfun 0.01   540 0.0000185185
 
Parent functions:
iscellstr 540  
 
Child functions:
none



iscell     /usr/local/matlab/toolbox/matlab/datatypes/iscell.m
Time: 0.01 s    ( 0.0%)
Calls: 542
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
iscell 0.01   542 0.0000184502
 
Parent functions:
datestr 2  
imfeature/ParseInputs 540  
 
Child functions:
isa 0.00 0.0% 542 0.0000000000



isnumeric     /usr/local/matlab/toolbox/matlab/elmat/isnumeric.m
Time: 0.01 s    ( 0.0%)
Calls: 360
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
isnumeric 0.01   360 0.0000277778
 
Parent functions:
impad/ParseInputs 180  
imfeature/ParseInputs 180  
 
Child functions:
isa 0.00 0.0% 360 0.0000000000


100% of the total time in this function was spent on the following lines:

    12: 
0.01 100% 13:  tf = isa(a,'numeric');

fcnchk     /usr/local/matlab/toolbox/matlab/funfun/fcnchk.m
Time: 0.01 s    ( 0.0%)
Calls: 180
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
fcnchk 0.01   180 0.0000555556
 
Parent functions:
roifilt2 180  
 
Child functions:
nargout 0.00 0.0% 180 0.0000000000
horzcat 0.00 0.0% 180 0.0000000000
sprintf 0.00 0.0% 180 0.0000000000
isobject 0.00 0.0% 180 0.0000000000
isa 0.00 0.0% 180 0.0000000000
isstr 0.00 0.0% 180 0.0000000000
strcmp 0.00 0.0% 180 0.0000000000
end 0.00 0.0% 180 0.0000000000
nargin 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    53:  end
0.01 100% 54:  elseif isa(fun,'function_handle') 
    55:  f = fun; 

setstr     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 1080
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
setstr 0.01   1080 0.0000092593
 
Parent functions:
strmatch 1080  
 
Child functions:
none



dir     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 6
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
dir 0.01   6 0.0016666667
 
Parent functions:
ml_file_check 6  
 
Child functions:
none



cd     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 24
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
cd 0.01   24 0.0004166667
 
Parent functions:
ml_file_check 12  
pwd 12  
 
Child functions:
none



path     /usr/local/matlab/toolbox/matlab/general/path.m
Time: 0.01 s    ( 0.0%)
Calls: 2
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
path 0.01   2 0.0050000000
 
Parent functions:
addpath 2  
 
Child functions:
length 0.01 100.0% 42 0.0002380952
filesep 0.00 0.0% 2 0.0000000000
find 0.00 0.0% 2 0.0000000000
horzcat 0.00 0.0% 4 0.0000000000
pathsep 0.00 0.0% 5 0.0000000000
end 0.00 0.0% 7 0.0000000000
strcmp 0.00 0.0% 42 0.0000000000
isempty 0.00 0.0% 6 0.0000000000
strncmp 0.00 0.0% 1 0.0000000000
computer 0.00 0.0% 1 0.0000000000
isstr 0.00 0.0% 2 0.0000000000
matlabpath 0.00 0.0% 3 0.0000000000
nargout 0.00 0.0% 3 0.0000000000
nargin 0.00 0.0% 4 0.0000000000
isunix 0.00 0.0% 2 0.0000000000


100% of the total time in this function was spent on the following lines:

    94:  % Find and remove matching directories
0.01 100% 95:  for j=length(bk)-1:-1:1
    96:  bb = b(bk(j)+1:bke(j)-1);

addpath     /usr/local/matlab/toolbox/matlab/general/addpath.m
Time: 0.01 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
addpath 0.01   1 0.0100000000
 
Parent functions:
ml_simec_demo 1  
 
Child functions:
path 0.01 100.0% 2 0.0050000000
max 0.00 0.0% 1 0.0000000000
min 0.00 0.0% 1 0.0000000000
find 0.00 0.0% 1 0.0000000000
isstr 0.00 0.0% 1 0.0000000000
isempty 0.00 0.0% 2 0.0000000000
deblank 0.00 0.0% 1 0.0000000000
horzcat 0.00 0.0% 2 0.0000000000
pathsep 0.00 0.0% 2 0.0000000000
matlabpath 0.00 0.0% 1 0.0000000000
isequal 0.00 0.0% 2 0.0000000000
strcmp 0.00 0.0% 3 0.0000000000
end 0.00 0.0% 1 0.0000000000
error 0.00 0.0% 1 0.0000000000
nargchk 0.00 0.0% 1 0.0000000000
nargin 0.00 0.0% 1 0.0000000000


100% of the total time in this function was spent on the following lines:

    87:  else
0.01 100% 88:  path( p, path );
    89:  end

save     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 1
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
save 0.01   1 0.0100000000
 
Parent functions:
ml_simec 1  
 
Child functions:
none



isbw     /usr/local/matlab/toolbox/images/images/isbw.m
Time: 0.01 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
isbw 0.01   180 0.0000555556
 
Parent functions:
ml_hullfeatures 180  
 
Child functions:
ndims 0.01 100.0% 180 0.0000555556
logical 0.00 0.0% 180 0.0000000000
double 0.00 0.0% 180 0.0000000000
islogical 0.00 0.0% 180 0.0000000000
isa 0.00 0.0% 360 0.0000000000
isempty 0.00 0.0% 180 0.0000000000


100% of the total time in this function was spent on the following lines:

    28: 
0.01 100% 29:  y = (ndims(x)==2) & (~isempty(x));
    30:  if isa(x, 'double') & y

subsref     Builtin-function
Time: 0.01 s    ( 0.0%)
Calls: 180
Self time: 0.01 s    ( 0.0%)

Function: Time Calls Time/call
subsref 0.01   180 0.0000555556
 
Parent functions:
imfeature 180  
 
Child functions:
none



callstats     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
callstats 0.00   1 0.0000000000
 
Parent functions:
profreport/ParseInputs 1  
 
Child functions:
none



profreport/ParseInputs     /usr/local/matlab/toolbox/matlab/general/profreport.m
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
profreport/ParseInputs 0.00   1 0.0000000000
 
Parent functions:
profreport 1  
 
Child functions:
callstats 0.00 0.0% 1 0.0000000000
ischar 0.00 0.0% 1 0.0000000000
isempty 0.00 0.0% 1 0.0000000000
nargchk 0.00 0.0% 1 0.0000000000
nargin 0.00 0.0% 3 0.0000000000



profreport     /usr/local/matlab/toolbox/matlab/general/profreport.m
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
profreport 0.00   1 0.0000000000
 
Parent functions:
none
 
Child functions:
profreport/ParseInputs 0.00 0.0% 1 0.0000000000



help     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
help 0.00   1 0.0000000000
 
Parent functions:
none
 
Child functions:
none



findstr     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 48
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
findstr 0.00   48 0.0000000000
 
Parent functions:
ml_confid_writer 48  
 
Child functions:
none



datevecmx     /usr/local/matlab/toolbox/matlab/timefun/datevecmx.mexglx
Time: 0.00 s    ( 0.0%)
Calls: 2
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
datevecmx 0.00   2 0.0000000000
 
Parent functions:
datestr 2  
 
Child functions:
none



datestr     /usr/local/matlab/toolbox/matlab/timefun/datestr.m
Time: 0.00 s    ( 0.0%)
Calls: 2
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
datestr 0.00   2 0.0000000000
 
Parent functions:
ml_confid_writer 1  
ml_report_writer 1  
 
Child functions:
reshape 0.00 0.0% 2 0.0000000000
length 0.00 0.0% 6 0.0000000000
sprintf 0.00 0.0% 2 0.0000000000
horzcat 0.00 0.0% 2 0.0000000000
round 0.00 0.0% 2 0.0000000000
abs 0.00 0.0% 2 0.0000000000
fix 0.00 0.0% 2 0.0000000000
mod 0.00 0.0% 4 0.0000000000
datevecmx 0.00 0.0% 2 0.0000000000
real 0.00 0.0% 2 0.0000000000
vertcat 0.00 0.0% 2 0.0000000000
isempty 0.00 0.0% 2 0.0000000000
all 0.00 0.0% 4 0.0000000000
floor 0.00 0.0% 4 0.0000000000
nargin 0.00 0.0% 2 0.0000000000
iscell 0.00 0.0% 2 0.0000000000
isstr 0.00 0.0% 4 0.0000000000



strcat     /usr/local/matlab/toolbox/matlab/strfun/strcat.m
Time: 0.00 s    ( 0.0%)
Calls: 4
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
strcat 0.00   4 0.0000000000
 
Parent functions:
ml_confid_writer 1  
ml_simec 3  
 
Child functions:
strvcat 0.00 0.0% 4 0.0000000000
horzcat 0.00 0.0% 7 0.0000000000
deblank 0.00 0.0% 11 0.0000000000
any 0.00 0.0% 4 0.0000000000
max 0.00 0.0% 11 0.0000000000
length 0.00 0.0% 8 0.0000000000
all 0.00 0.0% 4 0.0000000000
ndims 0.00 0.0% 11 0.0000000000
size 0.00 0.0% 11 0.0000000000
nargin 0.00 0.0% 8 0.0000000000



strvcat     /usr/local/matlab/toolbox/matlab/strfun/strvcat.m
Time: 0.00 s    ( 0.0%)
Calls: 8
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
strvcat 0.00   8 0.0000000000
 
Parent functions:
strcat 4  
num2str 4  
 
Child functions:
char 0.00 0.0% 8 0.0000000000
isempty 0.00 0.0% 16 0.0000000000
nargin 0.00 0.0% 8 0.0000000000



ceil     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 4
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
ceil 0.00   4 0.0000000000
 
Parent functions:
num2str 4  
 
Child functions:
none



log10     /usr/local/matlab/toolbox/matlab/elfun/log10.m
Time: 0.00 s    ( 0.0%)
Calls: 4
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
log10 0.00   4 0.0000000000
 
Parent functions:
num2str 4  
 
Child functions:
log 0.00 0.0% 8 0.0000000000
nargin 0.00 0.0% 4 0.0000000000



isnan     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 716
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
isnan 0.00   716 0.0000000000
 
Parent functions:
tinv 390  
tcdf 130  
ttest2 195  
finv 1  
 
Child functions:
none



cov     /usr/local/matlab/toolbox/matlab/datafun/cov.m
Time: 0.00 s    ( 0.0%)
Calls: 2
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
cov 0.00   2 0.0000000000
 
Parent functions:
ml_hotel 2  
 
Child functions:
repmat 0.00 0.0% 2 0.0000000000
sum 0.00 0.0% 2 0.0000000000
prod 0.00 0.0% 2 0.0000000000
size 0.00 0.0% 4 0.0000000000
length 0.00 0.0% 2 0.0000000000
ndims 0.00 0.0% 2 0.0000000000
nargin 0.00 0.0% 6 0.0000000000



lastwarn     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 2
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
lastwarn 0.00   2 0.0000000000
 
Parent functions:
ml_hotel 2  
 
Child functions:
none



full     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 720
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
full 0.00   720 0.0000000000
 
Parent functions:
hist 720  
 
Child functions:
none



diag     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 360
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
diag 0.00   360 0.0000000000
 
Parent functions:
filter2 360  
 
Child functions:
none



lutthin4     /usr/local/matlab/toolbox/images/images/private/lutthin4.m
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
lutthin4 0.00   180 0.0000000000
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none



lutthin3     /usr/local/matlab/toolbox/images/images/private/lutthin3.m
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
lutthin3 0.00   180 0.0000000000
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none



lutthin2     /usr/local/matlab/toolbox/images/images/private/lutthin2.m
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
lutthin2 0.00   180 0.0000000000
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none



filter     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
filter 0.00   180 0.0000000000
 
Parent functions:
conv 180  
 
Child functions:
none



lutper4     /usr/local/matlab/toolbox/images/images/private/lutper4.m
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
lutper4 0.00   180 0.0000000000
 
Parent functions:
bwmorph/perim4 180  
 
Child functions:
none



real     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 906
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
real 0.00   906 0.0000000000
 
Parent functions:
datestr 2  
num2str 4  
hist 720  
angle 180  
 
Child functions:
none



imag     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 188
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
imag 0.00   188 0.0000000000
 
Parent functions:
num2str 8  
angle 180  
 
Child functions:
none



angle     /usr/local/matlab/toolbox/matlab/elfun/angle.m
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
angle 0.00   180 0.0000000000
 
Parent functions:
convhull 180  
 
Child functions:
atan2 0.00 0.0% 180 0.0000000000
real 0.00 0.0% 180 0.0000000000
imag 0.00 0.0% 180 0.0000000000



eye     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 3010
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
eye 0.00   3010 0.0000000000
 
Parent functions:
ml_imgfeatures 3010  
 
Child functions:
none



subsasgn     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
subsasgn 0.00   180 0.0000000000
 
Parent functions:
imfeature 180  
 
Child functions:
none



ischar     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 1801
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
ischar 0.00   1801 0.0000000000
 
Parent functions:
profreport/ParseInputs 1  
impad/ParseInputs 180  
edge/parse_inputs 360  
cell/strmatch 1080  
isobject 180  
 
Child functions:
none



isobject     /usr/local/matlab/toolbox/matlab/datatypes/isobject.m
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
isobject 0.00   180 0.0000000000
 
Parent functions:
fcnchk 180  
 
Child functions:
ischar 0.00 0.0% 180 0.0000000000
isa 0.00 0.0% 900 0.0000000000



lutmajority     /usr/local/matlab/toolbox/images/images/private/lutmajority.m
Time: 0.00 s    ( 0.0%)
Calls: 180
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
lutmajority 0.00   180 0.0000000000
 
Parent functions:
bwmorph/majority 180  
 
Child functions:
none



islogical     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 1800
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
islogical 0.00   1800 0.0000000000
 
Parent functions:
impad 180  
isbw 180  
roifilt2 180  
bwmorph 540  
im2bw 720  
 
Child functions:
none



cat     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 546
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
cat 0.00   546 0.0000000000
 
Parent functions:
ml_calcfeat 540  
ml_slash_check 6  
 
Child functions:
none



ml_slash_check     /home/ejr/ml/SImEC/matlab/ml_slash_check.m
Time: 0.00 s    ( 0.0%)
Calls: 6
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
ml_slash_check 0.00   6 0.0000000000
 
Parent functions:
ml_file_check 6  
 
Child functions:
cat 0.00 0.0% 6 0.0000000000
strcmp 0.00 0.0% 6 0.0000000000
size 0.00 0.0% 6 0.0000000000
filesep 0.00 0.0% 6 0.0000000000
exist 0.00 0.0% 6 0.0000000000



char     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 554
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
char 0.00   554 0.0000000000
 
Parent functions:
strvcat 8  
cell/strmatch 540  
cell/sort 6  
 
Child functions:
none



deal     /usr/local/matlab/toolbox/matlab/datatypes/deal.m
Time: 0.00 s    ( 0.0%)
Calls: 6
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
deal 0.00   6 0.0000000000
 
Parent functions:
ml_file_check 6  
 
Child functions:
nargin 0.00 0.0% 12 0.0000000000
nargout 0.00 0.0% 6 0.0000000000



pwd     /usr/local/matlab/toolbox/matlab/general/pwd.m
Time: 0.00 s    ( 0.0%)
Calls: 12
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
pwd 0.00   12 0.0000000000
 
Parent functions:
ml_file_check 12  
 
Child functions:
cd 0.00 0.0% 12 0.0000000000



datenummx     /usr/local/matlab/toolbox/matlab/timefun/datenummx.mexglx
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
datenummx 0.00   1 0.0000000000
 
Parent functions:
datenum 1  
 
Child functions:
none



datenum     /usr/local/matlab/toolbox/matlab/timefun/datenum.m
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
datenum 0.00   1 0.0000000000
 
Parent functions:
now 1  
 
Child functions:
datenummx 0.00 0.0% 1 0.0000000000
nargin 0.00 0.0% 1 0.0000000000



clock     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
clock 0.00   1 0.0000000000
 
Parent functions:
now 1  
 
Child functions:
none



now     /usr/local/matlab/toolbox/matlab/timefun/now.m
Time: 0.00 s    ( 0.0%)
Calls: 1
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
now 0.00   1 0.0000000000
 
Parent functions:
ml_simec 1  
 
Child functions:
datenum 0.00 0.0% 1 0.0000000000
clock 0.00 0.0% 1 0.0000000000



filesep     /usr/local/matlab/toolbox/matlab/iofun/filesep.m
Time: 0.00 s    ( 0.0%)
Calls: 8
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
filesep 0.00   8 0.0000000000
 
Parent functions:
ml_slash_check 6  
path 2  
 
Child functions:
isempty 0.00 0.0% 8 0.0000000000
persistent 0.00 0.0% 8 0.0000000000



strncmp     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 618
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
strncmp 0.00   618 0.0000000000
 
Parent functions:
ml_confid_writer 65  
ml_dot_check 552  
path 1  
 
Child functions:
none



persistent     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 17
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
persistent 0.00   17 0.0000000000
 
Parent functions:
filesep 8  
isunix 9  
 
Child functions:
none



isunix     /usr/local/matlab/toolbox/matlab/general/isunix.m
Time: 0.00 s    ( 0.0%)
Calls: 9
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
isunix 0.00   9 0.0000000000
 
Parent functions:
path 2  
pathsep 7  
 
Child functions:
isempty 0.00 0.0% 9 0.0000000000
persistent 0.00 0.0% 9 0.0000000000



computer     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 8
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
computer 0.00   8 0.0000000000
 
Parent functions:
path 1  
pathsep 7  
 
Child functions:
none



pathsep     /usr/local/matlab/toolbox/matlab/iofun/pathsep.m
Time: 0.00 s    ( 0.0%)
Calls: 7
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
pathsep 0.00   7 0.0000000000
 
Parent functions:
path 5  
addpath 2  
 
Child functions:
isunix 0.00 0.0% 7 0.0000000000
computer 0.00 0.0% 7 0.0000000000



matlabpath     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 4
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
matlabpath 0.00   4 0.0000000000
 
Parent functions:
path 3  
addpath 1  
 
Child functions:
none



strcmp     Builtin-function
Time: 0.00 s    ( 0.0%)
Calls: 1672
Self time: 0.00 s    ( 0.0%)

Function: Time Calls Time/call
strcmp 0.00   1672 0.0000000000
 
Parent functions:
ml_report_writer 1  
edge 180  
edge/parse_inputs 180  
unique 180  
imfeature/ParseInputs 360  
fcnchk 180  
ml_imgbgsub 360  
ml_featset 180  
ml_slash_check 6  
path 42  
addpath 3  
 
Child functions:
none