MATLAB Profile Report: Function Details


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

Function: Time Calls Time/call
ml_simec_demo 444.420   1 444.42000000
 
Parent functions:
none
 
Child functions:
ml_simec 444.330 100.0% 1 444.33000000
addpath 0.020 0.0% 2 0.01000000


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

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

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

Function: Time Calls Time/call
ml_simec 444.330   1 444.33000000
 
Parent functions:
ml_simec_demo 1  
 
Child functions:
ml_calcfeat 442.160 99.5% 2 221.08000000
ml_compfeat 2.060 0.5% 1 2.06000000
ml_report_writer 0.020 0.0% 1 0.02000000
ml_confid_writer 0.020 0.0% 1 0.02000000
strcat 0.000 0.0% 3 0.00000000
num2str 0.000 0.0% 3 0.00000000
now 0.000 0.0% 1 0.00000000


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

    52:  timeRes = 10000;
0.010 0% 53:  start_now = now;
    54:  the_date = floor(start_now);
 
    80:  fprintf('%s\n', 'Calculating features for image set 1');
222.790 50% 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');
219.380 49% 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.070 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.030 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.030 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.020 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: 442.160 s    (99.5%)
Calls: 2
Self time: 3.400 s    (99.5%)

Function: Time Calls Time/call
ml_calcfeat 442.160   2 221.08000000
 
Parent functions:
ml_simec 2  
 
Child functions:
ml_featset 408.800 92.5% 180 2.27111111
ml_readimage 29.840 6.7% 540 0.05525926
ml_file_check 0.120 0.0% 6 0.02000000


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

    39: 
0.040 0% 40:  [im_files, num_im_files, im_dir] = ml_file_check(im_dir);
    41: 
    42:  if (~isempty(dna_dir))
0.040 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.040 0% 58:  [crop_files, num_crop_files, crop_dir] = ml_file_check(crop_dir);
    59:  if (num_crop_files ~= num_im_files)
 
    111:  image = cat(2, im_dir, im_files{i});
14.730 3% 112:  image = double(ml_readimage(image));
0.070 0% 113:  dna = cat(2, dna_dir, dna_files{i});
14.350 3% 114:  dna = double(ml_readimage(dna));
0.050 0% 115:  crop = cat(2, crop_dir, crop_files{i});
1.690 0% 116:  crop = double(ml_readimage(crop));
    117: 
    118:  %%%%%%%%%%%%% Single image processing %%%%%%%%%%%%%%%%%%
2.180 0% 119:  if (max(max(image))) 
408.880 92% 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: 408.800 s    (92.0%)
Calls: 180
Self time: 0.220 s    (92.0%)

Function: Time Calls Time/call
ml_featset 408.800   180 2.27111111
 
Parent functions:
ml_calcfeat 180  
 
Child functions:
ml_features 358.780 87.8% 180 1.99322222
ml_preprocess 49.800 12.2% 180 0.27666667


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

    49:  % Check arguments & use defaults where necessary
0.010 0% 50:  MaxArgs = 7;
    51:  RequiredArgs = 4;
 
    66:  % Determine if user requested Michael Boland way of preprocessing
0.020 0% 67:  if( strcmp(featsetname(1:3),'mb_'))
    68:  way = 'mb';
 
    74:  % Sort out which features need calculating
0.120 0% 75:  load /home/shared/matlab/feat_subset_idx
    76:  switch featsetname
 
    105:  case 'nodna_nohar'
0.010 0% 106:  subsetlist = {'img' 'hul' 'zer' 'edg'};
    107:  use_dna = 0;
 
    168:  % Preprocess the image
49.830 12% 169:  [procimage, prot_maskimage,nonobjimg] = ml_preprocess( image, cropimage, ...
    170:  way, bgsub);
 
    193:  % Calculate features
358.800 88% 194:  [n,f,s] = ml_features( procimage, procdnaimage, prot_maskimage, ...
    195:  subsetlist, scale, radius, nonobjimg);
 
    199:  names = n(subset_index);
0.010 0% 200:  slfnames = s(subset_index);

ml_features     /home/ejr/ml/SImEC/matlab/ml_features.m
Time: 358.780 s    (80.7%)
Calls: 180
Self time: 2.500 s    (80.7%)

Function: Time Calls Time/call
ml_features 358.780   180 1.99322222
 
Parent functions:
ml_featset 180  
 
Child functions:
ml_imgedgefeatures 196.550 54.8% 180 1.09194444
ml_hullfeatures 79.300 22.1% 180 0.44055556
ml_zernike 41.910 11.7% 180 0.23283333
ml_imgfeatures 27.630 7.7% 180 0.15350000
ml_imgconvhull 10.890 3.0% 180 0.06050000


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

    111: 
2.130 1% 112:  if (max(max(procimage))==0)
    113:  error('Image has no non-zero pixels in it');
 
    135: 
0.010 0% 136:  imageslf = {'SLF1.1' 'SLF1.2' 'SLF1.3' 'SLF1.4' 'SLF1.5' 'SLF1.6' ...
    137:  'SLF1.7' 'SLF1.8' 'SLF2.17' 'SLF2.18' 'SLF2.19' 'SLF2.20' 'SLF2.21' 'SLF2.22'};
 
    142:  for i = 1 : length( featsets)
0.050 0% 143:  switch featsets{i}
    144:  case 'har' % Texture (haralick) features
 
    174:  %    the number of pixels to call a unit circle...
41.920 12% 175:  [znames, zvalues] = ml_zernike(procimage, 12, radius);
    176: 
 
    178:  feat_names = [feat_names znames];
0.020 0% 179:  feat_vals = [feat_vals abs(zvalues)];
    180: 
 
    214:  %save('ml_test6','procimage','dnaimage');
27.700 8% 215:  [imagenames, imagevalues] = ml_imgfeatures(procimage, dnaimage);
    216:  % Do the rescaling of features that are affected by image
 
    238:  % Find the convex hull
10.910 3% 239:  imagehull = ml_imgconvhull(imagemask);
    240:  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
    250:  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79.310 22% 251:  [hullnames, hullvalues] = ml_hullfeatures(procimage, imagehull);
    252:  feat_slf = [feat_slf hullslf];
 
    260:  case 'edg'
196.670 55% 261:  [edgenames, edgevalues] = ml_imgedgefeatures(procimage);
0.010 0% 262:  feat_slf = [feat_slf edgeslf];
    263:  feat_names = [feat_names edgenames];

ml_imgedgefeatures     /home/ejr/ml/SImEC/matlab/ml_imgedgefeatures.m
Time: 196.550 s    (44.2%)
Calls: 180
Self time: 11.060 s    (44.2%)

Function: Time Calls Time/call
ml_imgedgefeatures 196.550   180 1.09194444
 
Parent functions:
ml_features 180  
 
Child functions:
edge 112.580 57.3% 180 0.62544444
filter2 62.680 31.9% 360 0.17411111
bwarea 7.010 3.6% 360 0.01947222
im2bw 2.590 1.3% 180 0.01438889
cellstr 0.380 0.2% 1800 0.00021111
hist 0.250 0.1% 360 0.00069444


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

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

edge     /usr/local/matlab/toolbox/images/images/edge.m
Time: 112.580 s    (25.3%)
Calls: 180
Self time: 26.780 s    (25.3%)

Function: Time Calls Time/call
edge 112.580   180 0.62544444
 
Parent functions:
ml_imgedgefeatures 180  
 
Child functions:
edge/cannyFindLocalMaxima 50.610 45.0% 720 0.07029167
bwmorph 28.340 25.2% 180 0.15744444
bwselect 4.120 3.7% 180 0.02288889
imhist 2.270 2.0% 180 0.01261111
edge/parse_inputs 0.200 0.2% 180 0.00111111
repmat 0.200 0.2% 180 0.00111111
conv 0.060 0.1% 180 0.00033333


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

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

ml_hullfeatures     /home/ejr/ml/SImEC/matlab/ml_hullfeatures.m
Time: 79.300 s    (17.8%)
Calls: 180
Self time: 1.310 s    (17.8%)

Function: Time Calls Time/call
ml_hullfeatures 79.300   180 0.44055556
 
Parent functions:
ml_features 180  
 
Child functions:
ml_imgcentmoments 65.960 83.2% 720 0.09161111
bwarea 6.930 8.7% 360 0.01925000
bwperim 4.840 6.1% 180 0.02688889
cellstr 0.240 0.3% 1080 0.00022222
isbw 0.020 0.0% 180 0.00011111


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

    27:  %
3.500 4% 28:  Ahull = bwarea(imagehull) ;
0.900 1% 29:  hullfract = length(find(imageproc))/Ahull ;
    30:  names = [names cellstr('convex_hull:fraction_of_overlap')] ;
 
    37:  %
8.330 11% 38:  Phull = bwarea(bwperim(imagehull)) ;
    39:  hullshape = (Phull^2)/(4*pi*Ahull) ;
0.060 0% 40:  names = [names cellstr('convex_hull:shape_factor')] ;
0.060 0% 41:  slfnames = [slfnames cellstr('SLF1.15')] ;
    42:  values = [values hullshape] ;
 
    46:  %
16.860 21% 47:  hull_mu00 = ml_imgcentmoments(imagehull,0,0) ;
16.210 20% 48:  hull_mu11 = ml_imgcentmoments(imagehull,1,1) ;
16.580 21% 49:  hull_mu02 = ml_imgcentmoments(imagehull,0,2) ;
16.610 21% 50:  hull_mu20 = ml_imgcentmoments(imagehull,2,0) ;
    51: 
 
    71:  names = [names cellstr('convex_hull:eccentricity')] ;
0.050 0% 72:  slfnames = [slfnames cellstr('SLF1.16')] ;
    73: 

ml_imgcentmoments     /home/ejr/ml/SImEC/matlab/ml_imgcentmoments.m
Time: 65.960 s    (14.8%)
Calls: 720
Self time: 27.850 s    (14.8%)

Function: Time Calls Time/call
ml_imgcentmoments 65.960   720 0.09161111
 
Parent functions:
ml_hullfeatures 720  
 
Child functions:
ml_imgmoments 38.110 57.8% 2160 0.01764352


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

    24:  if (~isa(image,'double'))
3.570 5% 25:  image = double(image) ;
    26:  end
    27: 
13.790 21% 28:  m00 = ml_imgmoments(image, 0, 0) ;
12.440 19% 29:  m10 = ml_imgmoments(image, 1, 0) ;
12.310 19% 30:  m01 = ml_imgmoments(image, 0, 1) ;
    31: 
 
    41:  if x==0
2.420 4% 42:  xcoords = ones(size(image)) ;
    43:  else
1.920 3% 44:  xcoords = (ones(size(image,1),1) * (([1:size(image,2)] - cofx) .^ x)) ;
    45:  end
 
    53:  if y==0
2.740 4% 54:  ycoords = ones(size(image)) ;
    55:  else
1.870 3% 56:  ycoords = ((([1:size(image,1)]' - cofy) .^ y) * ones(1,size(image,2)));
    57:  end
 
    61:  %
6.190 9% 62:  xycoords = xcoords .* ycoords ;
    63: 
 
    66:  %
8.630 13% 67:  centralmoment = sum(sum(xycoords .* image)) ;

filter2     /usr/local/matlab/toolbox/matlab/datafun/filter2.m
Time: 65.890 s    (14.8%)
Calls: 540
Self time: 65.850 s    (14.8%)

Function: Time Calls Time/call
filter2 65.890   540 0.12201852
 
Parent functions:
ml_imgedgefeatures 360  
roifilt2 180  
 
Child functions:
rot90 0.020 0.0% 540 0.00003704
nargchk 0.020 0.0% 540 0.00003704


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

    28: 
0.050 0% 29:  error(nargchk(2,3,nargin));
    30:  if nargin<3, shape = 'same'; end
 
    39: 
0.020 0% 40:  code = [shape,' ']; code = code(1);
0.030 0% 41:  if isempty(find(code=='svf')), error('Unknown shape parameter.'); end
    42: 
    43:  [mx,nx] = size(x);
0.020 0% 44:  stencil = rot90(b,2);
    45:  [ms,ns] = size(stencil);
 
    48:  if (ms == 1)
3.180 5% 49:  y = conv2(1,stencil,x,shape);
    50:  elseif (ns == 1)
 
    59:  % Check rank (separability) of stencil
0.060 0% 60:  [u,s,v] = svd(stencil);
    61:  s = diag(s);
0.020 0% 62:  tol = length(stencil) * max(s) * eps;
    63:  rank = sum(s > tol);
 
    66:  hcol = u(:,1) * sqrt(s(1));
0.020 0% 67:  hrow = conj(v(:,1)) * sqrt(s(1));
11.260 17% 68:  if (all(all((round(stencil) == stencil))) & all(all((round(x) == x))))
    69:  % Output should be integer
51.160 78% 70:  y = round(conv2(hcol, hrow, x, shape));
    71:  else

ml_imgmoments     /home/ejr/ml/SImEC/matlab/ml_imgmoments.m
Time: 60.860 s    (13.7%)
Calls: 3420
Self time: 60.860 s    (13.7%)

Function: Time Calls Time/call
ml_imgmoments 60.860   3420 0.01779532
 
Parent functions:
ml_zernike 720  
ml_imgcentmoments 2160  
ml_imgfeatures 540  
 
Child functions:
none


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

    15: 
0.090 0% 16:  if nargin ~= 3
    17:  error('Please supply all three arguments (IMAGE, X, Y)') ;
 
    23:  %
0.030 0% 24:  if (isempty(image))
    25:  error('IMAGE is empty.') 
0.040 0% 26:  elseif (~isa(image,'double'))
    27:  image = double(image) ;
 
    36:  if y==0
9.010 15% 37:  xcoords = ones(size(image)) ;
    38:  end
    39:  else 
5.800 10% 40:  xcoords = (ones(size(image,1),1) * ([1:size(image,2)] .^ x)) ;
    41:  end
 
    47:  %
0.040 0% 48:  if y~=0
    49:  %  ycoords = ones(size(image)) ;
5.670 9% 50:  ycoords = (([1:size(image,1)]' .^ y) * ones(1,size(image,2))) ;
    51:  end
 
    55:  %
0.030 0% 56:  if y==0
0.060 0% 57:  xycoords = xcoords ;
    58:  elseif x==0
 
    66:  %
40.040 66% 67:  moment = sum(sum(xycoords .* image)) ;

edge/cannyFindLocalMaxima     /usr/local/matlab/toolbox/images/images/edge.m
Time: 50.610 s    (11.4%)
Calls: 720
Self time: 50.250 s    (11.4%)

Function: Time Calls Time/call
edge/cannyFindLocalMaxima 50.610   720 0.07029167
 
Parent functions:
edge 720  
 
Child functions:
mod 0.360 0.7% 720 0.00050000


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

    434:  case 1
14.090 28% 435:  idx = find((iy<=0 & ix>-iy)  | (iy>=0 & ix<-iy));
    436:  case 2
13.060 26% 437:  idx = find((ix>0 & -iy>=ix)  | (ix<0 & -iy<=ix));
    438:  case 3
11.670 23% 439:  idx = find((ix<=0 & ix>iy) | (ix>=0 & ix
    440:  case 4
10.600 21% 441:  idx = find((iy<0 & ix<=iy) | (iy>0 & ix>=iy));
    442:  end
 
    444:  % Exclude the exterior pixels
0.060 0% 445:  if ~isempty(idx)
0.410 1% 446:  v = mod(idx,m);
0.100 0% 447:  extIdx = find(v==1 | v==0 | idx<=m | (idx>(n-1)*m));
    448:  idx(extIdx) = [];
 
    450: 
0.070 0% 451:  ixv = ix(idx);  
    452:  iyv = iy(idx);   
 
    466:  d = abs(ixv./iyv);
0.050 0% 467:  gradmag1 = mag(idx-1).*(1-d) + mag(idx-m-1).*d; 
    468:  gradmag2 = mag(idx+1).*(1-d) + mag(idx+m+1).*d; 
 
    473:  end
0.080 0% 474:  idxLocalMax = idx(gradmag>=gradmag1 & gradmag>=gradmag2); 

ml_preprocess     /home/ejr/ml/SImEC/matlab/ml_preprocess.m
Time: 49.800 s    (11.2%)
Calls: 180
Self time: 10.150 s    (11.2%)

Function: Time Calls Time/call
ml_preprocess 49.800   180 0.27666667
 
Parent functions:
ml_featset 180  
 
Child functions:
ml_threshcrop 24.450 49.1% 180 0.13583333
roifilt2 7.810 15.7% 180 0.04338889
ml_imgbgsub 7.390 14.8% 180 0.04105556


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

    33:  %%% subtract background
7.410 15% 34:  image = ml_imgbgsub( image, 'common');
0.020 0% 35:  end
    36: 
 
    42:  %%% Crop (or mask rather)
5.870 12% 43:  image( find( cropimage==0)) = 0;
    44:  % Make sure no cropping is done later
0.010 0% 45:  threshcropimage = [];
    46:  case 'mb'
 
    54:  %%% Theshold
2.130 4% 55:  if (max(max(image))>0)
24.500 49% 56:  imagemask = ml_threshcrop(image, threshcropimage);
0.140 0% 57:  if (max(max(imagemask))>0)
8.110 16% 58:  procimage = roifilt2(0, image, ~imagemask);
    59:  resimg = image;
1.610 3% 60:  resimg(find(imagemask))=0;
    61:  else

ml_zernike     /home/ejr/ml/SImEC/matlab/ml_zernike.m
Time: 41.910 s    ( 9.4%)
Calls: 180
Self time: 4.360 s    ( 9.4%)

Function: Time Calls Time/call
ml_zernike 41.910   180 0.23283333
 
Parent functions:
ml_features 180  
 
Child functions:
ml_Znl 20.490 48.9% 8820 0.00232313
ml_imgmoments 12.990 31.0% 720 0.01804167
mod 2.280 5.4% 16380 0.00013919
cellstr 1.790 4.3% 8820 0.00020295


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

    25:  %
0.760 2% 26:  [Y,X,P] = find(I) ;
    27: 
 
    31:  %
6.540 16% 32:  Xn = (X-ml_imgmoments(I,1,0)/ml_imgmoments(I,0,0))/R ;
6.570 16% 33:  Yn = (Y-ml_imgmoments(I,0,1)/ml_imgmoments(I,0,0))/R ;
    34: 
 
    37:  %
0.050 0% 38:  k = find(sqrt(Xn.^2 + Yn.^2) <= 1.0) ;
    39: 
 
    41:  for n=0:D,
0.040 0% 42:  for l=0:n,
2.660 6% 43:  if (mod(n-l,2)==0)
2.360 6% 44:  znames = [znames cellstr(sprintf('Z_%i,%i', n, l))] ;
22.900 55% 45:  zvalues = [zvalues ml_Znl(n, l, Xn(k), Yn(k), ...
    46:  double(P(k))/sum(P))] ;
    47:  end
0.010 0% 48:  end
0.010 0% 49:  end

bwmorph     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 38.020 s    ( 8.6%)
Calls: 540
Self time: 1.120 s    ( 8.6%)

Function: Time Calls Time/call
bwmorph 38.020   540 0.07040741
 
Parent functions:
edge 180  
bwperim 180  
ml_threshcrop 180  
 
Child functions:
bwmorph/thin 27.860 73.3% 180 0.15477778
bwmorph/perim4 4.500 11.8% 180 0.02500000
bwmorph/majority 4.370 11.5% 180 0.02427778
strmatch 0.070 0.2% 540 0.00012963
deblank 0.070 0.2% 540 0.00012963
nargchk 0.030 0.1% 540 0.00005556


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

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

ml_readimage     /home/ejr/ml/SImEC/matlab/ml_readimage.m
Time: 29.840 s    ( 6.7%)
Calls: 540
Self time: 0.040 s    ( 6.7%)

Function: Time Calls Time/call
ml_readimage 29.840   540 0.05525926
 
Parent functions:
ml_calcfeat 540  
 
Child functions:
ml_tclread 29.050 97.4% 360 0.08069444
imread 0.750 2.5% 180 0.00416667


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

    17:  L = length( filename);
0.010 0% 18:  extension = filename(L-2:L);
    19: 
    20: 
0.010 0% 21:  switch( extension)
    22:  case '.gz'
 
    38:  case 'dat'
29.050 97% 39:  image = ml_tclread( filename);
    40:  otherwise
0.770 3% 41:  image = imread( filename);
    42:  end

ml_tclread     /home/ejr/ml/SImEC/matlab/ml_tclread.m
Time: 29.050 s    ( 6.5%)
Calls: 360
Self time: 29.050 s    ( 6.5%)

Function: Time Calls Time/call
ml_tclread 29.050   360 0.08069444
 
Parent functions:
ml_readimage 360  
 
Child functions:
none


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

    6: 
0.040 0% 7:  f = fopen( filename, 'r', 'ieee-be');
    8:  if( f == -1); error(['Could not open file: ' filename]); end;
    9: 
0.050 0% 10:  fseek( f, 0, 'bof');
0.290 1% 11:  BytesPerPixel = fread( f, 1, 'uint16');
0.180 1% 12:  ImageWidth = fread( f, 1, 'uint16');
0.010 0% 13:  ImageHeight = fread( f, 1, 'uint16');
    14:  SequenceNumber = fread( f, 1, 'uint16');
0.010 0% 15:  BitsPerPixel = fread( f, 1, 'uint16');
    16: 
    17:  BEGINNING_OF_DATA = 512;
0.010 0% 18:  switch BitsPerPixel
    19:  case 8, PIXEL_TYPE = 'uint8';
 
    24:  fseek( f, BEGINNING_OF_DATA, 'bof');
28.420 98% 25:  image = fread( f, [ImageWidth,ImageHeight], PIXEL_TYPE)';
    26: 
0.040 0% 27:  fclose( f);

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

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



bwmorph/thin     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 27.860 s    ( 6.3%)
Calls: 180
Self time: 18.630 s    ( 6.3%)

Function: Time Calls Time/call
bwmorph/thin 27.860   180 0.15477778
 
Parent functions:
bwmorph 180  
 
Child functions:
applylut 9.210 33.1% 360 0.02558333
lutthin3 0.010 0.0% 180 0.00005556
lutthin1 0.010 0.0% 180 0.00005556
lutthin4 0.000 0.0% 180 0.00000000
lutthin2 0.000 0.0% 180 0.00000000


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

    447: 
0.030 0% 448:  G1 = uint8(lutthin1);
    449:  G2 = uint8(lutthin2);
0.020 0% 450:  G3 = uint8(lutthin3);
0.020 0% 451:  G4 = uint8(lutthin4);
    452: 
 
    459:  lutlut = 1:512;
4.520 16% 460:  lookup = applylut(a, lutlut);
    461:  % Preallocate a uint8 zeros matrix
 
    463:  [m,n] = size(a);
0.120 0% 464:  d(m,n) = 0;
    465: 
    466:  % First subiteration
8.840 32% 467:  d(:) = G1(lookup) & G2(lookup) & G3(lookup);
0.400 1% 468:  c = a & ~d;
    469: 
    470:  % Second subiteration
4.740 17% 471:  lookup = applylut(c, lutlut);
8.750 31% 472:  d(:) = G1(lookup) & G2(lookup) & G4(lookup);
0.390 1% 473:  c = c & ~d;

ml_imgfeatures     /home/ejr/ml/SImEC/matlab/ml_imgfeatures.m
Time: 27.630 s    ( 6.2%)
Calls: 180
Self time: 6.370 s    ( 6.2%)

Function: Time Calls Time/call
ml_imgfeatures 27.630   180 0.15350000
 
Parent functions:
ml_features 180  
 
Child functions:
ml_imgmoments 9.760 35.3% 540 0.01807407
im2bw 4.990 18.1% 360 0.01386111
imfeature 3.800 13.8% 180 0.02111111
bwlabel 1.070 3.9% 180 0.00594444
ml_moments_1 1.050 3.8% 180 0.00583333
cellstr 0.520 1.9% 2880 0.00018056
var 0.050 0.2% 360 0.00013889
mean 0.020 0.1% 360 0.00005556


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

    46:  %
7.290 26% 47:  features = imfeature(double(im2bw(imageproc)), 'EulerNumber') ;
    48: 
 
    51:  %
3.550 13% 52:  imagelabeled = bwlabel(im2bw(imageproc)) ;
2.070 7% 53:  obj_number = max(imagelabeled(:)) ;
    54: 
 
    61:  %
3.530 13% 62:  imageproc_m00 = ml_imgmoments(imageproc,0,0) ;
3.080 11% 63:  imageproc_m01 = ml_imgmoments(imageproc,0,1) ;
3.270 12% 64:  imageproc_m10 = ml_imgmoments(imageproc,1,0) ;
    65:  imageproc_center = [imageproc_m10/imageproc_m00 imageproc_m01/imageproc_m00] ;
 
    98:  %
3.740 14% 99:  [img_moment00, img_moment10, img_moment01, obj_size] = ml_moments_1(int32(imageproc),... 
    100:  int32(imagelabeled));
 
    228: 
0.160 1% 229:  names = [names cellstr('object_size:average') ...
    230:  cellstr('object_size:variance') ...
    231:  cellstr('object_size:ratio')] ;
0.120 0% 232:  slfnames = [slfnames cellstr('SLF1.3') ...
    233:  cellstr('SLF1.4') ...
 
    243:  end
0.110 0% 244:  names = [names cellstr('object_distance:average') ... 
    245:  cellstr('object_distance:variance') ...

ml_threshcrop     /home/ejr/ml/SImEC/matlab/ml_threshcrop.m
Time: 24.450 s    ( 5.5%)
Calls: 180
Self time: 0.080 s    ( 5.5%)

Function: Time Calls Time/call
ml_threshcrop 24.450   180 0.13583333
 
Parent functions:
ml_preprocess 180  
 
Child functions:
ml_nihscale 9.490 38.8% 180 0.05272222
ml_nihthreshold 7.440 30.4% 180 0.04133333
bwmorph 4.850 19.8% 180 0.02694444
im2bw 2.590 10.6% 180 0.01438889


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

    16: 
9.490 39% 17:  Iscaled = ml_nihscale(image) ;
7.450 30% 18:  Timage = ml_nihthreshold(Iscaled) ;
2.610 11% 19:  Ithresh = im2bw(Iscaled, Timage) ;
4.890 20% 20:  mask = bwmorph(Ithresh, 'majority') ;
    21: 

ml_Znl     /home/ejr/ml/SImEC/matlab/mex/ml_Znl.mexglx
Time: 20.490 s    ( 4.6%)
Calls: 8820
Self time: 20.490 s    ( 4.6%)

Function: Time Calls Time/call
ml_Znl 20.490   8820 0.00232313
 
Parent functions:
ml_zernike 8820  
 
Child functions:
none



bwarea     /usr/local/matlab/toolbox/images/images/bwarea.m
Time: 13.940 s    ( 3.1%)
Calls: 720
Self time: 2.100 s    ( 3.1%)

Function: Time Calls Time/call
bwarea 13.940   720 0.01936111
 
Parent functions:
ml_imgedgefeatures 360  
ml_hullfeatures 360  
 
Child functions:
applylut 10.950 78.6% 720 0.01520833
repmat 0.890 6.4% 720 0.00123611


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

    27: 
0.010 0% 28:  if isa(b,'uint16')
    29:  error('Input image must be of class uint8 or double.');
 
    35:  % Need to zero-pad the input.
0.930 7% 36:  bb = repmat(uint8(0),size(b)+2);
1.250 9% 37:  bb(2:end-1,2:end-1) = b;
    38: 
11.040 79% 39:  weights = applylut(bb,lut);
0.700 5% 40:  a = sum(weights(:))/8;

ml_imgconvhull     /home/ejr/ml/SImEC/matlab/ml_imgconvhull.m
Time: 10.890 s    ( 2.5%)
Calls: 180
Self time: 0.440 s    ( 2.5%)

Function: Time Calls Time/call
ml_imgconvhull 10.890   180 0.06050000
 
Parent functions:
ml_features 180  
 
Child functions:
roipoly 5.910 54.3% 180 0.03283333
convhull 4.540 41.7% 180 0.02522222


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

    18:  %
0.400 4% 19:  [Ty, Tx] = find(bwimage) ;
4.550 42% 20:  k = convhull(Tx,Ty) ;
    21: 
 
    24:  %
5.940 55% 25:  hull = roipoly(bwimage, Tx(k), Ty(k)) ;

im2bw     /usr/local/matlab/toolbox/images/images/im2bw.m
Time: 10.170 s    ( 2.3%)
Calls: 720
Self time: 10.170 s    ( 2.3%)

Function: Time Calls Time/call
im2bw 10.170   720 0.01412500
 
Parent functions:
ml_imgedgefeatures 180  
ml_imgfeatures 360  
ml_threshcrop 180  
 
Child functions:
none


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

    36: 
0.010 0% 37:  if nargin==0,
    38:  error('Need input arguments.');
 
    43: 
0.010 0% 44:  if nargin==1, % im2bw(I) or im2bw(RGB)
    45:  if threeD,
 
    80: 
0.010 0% 81:  if (level < 0) | (level > 1)
    82:  error('LEVEL must be in the range [0,1].');
 
    86:  bw = (a >= 255*level);
0.010 0% 87:  elseif isa(a, 'uint16')
    88:  bw = (a >= 65535*level);
    89:  else
10.070 99% 90:  bw = uint8(a >= level);
    91:  end
 
    96: 
0.020 0% 97:  if nargout==0, % Show results
    98:  imshow(bw,2)
 
    100:  end
0.010 0% 101:  bwout = bw;

ml_nihscale     /home/ejr/ml/SImEC/matlab/ml_nihscale.m
Time: 9.490 s    ( 2.1%)
Calls: 180
Self time: 9.490 s    ( 2.1%)

Function: Time Calls Time/call
ml_nihscale 9.490   180 0.05272222
 
Parent functions:
ml_threshcrop 180  
 
Child functions:
none


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

    10: 
8.280 87% 11:  s = image * 253/(max(max(image))-min(min(image)))+1;
1.200 13% 12:  s = s/255;
    13: 
0.010 0% 14:  scaledimage = s;

roifilt2     /usr/local/matlab/toolbox/images/images/roifilt2.m
Time: 7.810 s    ( 1.8%)
Calls: 180
Self time: 4.540 s    ( 1.8%)

Function: Time Calls Time/call
roifilt2 7.810   180 0.04338889
 
Parent functions:
ml_preprocess 180  
 
Child functions:
filter2 3.210 41.1% 180 0.01783333
fcnchk 0.060 0.8% 180 0.00033333


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

    51: 
0.030 0% 52:  params = varargin(4:end);
0.070 1% 53:  [fun,fcnchk_msg] = fcnchk(varargin{3}, length(params));
0.010 0% 54:  if isempty(fcnchk_msg)
    55:  % J = ROIFILT2(I,BW,'fun',P1,...)
 
    88:  else
3.220 41% 89:  c = filter2(h, y);
    90:  end
 
    97: 
4.450 57% 98:  y(d) = c(d);   

ml_nihthreshold     /home/ejr/ml/SImEC/matlab/ml_nihthreshold.m
Time: 7.440 s    ( 1.7%)
Calls: 180
Self time: 5.150 s    ( 1.7%)

Function: Time Calls Time/call
ml_nihthreshold 7.440   180 0.04133333
 
Parent functions:
ml_threshcrop 180  
 
Child functions:
imhist 2.200 29.6% 180 0.01222222
flipdim 0.090 1.2% 180 0.00050000


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

    29:  %
2.300 31% 30:  histo = flipdim(imhist(image,256),1) ;
    31: 
 
    56:  Result = MaxIndex;
0.210 3% 57:  while ((MovingIndex+1)<=Result)
0.230 3% 58:  if (MovingIndex > (MaxIndex-1))
    59:  break;
 
    61: 
1.180 16% 62:  sum1 = sum([MinIndex:MovingIndex]' .* ...
    63:  histo(MinIndex:MovingIndex)) ;
0.610 8% 64:  sum2 = sum(histo(MinIndex:MovingIndex)) ;
1.570 21% 65:  sum3 = sum([MovingIndex+1:MaxIndex]' .* ...
    66:  histo(MovingIndex+1:MaxIndex)) ;
0.890 12% 67:  sum4 = sum(histo(MovingIndex+1:MaxIndex)) ;
    68: 
0.240 3% 69:  Result = (sum1/sum2 + sum3/sum4)/2 ;
    70: 
0.160 2% 71:  MovingIndex = MovingIndex+1;
0.030 0% 72:  end;
    73: 

ml_imgbgsub     /home/ejr/ml/SImEC/matlab/ml_imgbgsub.m
Time: 7.390 s    ( 1.7%)
Calls: 180
Self time: 0.140 s    ( 1.7%)

Function: Time Calls Time/call
ml_imgbgsub 7.390   180 0.04105556
 
Parent functions:
ml_preprocess 180  
 
Child functions:
ml_imgcommonpixel 7.250 98.1% 180 0.04027778


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

    33:  % Find the most common pixel value
7.250 98% 34:  common = ml_imgcommonpixel(image) ;
    35: 
 
    37:  % Check for a common pixel value of 0
0.010 0% 38:  if (common == 0),
    39:  isub = image ;
 
    44:  % Subtract the most common pixel value from each pixel in the image
0.040 1% 45:  isub = image - common ;
    46: 
 
    48:  % Set any pixel values < 0 to 0
0.090 1% 49:  isub = (isub>0).*isub ;
    50: 

ml_imgcommonpixel     /home/ejr/ml/SImEC/matlab/ml_imgcommonpixel.m
Time: 7.250 s    ( 1.6%)
Calls: 180
Self time: 5.030 s    ( 1.6%)

Function: Time Calls Time/call
ml_imgcommonpixel 7.250   180 0.04027778
 
Parent functions:
ml_imgbgsub 180  
 
Child functions:
imhist 2.220 30.6% 180 0.01233333


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

    10: 
1.700 23% 11:  if ~image
    12:  error('Invalid input image') ;
 
    18:  %
2.160 30% 19:  imagemax = max(max(image)) ;
0.010 0% 20:  if (imagemax ~= 0)
3.380 47% 21:  [hmax,ihmax] = max(imhist(image/imagemax, imagemax+1)) ;
    22:  else

imhist     /usr/local/matlab/toolbox/images/images/imhist.m
Time: 6.690 s    ( 1.5%)
Calls: 540
Self time: 0.130 s    ( 1.5%)

Function: Time Calls Time/call
imhist 6.690   540 0.01238889
 
Parent functions:
edge 180  
ml_nihthreshold 180  
ml_imgcommonpixel 180  
 
Child functions:
imhistc 6.400 95.7% 540 0.01185185
linspace 0.090 1.3% 540 0.00016667
imhist/parse_inputs 0.070 1.0% 540 0.00012963


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

    46: 
0.090 1% 47:  [a, n, isScaled, top, map, err_msg] = parse_inputs(varargin{:});
    48:  if (~isempty(err_msg))
 
    51: 
6.410 96% 52:  y = imhistc(a, n, isScaled, top); % Call MEX file to do work.
0.060 1% 53:  classin = class(a);
0.010 0% 54:  switch classin
    55:  case 'uint8'
 
    59:  case 'double'
0.120 2% 60:  x = linspace(0,1,n)';
    61:  otherwise

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

Function: Time Calls Time/call
imhistc 6.400   540 0.01185185
 
Parent functions:
imhist 540  
 
Child functions:
none



roipoly     /usr/local/matlab/toolbox/images/images/roipoly.m
Time: 5.910 s    ( 1.3%)
Calls: 180
Self time: 5.470 s    ( 1.3%)

Function: Time Calls Time/call
roipoly 5.910   180 0.03283333
 
Parent functions:
ml_imgconvhull 180  
 
Child functions:
intline 0.370 6.3% 2199 0.00016826
axes2pix 0.040 0.7% 360 0.00011111
roipoly/parse_inputs 0.030 0.5% 180 0.00016667


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

    85:  % Transform xi,yi into pixel coordinates.
0.030 1% 86:  roix = axes2pix(num_cols, xdata, xi);
    87:  roiy = axes2pix(num_rows, ydata, yi);
 
    93:  % Initialize output matrix.  We need one extra row to begin with.
0.790 13% 94:  d = zeros(num_rows+1,num_cols);
    95: 
 
    99:  for counter = 1:num_segments
0.030 1% 100:  x1 = roix(counter);
    101:  x2 = roix(counter+1);
 
    111:  % output image.
0.390 7% 112:  [x,y] = intline(x1,x2,y1,y2);
    113:  if ((x1 < 1) | (x1 > num_cols) | (x2 < 1) | (x2 > num_cols) | ...
0.070 1% 114:  (y1 < 1) | (y1 > (num_rows+1)) | (y2 < 1) | (y2 > (num_rows+1)))
    115:  xLowIdx = find(x < 1);
 
    131:  end
0.030 1% 132:  diffx = diff(x);
    133:  dx_indices = find(diffx);
 
    141:  end
0.100 2% 142:  d_indices = [y(dx_indices) (x(dx_indices)-1)] * [1; (num_rows+1)];
0.070 1% 143:  d(d_indices) = d(d_indices) + mark_val(ones(size(d_indices)),1);
    144:  end
 
    150:  % logical output.
4.010 68% 151:  d = uint8(cumsum(d) ~= 0);
    152: 
    153:  % Get rid of that extra row and we're done!
0.270 5% 154:  d(end,:) = [];
    155: 

bwperim     /usr/local/matlab/toolbox/images/images/bwperim.m
Time: 4.840 s    ( 1.1%)
Calls: 180
Self time: 0.010 s    ( 1.1%)

Function: Time Calls Time/call
bwperim 4.840   180 0.02688889
 
Parent functions:
ml_hullfeatures 180  
 
Child functions:
bwmorph 4.830 99.8% 180 0.02683333
nargchk 0.000 0.0% 180 0.00000000


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

    34:  if n==4,
4.830 100% 35:  p = bwmorph(b,'perim4');
    36:  else

convhull     /usr/local/matlab/toolbox/matlab/polyfun/convhull.m
Time: 4.540 s    ( 1.0%)
Calls: 180
Self time: 2.540 s    ( 1.0%)

Function: Time Calls Time/call
convhull 4.540   180 0.02522222
 
Parent functions:
ml_imgconvhull 180  
 
Child functions:
delaunay 1.900 41.9% 180 0.01055556
unique 0.040 0.9% 180 0.00022222
xychk 0.030 0.7% 180 0.00016667
mean 0.030 0.7% 360 0.00008333
angle 0.000 0.0% 180 0.00000000


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

    16: 
0.030 1% 17:  isrow = ndims(x)==2 & size(x,1)==1 & size(x,2)~=1;
0.040 1% 18:  [msg,x,y] = xychk(x(:),y(:)); % Treat these a columns.
    19:  error(msg);
 
    23:  if nargin==2, 
1.910 42% 24:  tri = delaunay(x,y);
    25:  end
 
    28:  ntri = size(tri,1);
0.020 0% 29:  t = (1:ntri)';
    30: 
    31:  % Triangle edge if T(i,j) is non-zero
2.230 49% 32:  T = sparse(tri(:,[1 1 2 2 3 3]),tri(:,[2 3 1 3 1 2]),1,n,n);
0.130 3% 33:  [i,j] = find(triu(T==1));
    34:  k = [i;j];
 
    41:  xc = x(k); yc = y(k);
0.030 1% 42:  xm = mean(xc); ym = mean(yc);
    43:  phi = angle((xc-xm) + (yc-ym)*sqrt(-1));
0.040 1% 44:  [dum,ind] = unique(phi);
    45:  k = k(ind);
 
    49:  xy = [x(k(end)) y(k(end));x(k) y(k);x(k(1)) y(k(1))];
0.030 1% 50:  a = xy(2:end-1,:) - xy(1:end-2,:);
    51:  b = xy(3:end  ,:) - xy(2:end-1,:);
 
    54:  % a dot b - norm(a)*norm(b) < tol when a and b are aligned
0.020 0% 55:  ind = abs(sum(a .* b,2) - mag) < tol & sum(a.*a,2) > tol;
    56:  k(ind) = []; % Remove collinear points

bwmorph/perim4     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 4.500 s    ( 1.0%)
Calls: 180
Self time: 0.040 s    ( 1.0%)

Function: Time Calls Time/call
bwmorph/perim4 4.500   180 0.02500000
 
Parent functions:
bwmorph 180  
 
Child functions:
applylut 4.460 99.1% 180 0.02477778
lutper4 0.000 0.0% 180 0.00000000


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

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

bwmorph/majority     /usr/local/matlab/toolbox/images/images/bwmorph.m
Time: 4.370 s    ( 1.0%)
Calls: 180
Self time: 0.020 s    ( 1.0%)

Function: Time Calls Time/call
bwmorph/majority 4.370   180 0.02427778
 
Parent functions:
bwmorph 180  
 
Child functions:
applylut 4.350 99.5% 180 0.02416667
lutmajority 0.000 0.0% 180 0.00000000


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

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

bwselect     /usr/local/matlab/toolbox/images/images/bwselect.m
Time: 4.120 s    ( 0.9%)
Calls: 180
Self time: 1.110 s    ( 0.9%)

Function: Time Calls Time/call
bwselect 4.120   180 0.02288889
 
Parent functions:
edge 180  
 
Child functions:
bwfill 2.950 71.6% 180 0.01638889
bwselect/ParseInputs 0.060 1.5% 180 0.00033333


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

    55: 
0.070 2% 56:  [xdata,ydata,BW,xi,yi,r,c,n,newFig,msg] = ParseInputs(varargin{:});
    57:  if (~isempty(msg))
 
    69: 
3.210 78% 70:  [BW2, idx] = bwfill(~BW, c, r, n);
0.830 20% 71:  BW2(1:end) = 0;  % clears logical flag
    72:  BW2(idx) = 1;
 
    86: 
0.010 0% 87:  varargout{1} = BW2;

imfeature     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 3.800 s    ( 0.9%)
Calls: 180
Self time: 2.270 s    ( 0.9%)

Function: Time Calls Time/call
imfeature 3.800   180 0.02111111
 
Parent functions:
ml_imgfeatures 180  
 
Child functions:
imfeature/ComputeEulerNumber 1.420 37.4% 180 0.00788889
imfeature/ParseInputs 0.110 2.9% 180 0.00061111


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

    49: 
0.030 1% 50:  officialStats = {'Area'
    51:  'Centroid'
 
    71: 
0.120 3% 72:  [L, requestedStats, n, msg] = ParseInputs(officialStats, ...
    73:  varargin{:});
0.010 0% 74:  if (~isempty(msg))
    75:  error(msg);
 
    80:  else
2.140 56% 81:  numObjs = round(max(double(L(:))));
    82:  end
 
    85:  numStats = length(allStats);
0.010 0% 86:  empties = cell(numStats, numObjs);
0.020 1% 87:  stats = cell2struct(empties, allStats, 1);
    88: 
 
    91:  for k = 1:numStats
0.010 0% 92:  zz{k} = 0;
0.010 0% 93:  end
    94:  computedStats = cell2struct(zz, allStats, 1);
 
    114:  case 'EulerNumber'
1.430 38% 115:  [stats, computedStats] = ComputeEulerNumber(L,stats,computedStats,n);
    116: 
 
    162:  for k = 1:numObjs
0.020 1% 163:  for p = 1:length(requestedStats)
    164:  s(1).subs = {k};

bwfill     /usr/local/matlab/toolbox/images/images/bwfill.m
Time: 2.950 s    ( 0.7%)
Calls: 180
Self time: 1.800 s    ( 0.7%)

Function: Time Calls Time/call
bwfill 2.950   180 0.01638889
 
Parent functions:
bwselect 180  
 
Child functions:
impad 0.730 24.7% 180 0.00405556
bwfillc 0.170 5.8% 180 0.00094444
repmat 0.170 5.8% 180 0.00094444
bwfill/ParseInputs 0.080 2.7% 180 0.00044444


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

    79: 
0.080 3% 80:  [xdata,ydata,I,xi,yi,r,c,style,newFig,fillHoles,msg] = ParseInputs(varargin{:});
    81:  if (~isempty(msg))
 
    108:  [M,N] = size(I);
1.020 35% 109:  Ip = impad(uint8(I~=0),1,1);
    110: 
 
    118:  % matrix indexing bug in MATLAB 5.0.  -sle
0.020 1% 119:  killIdx = find(Ip((c-1)*(M+2) + r) ~= 0);
    120:  r(killIdx) = [];
 
    124:  % Preallocate output matrix
0.170 6% 125:  J = repmat(uint8(0), size(Ip));
    126: 
    127:  idxList = r + (c-1)*(M+2);
0.020 1% 128:  idxList(Ip(idxList)) = [];
    129: 
0.190 6% 130:  J = bwfillc(Ip, idxList, style);
    131: 
0.200 7% 132:  J = J(2:M+1,2:N+1);
    133: 
0.290 10% 134:  BW2 = J | I;
    135: 
0.010 0% 136:  switch nargout
    137:  case 0
 
    153:  varargout{1} = BW2;
0.920 31% 154:  varargout{2} = find(J & ~I);

cellstr     /usr/local/matlab/toolbox/matlab/strfun/cellstr.m
Time: 2.930 s    ( 0.7%)
Calls: 14580
Self time: 1.260 s    ( 0.7%)

Function: Time Calls Time/call
cellstr 2.930   14580 0.00020096
 
Parent functions:
ml_imgedgefeatures 1800  
ml_zernike 8820  
ml_hullfeatures 1080  
ml_imgfeatures 2880  
 
Child functions:
deblank 1.320 45.1% 14580 0.00009053
iscellstr 0.350 11.9% 14580 0.00002401


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

    16: 
0.500 17% 17:  if iscellstr(s), c = s; return, end
0.140 5% 18:  if ndims(s)~=2, error('S must be 2-D.'); end
    19: 
0.180 6% 20:  if isempty(s)
    21:  if isstr(s)
 
    25:  end
0.010 0% 26:  else
0.180 6% 27:  c = cell(size(s,1),1);
0.140 5% 28:  for i=1:size(s,1)
1.660 57% 29:  c{i} = deblank(s(i,:));
0.010 0% 30:  end
0.030 1% 31:  end

mod     /usr/local/matlab/toolbox/matlab/elfun/mod.m
Time: 2.640 s    ( 0.6%)
Calls: 17104
Self time: 2.640 s    ( 0.6%)

Function: Time Calls Time/call
mod 2.640   17104 0.00015435
 
Parent functions:
datestr 4  
edge/cannyFindLocalMaxima 720  
ml_zernike 16380  
 
Child functions:
none


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

    18: 
0.370 14% 19:  if ~isreal(x) | ~isreal(y)
    20:  error('Arguments must be real.')
 
    24: 
0.130 5% 25:  if length(y) == 1
0.360 14% 26:  y = y(ones(size(x)));
    27:  elseif length(x) == 1
 
    29:  end
0.140 5% 30:  z = zeros(size(x));
    31: 
0.240 9% 32:  if ~isequal(size(x),size(y)), 
    33:  error('X and Y must be the same size.'); 
    34:  end
0.220 8% 35:  if isempty(x) | isempty(y), return, end
    36: 
 
    39: 
0.170 6% 40:  m = (y == fix(y)) & (y ~= 0);
0.660 25% 41:  z(m) = x(m) - floor(x(m)./y(m)).*y(m);
    42: 
    43:  % handle the non-integer and zero denominator cases
0.210 8% 44:  if ~all(m(:))

ml_compfeat     /home/ejr/ml/SImEC/matlab/ml_compfeat.m
Time: 2.060 s    ( 0.5%)
Calls: 1
Self time: 0.000 s    ( 0.5%)

Function: Time Calls Time/call
ml_compfeat 2.060   1 2.06000000
 
Parent functions:
ml_simec 1  
 
Child functions:
ml_uni_confid_eval 1.960 95.1% 1 1.96000000
ml_hotel 0.100 4.9% 1 0.10000000


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.100 5% 58:  eval(['[F crit res hotel_warn] = ml_hotel(feature_matrix1,' ...
    59:  'feature_matrix2, conf);'], 'succ = -2');
1.960 95% 60:  eval('both = ml_uni_confid_eval(feature_matrix1, feature_matrix2);', ...

ttest2     /usr/local/matlab/toolbox/stats/ttest2.m
Time: 1.960 s    ( 0.4%)
Calls: 65
Self time: 0.040 s    ( 0.4%)

Function: Time Calls Time/call
ttest2 1.960   65 0.03015385
 
Parent functions:
ml_students_feats 65  
 
Child functions:
tinv 1.740 88.8% 65 0.02676923
tcdf 0.150 7.7% 65 0.00230769
var 0.030 1.5% 130 0.00023077
mean 0.000 0.0% 130 0.00000000


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

    35:  [m1 n1] = size(x);
0.010 1% 36:  [m2 n2] = size(y);
    37:  if (m1 ~= 1 & n1 ~= 1) | (m2 ~= 1 & n2 ~= 1)
 
    56:  dfe  = dfx + dfy;
0.020 1% 57:  msx = dfx * var(x);
0.020 1% 58:  msy = dfy * var(y);
    59: 
 
    66:  % Find the p-value for the tail = 1 test.
0.150 8% 67:  p  = 1 - tcdf(ratio,dfe);
    68: 
 
    71:  p = 2 * min(p, 1-p);
1.760 90% 72:  spread = tinv(1 - alpha / 2,dfe) * pooleds;
    73:  if (nargout>2), ci = [(difference - spread) (difference + spread)]; end

ml_students_feats     /home/ejr/ml/SImEC/matlab/ml_students_feats.m
Time: 1.960 s    ( 0.4%)
Calls: 1
Self time: 0.000 s    ( 0.4%)

Function: Time Calls Time/call
ml_students_feats 1.960   1 1.96000000
 
Parent functions:
ml_uni_confid_eval 1  
 
Child functions:
ttest2 1.960 100.0% 65 0.03015385


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

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

ml_uni_confid_eval     /home/ejr/ml/SImEC/matlab/ml_uni_confid_eval.m
Time: 1.960 s    ( 0.4%)
Calls: 1
Self time: 0.000 s    ( 0.4%)

Function: Time Calls Time/call
ml_uni_confid_eval 1.960   1 1.96000000
 
Parent functions:
ml_compfeat 1  
 
Child functions:
ml_students_feats 1.960 100.0% 1 1.96000000


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

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

delaunay     /usr/local/matlab/toolbox/matlab/polyfun/delaunay.m
Time: 1.900 s    ( 0.4%)
Calls: 180
Self time: 0.690 s    ( 0.4%)

Function: Time Calls Time/call
delaunay 1.900   180 0.01055556
 
Parent functions:
convhull 180  
 
Child functions:
delaunayc 0.820 43.2% 180 0.00455556
unique 0.390 20.5% 180 0.00216667


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

    50:  xmin = min(x); xmax = max(x);
0.020 1% 51:  ymin = min(y); ymax = max(y);
    52: 
 
    55:  [yf,ye] = log2(y);  
0.440 23% 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.020 1% 67:  xf = xf + tol*(rand(size(xf))-.5)*2;
0.030 2% 68:  yf = yf + tol*(rand(size(xf))-.5)*2; 
    69:  xx = pow2(xf,xe);
0.030 2% 70:  yy = pow2(yf,ye);
    71: 
 
    74:  % Offset data so it is centered around zero
0.030 2% 75:  xx = xx - (xmin+xmax)/2;
    76:  yy = yy - (ymin+ymax)/2;
 
    78:  % Now do the triangulation
0.840 44% 79:  tri = delaunayc(xx,yy);
0.090 5% 80:  tri = reshape(ndx(tri),size(tri)); % Map to original indices
    81: 
    82:  % Remove any zero area triangles from list
0.290 15% 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.040 2% 85:  tri((Area == 0),:) = [];

betainv     /usr/local/matlab/toolbox/stats/betainv.m
Time: 1.760 s    ( 0.4%)
Calls: 66
Self time: 0.120 s    ( 0.4%)

Function: Time Calls Time/call
betainv 1.760   66 0.02666667
 
Parent functions:
tinv 65  
finv 1  
 
Child functions:
betacdf 1.490 84.7% 461 0.00323210
betapdf 0.140 8.0% 461 0.00030369
distchck 0.010 0.6% 66 0.00015152


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

    22: 
0.010 1% 23:  [errorcode p a b] = distchck(3,p,a,b);
    24: 
0.010 1% 25:  if errorcode > 0
    26:  error('Requires non-scalar arguments to match in size.');
 
    32:  %   Return NaN if the arguments are outside their respective limits.
0.010 1% 33:  k = find(p < 0 | p > 1 | a <= 0 | b <= 0);
    34:  if any(k),
 
    39:  % The inverse cdf of 0 is 0, and the inverse cdf of 1 is 1.  
0.020 1% 40:  k0 = find(p == 0 & a > 0 & b > 0);
    41:  if any(k0), 
 
    82:  while(any(abs(h) > crit * abs(xk)) & max(abs(h)) > crit    ...
0.020 1% 83:  & count < count_limit), 
    84: 
    85:  count = count+1;    
1.650 94% 86:  h = (betacdf(xk,a(k),b(k)) - pk) ./ betapdf(xk,a(k),b(k));
0.010 1% 87:  xnew = xk - h;
    88: 
 
    90:  % Initially, Newton's Method may take big steps.
0.020 1% 91:  ksmall = find(xnew <= 0);
0.010 1% 92:  klarge = find(xnew >= 1);
    93:  if any(ksmall) | any(klarge)

tinv     /usr/local/matlab/toolbox/stats/tinv.m
Time: 1.740 s    ( 0.4%)
Calls: 65
Self time: 0.010 s    ( 0.4%)

Function: Time Calls Time/call
tinv 1.740   65 0.02676923
 
Parent functions:
ttest2 65  
 
Child functions:
betainv 1.720 98.9% 65 0.02646154
distchck 0.010 0.6% 65 0.00015385


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

    20: 
0.010 1% 21:  [errorcode p v] = distchck(2,p,v);
    22: 
 
    36:  % The inverse cdf of 0 is -Inf, and the inverse cdf of 1 is Inf.
0.010 1% 37:  k0 = find(p == 0 & ~isnan(x));
    38:  if any(k0)
 
    50:  if any(k)
1.720 99% 51:  z = betainv(2*(1-p(k)),v(k)/2,0.5);
    52:  x(k) = sqrt(v(k) ./ z - v(k));

repmat     /usr/local/matlab/toolbox/matlab/elmat/repmat.m
Time: 1.500 s    ( 0.3%)
Calls: 1443
Self time: 1.500 s    ( 0.3%)

Function: Time Calls Time/call
repmat 1.500   1443 0.00103950
 
Parent functions:
cov 2  
std 1  
bwfill 180  
impad/constant 180  
edge 180  
bwarea 720  
bweuler 180  
 
Child functions:
none


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

    23: 
0.020 1% 24:  if nargin < 2
    25:  error('Requires at least 2 inputs.')
    26:  elseif nargin == 2
0.010 1% 27:  if length(M)==1
    28:  siz = [M M];
    29:  else
0.010 1% 30:  siz = M;
    31:  end
 
    33:  siz = [M N];
0.010 1% 34:  end
    35: 
 
    41:  % fill the array.. Finally reshape to the specified size.
0.710 47% 42:  B(nelems) = A; 
0.670 45% 43:  B(:) = A;
0.040 3% 44:  B = reshape(B,siz);
    45:  else

betacdf     /usr/local/matlab/toolbox/stats/betacdf.m
Time: 1.490 s    ( 0.3%)
Calls: 461
Self time: 0.080 s    ( 0.3%)

Function: Time Calls Time/call
betacdf 1.490   461 0.00323210
 
Parent functions:
betainv 461  
 
Child functions:
betainc 1.350 90.6% 461 0.00292842
distchck 0.060 4.0% 461 0.00013015


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

    17: 
0.010 1% 18:  if nargin<3, 
    19:  error('Requires three input arguments.'); 
 
    21: 
0.070 5% 22:  [errorcode x a b] = distchck(3,x,a,b);
    23: 
 
    28:  % Initialize P to 0.
0.010 1% 29:  p = zeros(size(x));
    30: 
    31:  k1 = find(a<=0 | b<=0);
0.010 1% 32:  if any(k1)
    33:  tmp = NaN;
 
    38:  k2 = find(x >= 1);
0.010 1% 39:  if any(k2)
    40:  p(k2) = ones(size(k2));
 
    42: 
0.010 1% 43:  k = find(x > 0 & x < 1 & a > 0 & b > 0);
    44:  if any(k)
1.370 92% 45:  p(k) = betainc(x(k),a(k),b(k));
    46:  end

betainc     /usr/local/matlab/toolbox/matlab/specfun/betainc.m
Time: 1.490 s    ( 0.3%)
Calls: 526
Self time: 0.120 s    ( 0.3%)

Function: Time Calls Time/call
betainc 1.490   526 0.00283270
 
Parent functions:
tcdf 65  
betacdf 461  
 
Child functions:
betacore 1.350 90.6% 526 0.00256654
gammaln 0.020 1.3% 1578 0.00001267


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

    19: 
0.010 1% 20:  if any(x(:) < 0 | x(:) > 1) | ~isreal(x),
    21:  error('X must be in the interval [0,1].')
 
    23: 
0.010 1% 24:  if nargin < 3
    25:  error('Requires three input arguments.')
 
    29:  % Preallocate y (using the size rules for plus)
0.010 1% 30:  y = x + a + b; 
    31:  y(:) = 0;
 
    35: 
0.010 1% 36:  if ~isempty(y)
0.060 4% 37:  bt = exp(gammaln(a+b)-gammaln(a)-gammaln(b) + ...
    38:  a.*log(x+(x==0)) + b.*log(1-x+(x==1)));
 
    40:  k = find(x < (a+1) ./ (a+b+2));
0.010 1% 41:  if length(k) > 0
    42:  if length(x) == 1, xk = x; else, xk = x(k); end
0.010 1% 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.140 77% 45:  y(k) = bt(k) .* betacore(xk,ak,bk) ./ ak;
    46:  end
 
    52:  if length(b) == 1, bk = b; else, bk = b(k); end
0.230 15% 53:  y(k) = 1 - bt(k) .* betacore(1-xk,bk,ak) ./ bk;
    54:  end

imfeature/ComputeEulerNumber     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 1.420 s    ( 0.3%)
Calls: 180
Self time: 0.020 s    ( 0.3%)

Function: Time Calls Time/call
imfeature/ComputeEulerNumber 1.420   180 0.00788889
 
Parent functions:
imfeature 180  
 
Child functions:
imfeature/ComputeImage 1.290 90.8% 180 0.00716667
bweuler 0.110 7.7% 180 0.00061111


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

    321: 
0.010 1% 322:  if ~computedStats.EulerNumber
    323:  computedStats.EulerNumber = 1;
    324: 
1.290 91% 325:  [stats, computedStats] = ComputeImage(L, stats, computedStats);
    326: 
    327:  for k = 1:length(stats)
0.120 8% 328:  stats(k).EulerNumber = bweuler(stats(k).Image,n);
    329:  end

deblank     /usr/local/matlab/toolbox/matlab/strfun/deblank.m
Time: 1.400 s    ( 0.3%)
Calls: 15137
Self time: 1.400 s    ( 0.3%)

Function: Time Calls Time/call
deblank 1.400   15137 0.00009249
 
Parent functions:
strcat 11  
num2str 4  
cellstr 14580  
bwmorph 540  
addpath 2  
 
Child functions:
none


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

    13: 
0.100 7% 14:  if isempty(s)
    15:  s1 = s([]);
    16:  else
0.200 14% 17:  if ~isstr(s),
    18:  warning('Input must be a string.')
 
    21:  % Remove trailing blanks
0.610 44% 22:  [r,c] = find( (s~=0) & ~isspace(s) );
0.060 4% 23:  if isempty(c),
    24:  s1 = s([]);
0.010 1% 25:  else
0.250 18% 26:  s1 = s(:,1:max(c));
0.010 1% 27:  end
    28:  end

betacore     /usr/local/matlab/toolbox/matlab/specfun/betacore.m
Time: 1.350 s    ( 0.3%)
Calls: 526
Self time: 1.350 s    ( 0.3%)

Function: Time Calls Time/call
betacore 1.350   526 0.00256654
 
Parent functions:
betainc 526  
 
Child functions:
none


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

    24:  m = 1;
0.250 19% 25:  while any(abs(y(:)-yold(:)) > 10*eps*abs(y(:)))
0.080 6% 26:  tem = 2 * m;
0.160 12% 27:  d = m * (b - m) .* x ./ ((qam + tem) .* (a + tem));
0.070 5% 28:  ap = y + d .* am;
0.070 5% 29:  bp = bz + d .* bm;
0.260 19% 30:  d = -(a + m) .* (qab + m) .* x ./ ((a + tem) .* (qap + tem));
    31:  app = ap + d .* y;
    32:  bpp = bp + d .* bz;
0.050 4% 33:  yold = y;
    34:  am = ap ./ bpp;
0.050 4% 35:  bm = bp ./ bpp;
0.060 4% 36:  y = app ./ bpp;
0.070 5% 37:  if m == 1
    38:  bz = 1;   % only need to do this first time through

imfeature/ComputeImage     /usr/local/matlab/toolbox/images/images/imfeature.m
Time: 1.290 s    ( 0.3%)
Calls: 180
Self time: 0.160 s    ( 0.3%)

Function: Time Calls Time/call
imfeature/ComputeImage 1.290   180 0.00716667
 
Parent functions:
imfeature/ComputeEulerNumber 180  
 
Child functions:
imfeature/ComputePixelList 1.060 82.2% 180 0.00588889
imfeature/ComputeBoundingBox 0.070 5.4% 180 0.00038889


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

    558: 
1.070 83% 559:  [stats, computedStats] = ComputePixelList(L, stats, computedStats);
0.080 6% 560:  [stats, computedStats] = ComputeBoundingBox(L, stats, computedStats);
    561: 
0.020 2% 562:  for k = 1:length(stats)
0.010 1% 563:  M = stats(k).BoundingBox(4);
    564:  N = stats(k).BoundingBox(3);
 
    567: 
0.050 4% 568:  stats(k).Image = uint8(zeros(M,N));
    569: 
0.010 1% 570:  r = stats(k).PixelList(:,2);
    571:  c = stats(k).PixelList(:,1);
    572:  r = r - firstRow + 1;
0.020 2% 573:  c = c - firstCol + 1;
    574: 
0.010 1% 575:  idx = M * (c - 1) + r;
0.010 1% 576:  stats(k).Image(idx) = 1;
0.010 1% 577:  stats(k).Image = logical(stats(k).Image);
    578:  end

bwlabel     /usr/local/matlab/toolbox/images/images/bwlabel.m
Time: 1.070 s    ( 0.2%)
Calls: 180
Self time: 0.130 s    ( 0.2%)

Function: Time Calls Time/call
bwlabel 1.070   180 0.00594444
 
Parent functions:
ml_imgfeatures 180  
 
Child functions:
bwlabel2 0.730 68.2% 180 0.00405556
bwlabel1 0.200 18.7% 180 0.00111111
dmperm 0.010 0.9% 180 0.00005556


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

    52:  % Compute run-length encoding and assign initial labels.
0.230 21% 53:  [sr,er,sc,labels,i,j] = bwlabel1(BW,mode);
0.010 1% 54:  numRuns = length(sr);
    55:  if (isempty(labels))
 
    62:  tmp = (1:numLabels)';
0.030 3% 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.030 3% 77:  [p,p,r] = dmperm(A);
    78: 
 
    83: 
0.020 2% 84:  blocks = zeros(1,numLabels);
    85:  blocks(r(1:numComponents)) = 1;
 
    87:  blocks(p) = blocks;
0.010 1% 88:  labels = blocks(labels);
    89: 
    90:  % Given label information, create output matrix.
0.730 68% 91:  L = bwlabel2(sr, er, sc, labels, M, N);

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

Function: Time Calls Time/call
imfeature/ComputePixelList 1.060   360 0.00294444
 
Parent functions:
imfeature/ComputeBoundingBox 180  
imfeature/ComputeImage 180  
 
Child functions:
none


98% 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.900 85% 596:  idx = find(L);
0.040 4% 597:  elementValues = L(idx);
0.040 4% 598:  S = sparse(idx, double(elementValues), 1);
    599: 
 
    606:  for k = 1:length(stats)
0.010 1% 607:  idx = find(S(:,k)) - 1;
0.030 3% 608:  c = floor(idx/M) + 1;
0.010 1% 609:  r = rem(idx,M) + 1;
0.010 1% 610:  stats(k).PixelList = [c(:) r(:)];
    611:  end

ml_moments_1     /home/ejr/ml/SImEC/matlab/mex/ml_moments_1.mexglx
Time: 1.050 s    ( 0.2%)
Calls: 180
Self time: 1.050 s    ( 0.2%)

Function: Time Calls Time/call
ml_moments_1 1.050   180 0.00583333
 
Parent functions:
ml_imgfeatures 180  
 
Child functions:
none



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

Function: Time Calls Time/call
delaunayc 0.820   180 0.00455556
 
Parent functions:
delaunay 180  
 
Child functions:
none



imread     /usr/local/matlab/toolbox/matlab/iofun/imread.m
Time: 0.750 s    ( 0.2%)
Calls: 180
Self time: 0.030 s    ( 0.2%)

Function: Time Calls Time/call
imread 0.750   180 0.00416667
 
Parent functions:
ml_readimage 180  
 
Child functions:
readtif 0.600 80.0% 180 0.00333333
imftype 0.090 12.0% 180 0.00050000
imread/parse_inputs 0.030 4.0% 180 0.00016667


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

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

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

Function: Time Calls Time/call
bwlabel2 0.730   180 0.00405556
 
Parent functions:
bwlabel 180  
 
Child functions:
none



impad     /usr/local/matlab/toolbox/images/images/private/impad.m
Time: 0.730 s    ( 0.2%)
Calls: 180
Self time: 0.080 s    ( 0.2%)

Function: Time Calls Time/call
impad 0.730   180 0.00405556
 
Parent functions:
bwfill 180  
 
Child functions:
impad/constant 0.620 84.9% 180 0.00344444
impad/ParseInputs 0.030 4.1% 180 0.00016667


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

    6: 
0.030 4% 7:  [a, padSize, method, params, msg] = ParseInputs(varargin{:});
    8:  if (~isempty(msg))
 
    11: 
0.690 95% 12:  b = feval(method, a, padSize, params{:});
0.010 1% 13:  if (islogical(a))
    14:  b = logical(b);

impad/constant     /usr/local/matlab/toolbox/images/images/private/impad.m
Time: 0.620 s    ( 0.1%)
Calls: 180
Self time: 0.390 s    ( 0.1%)

Function: Time Calls Time/call
impad/constant 0.620   180 0.00344444
 
Parent functions:
impad 180  
 
Child functions:
repmat 0.230 37.1% 180 0.00127778


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

    34:  sizeB = sizeA + 2*padSize;
0.250 40% 35:  b = repmat(feval(class(a), padValue), sizeB);
    36: 
    37:  % Form index vectors to subsasgn input array into output array.
0.010 2% 38:  idx = cell(numDims,1);
    39:  for k = 1:numDims
0.010 2% 40:  idx{k} = (1:sizeA(k)) + padSize(k);
    41:  end
    42: 
0.350 56% 43:  b(idx{:}) = a;

readtif     /usr/local/matlab/toolbox/matlab/iofun/private/readtif.m
Time: 0.600 s    ( 0.1%)
Calls: 180
Self time: 0.010 s    ( 0.1%)

Function: Time Calls Time/call
readtif 0.600   180 0.00333333
 
Parent functions:
imread 180  
 
Child functions:
rtifc 0.590 98.3% 180 0.00327778
nargchk 0.000 0.0% 180 0.00000000


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

    24: 
0.600 100% 25:  [X,map] = rtifc(filename, index);
    26:  map = double(map)/65535;

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

Function: Time Calls Time/call
rtifc 0.590   180 0.00327778
 
Parent functions:
readtif 180  
 
Child functions:
none



unique     /usr/local/matlab/toolbox/matlab/ops/unique.m
Time: 0.430 s    ( 0.1%)
Calls: 360
Self time: 0.140 s    ( 0.1%)

Function: Time Calls Time/call
unique 0.430   360 0.00119444
 
Parent functions:
convhull 180  
delaunay 180  
 
Child functions:
sortrows 0.290 67.4% 180 0.00161111


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

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

iscellstr     /usr/local/matlab/toolbox/matlab/strfun/iscellstr.m
Time: 0.380 s    ( 0.1%)
Calls: 15660
Self time: 0.370 s    ( 0.1%)

Function: Time Calls Time/call
iscellstr 0.380   15660 0.00002427
 
Parent functions:
cellstr 14580  
cell/strmatch 1080  
 
Child functions:
cellfun 0.010 2.6% 540 0.00001852


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

    11: 
0.150 39% 12:  if isa(s,'cell'),
0.010 3% 13:  res = cellfun('isclass',s,'char');
    14:  tf = all(res(:));
    15:  else
0.130 34% 16:  tf = logical(0);
0.030 8% 17:  end

intline     /usr/local/matlab/toolbox/images/images/private/intline.m
Time: 0.370 s    ( 0.1%)
Calls: 2199
Self time: 0.280 s    ( 0.1%)

Function: Time Calls Time/call
intline 0.370   2199 0.00016826
 
Parent functions:
roipoly 2199  
 
Child functions:
flipud 0.090 24.3% 2112 0.00004261


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

    12: 
0.020 5% 13:  dx = abs(x2 - x1);
0.030 8% 14:  dy = abs(y2 - y1);
    15: 
    16:  % Check for degenerate case.
0.020 5% 17:  if ((dx == 0) & (dy == 0))
    18:  x = x1;
 
    23:  flip = 0;
0.030 8% 24:  if (dx >= dy)
    25:  if (x1 > x2)
 
    31:  m = (y2 - y1)/(x2 - x1);
0.030 8% 32:  x = (x1:x2).';
0.010 3% 33:  y = round(y1 + m*(x - x1));
    34:  else
 
    42:  y = (y1:y2).';
0.020 5% 43:  x = round(x1 + m*(y - y1));
    44:  end
    45: 
0.010 3% 46:  if (flip)
0.050 14% 47:  x = flipud(x);
0.080 22% 48:  y = flipud(y);
    49:  end

sortrows     /usr/local/matlab/toolbox/matlab/datafun/sortrows.m
Time: 0.310 s    ( 0.1%)
Calls: 186
Self time: 0.310 s    ( 0.1%)

Function: Time Calls Time/call
sortrows 0.310   186 0.00166667
 
Parent functions:
unique 180  
cell/sort 6  
 
Child functions:
none


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

    26:  if m>0
0.020 6% 27:  ndx = (1:m)';
    28:  else
 
    32:  for i=length(col):-1:1,
0.230 74% 33:  [v,ind] = sort(x(ndx,col(i)));
0.040 13% 34:  ndx = ndx(ind);
    35:  end
0.020 6% 36:  y = x(ndx,:);

hist     /usr/local/matlab/toolbox/matlab/datafun/hist.m
Time: 0.250 s    ( 0.1%)
Calls: 360
Self time: 0.210 s    ( 0.1%)

Function: Time Calls Time/call
hist 0.250   360 0.00069444
 
Parent functions:
ml_imgedgefeatures 360  
 
Child functions:
histc 0.040 16.0% 360 0.00011111


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

    44:  if length(x) == 1
0.050 20% 45:  miny = min(min(y));
0.030 12% 46:  maxy = max(max(y));
    47:  if miny == maxy,
 
    53:  xx(length(xx)) = maxy;
0.010 4% 54:  x = xx(1:length(xx)-1) + binwidth/2;
    55:  else
 
    65:  % Shift bins so the internal is ( ] instead of [ ).
0.020 8% 66:  xx = full(real(xx)); y = full(real(y)); % For compatibility
0.010 4% 67:  bins = xx + max(eps,eps*abs(xx));
0.050 20% 68:  nn = histc(y,[-inf bins],1);
    69: 
 
    71:  nn(2,:) = nn(2,:)+nn(1,:);
0.010 4% 72:  nn(end-1,:) = nn(end-1,:)+nn(end,:);
0.010 4% 73:  nn = nn(2:end-1,:);
    74:  end
    75: 
0.020 8% 76:  if nargout == 0
    77:  bar(x,nn,'hist');
 
    79:  if min(size(y))==1, % Return row vectors if possible.
0.010 4% 80:  no = nn';
    81:  xo = x;

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

Function: Time Calls Time/call
bwlabel1 0.200   180 0.00111111
 
Parent functions:
bwlabel 180  
 
Child functions:
none



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

Function: Time Calls Time/call
edge/parse_inputs 0.200   180 0.00111111
 
Parent functions:
edge 180  
 
Child functions:
cell/strmatch 0.100 50.0% 360 0.00027778
nargchk 0.010 5.0% 180 0.00005556
isrgb 0.000 0.0% 180 0.00000000


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

    490: 
0.020 10% 491:  error(nargchk(1,4,nargin));
    492: 
 
    511:  for i = 2:nargin
0.020 10% 512:  if ischar(varargin{i})
0.020 10% 513:  str = lower(varargin{i});
0.030 15% 514:  j = strmatch(str,methods);
0.070 35% 515:  k = strmatch(str,directions);
    516:  if ~isempty(j)
 
    526:  else
0.010 5% 527:  nonstr = [nonstr i];
    528:  end
 
    549:  Sigma = 1.0;          % Default Std dev of gaussian for canny
0.010 5% 550:  threshSpecified = 0;  % Threshold is not yet specified
    551:  for i = nonstr
 
    630: 
0.010 5% 631:  if isrgb(I)

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

Function: Time Calls Time/call
bwfillc 0.170   180 0.00094444
 
Parent functions:
bwfill 180  
 
Child functions:
none



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

Function: Time Calls Time/call
cell/strmatch 0.150   540 0.00027778
 
Parent functions:
edge/parse_inputs 360  
imfeature/ParseInputs 180  
 
Child functions:
strmatch 0.050 33.3% 540 0.00009259
nargchk 0.040 26.7% 540 0.00007407
iscellstr 0.030 20.0% 1080 0.00002778


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

    9: 
0.040 27% 10:  error(nargchk(2,3,nargin));
    11:  if isempty(strs), out = []; return; end
0.020 13% 12:  if iscellstr(str), str = char(str); end
0.020 13% 13:  if iscellstr(strs), strs = char(strs); end
    14: 
 
    17:  end
0.010 7% 18:  if (nargin==3) & ~ischar(flag)
    19:  error('FLAG must be a string.');
 
    22:  if nargin==2,
0.050 33% 23:  out = strmatch(str,strs);

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

Function: Time Calls Time/call
tcdf 0.150   65 0.00230769
 
Parent functions:
ttest2 65  
 
Child functions:
betainc 0.140 93.3% 65 0.00215385
distchck 0.000 0.0% 65 0.00000000


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

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

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

Function: Time Calls Time/call
betapdf 0.140   461 0.00030369
 
Parent functions:
betainv 461  
 
Child functions:
distchck 0.050 35.7% 461 0.00010846
betaln 0.010 7.1% 461 0.00002169


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

    19: 
0.050 36% 20:  [errorcode x a b] = distchck(3,x,a,b);
    21: 
 
    26:  % Initialize Y to zero.
0.010 7% 27:  y = zeros(size(x));
    28: 
 
    37:  % Required for non-IEEE machines.
0.010 7% 38:  k2 = find((x == 0 & a < 1) | (x == 1 & b < 1));
0.010 7% 39:  if any(k2)
    40:  tmp = Inf;
 
    44:  % Return the beta density function for valid parameters.
0.010 7% 45:  k = find(~(a <= 0 | b <= 0 | x <= 0 | x >= 1));
0.010 7% 46:  if any(k)
    47:  %    y(k) = x(k) .^ (a(k) - 1) .* (1 - x(k)) .^ (b(k) - 1) ./ beta(a(k),b(k));
0.020 14% 48:  tmp(k) = (a(k) - 1).*log(x(k)) + (b(k) - 1).*log((1 - x(k))) - betaln(a(k),b(k));
0.010 7% 49:  y(k) = exp(tmp(k));
0.010 7% 50:  end

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

Function: Time Calls Time/call
distchck 0.130   1119 0.00011618
 
Parent functions:
tinv 65  
tcdf 65  
betapdf 461  
betacdf 461  
betainv 66  
finv 1  
 
Child functions:
none


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

    9:  n = nargout-1;
0.020 15% 10:  varargout = cell(1,n);
    11: 
 
    20:  for j=1:n
0.030 23% 21:  s = size(varargin{j});
0.010 8% 22:  sz{j} = s;
0.030 23% 23:  isscalar(j) = (prod(s) == 1);
0.020 15% 24:  varargout{j} = varargin{j};
    25:  end

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

Function: Time Calls Time/call
ml_file_check 0.120   6 0.02000000
 
Parent functions:
ml_calcfeat 6  
 
Child functions:
isdir 0.040 33.3% 546 0.00007326
cell/sort 0.020 16.7% 6 0.00333333
ml_dot_check 0.020 16.7% 6 0.00333333
ml_slash_check 0.000 0.0% 6 0.00000000
deal 0.000 0.0% 6 0.00000000
pwd 0.000 0.0% 12 0.00000000


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

    39: 
0.020 17% 40:  direc = dir(old_dir); 
    41:  [files{1:length(direc),1}] = deal(direc.name);
0.040 33% 42:  files = sort(ml_dot_check(files));
    43:  new_dir = ml_slash_check(newDir);
    44:  for i = 1:length(files)
0.060 50% 45:  if (~isdir(files{i}))
    46:  new_files(i) = files(i);

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

Function: Time Calls Time/call
strmatch 0.120   1080 0.00011111
 
Parent functions:
cell/strmatch 540  
bwmorph 540  
 
Child functions:
none


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

    24: 
0.020 17% 25:  [m,n] = size(strs);
0.020 17% 26:  len = length(str);
    27:  null = setstr(0); space = ' ';
 
    35:  % warnings and error below
0.020 17% 36:  if len==0
    37:  str = reshape(str,1,len);
 
    55:  end
0.050 42% 56:  i = find(~sum((strs(:,1:len) ~= str(ones(m,1),:)),2));
0.010 8% 57:  end

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

Function: Time Calls Time/call
bweuler 0.110   180 0.00061111
 
Parent functions:
imfeature/ComputeEulerNumber 180  
 
Child functions:
applylut 0.060 54.5% 180 0.00033333
repmat 0.010 9.1% 180 0.00005556


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

    44:  % Need to zero-pad the input
0.010 9% 45:  b = repmat(uint8(0),size(a)+2);
    46:  b(2:end-1,2:end-1) = a;
    47: 
0.090 82% 48:  weights = applylut(b,lut);
0.010 9% 49:  e = (sum(weights(:)) - 2*prod(size(b))) / 4;

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

Function: Time Calls Time/call
imfeature/ParseInputs 0.110   180 0.00061111
 
Parent functions:
imfeature 180  
 
Child functions:
cell/strmatch 0.050 45.5% 180 0.00027778
isnumeric 0.010 9.1% 180 0.00005556
iscell 0.000 0.0% 540 0.00000000


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

    694:  % Check for trailing connectivity argument; strip it off if present.
0.010 9% 695:  if (isequal(varargin{end},4) | isequal(varargin{end},8))
    696:  n = varargin{end};
 
    701:  L = varargin{1};
0.020 18% 702:  if (~isnumeric(L))
    703:  msg = 'Invalid input.';
 
    723: 
0.010 9% 724:  officialStatsL = lower(officialStats);
    725: 
 
    732: 
0.070 64% 733:  idx = strmatch(lower(list{k}), officialStatsL);
    734:  if (isempty(idx))

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

Function: Time Calls Time/call
nargchk 0.100   2702 0.00003701
 
Parent functions:
edge/parse_inputs 180  
bwperim 180  
axes2pix 360  
cell/strmatch 540  
filter2 540  
bwmorph 540  
readtif 180  
imftype 180  
addpath 2  
 
Child functions:
none


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

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

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

Function: Time Calls Time/call
ml_hotel 0.100   1 0.10000000
 
Parent functions:
ml_compfeat 1  
 
Child functions:
finv 0.040 40.0% 1 0.04000000
cov 0.000 0.0% 2 0.00000000
std 0.000 0.0% 1 0.00000000
mean 0.000 0.0% 3 0.00000000


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

    41:  for num=1:size(matrix1,1)-1
0.010 10% 42:  meanall1 = [meanall1;meanallsingle];
    43:  end
 
    48: 
0.010 10% 49:  stdall = std([matrix1;matrix2]); % standard deviation for two matrices
    50:  zmatrix1 = (matrix1 - meanall1);
 
    58:  for i=1:size(zmatrix2,2)
0.010 10% 59:  zmatrix2(1:end,i) = zmatrix2(1:end,i)/stdall(1,i);
    60:  end
 
    68:  diff = mean1 - mean2;
0.010 10% 69:  cov1 = cov(zmatrix1);
    70:  cov2 = cov(zmatrix2);
 
    79:  deg1 = size(zmatrix1,2);
0.010 10% 80:  deg2 = (n1 + n2 - deg1 -1);
0.050 50% 81:  crit = finv((1-ttsig),deg1,deg2);
    82:  if (F > crit)

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

Function: Time Calls Time/call
linspace 0.090   540 0.00016667
 
Parent functions:
imhist 540  
 
Child functions:
none


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

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

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

Function: Time Calls Time/call
imftype 0.090   180 0.00050000
 
Parent functions:
imread 180  
 
Child functions:
imftype/istif 0.050 55.6% 180 0.00027778
nargchk 0.000 0.0% 180 0.00000000


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

    23: 
0.010 11% 24:  idx = find(filename == '.');
    25:  if (~isempty(idx))
 
    33:  if (~isempty(extension))
0.010 11% 34:  switch extension
    35:  case 'bmp'
 
    59:  case {'tiff', 'tif'}
0.050 56% 60:  formatFound = istif(filename);
    61:  if (formatFound)
    62:  format = 'tif';
0.010 11% 63:  end
    64: 
 
    156: 
0.010 11% 157:  if (~formatFound)
    158:  formatFound = isico(filename);

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

Function: Time Calls Time/call
flipud 0.090   2112 0.00004261
 
Parent functions:
intline 2112  
 
Child functions:
none


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

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

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

Function: Time Calls Time/call
flipdim 0.090   180 0.00050000
 
Parent functions:
ml_nihthreshold 180  
 
Child functions:
none


100% 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.010 11% 17:  dim = floor(dim);
0.030 33% 18:  siz = [size(x) ones(1,max(dim-ndims(x),0))];
0.010 11% 19:  v = cell(size(siz));
0.010 11% 20:  for i=1:length(siz),
    21:  v(i) = {':'};
    22:  end
0.010 11% 23:  v(dim) = {siz(dim):-1:1}; % Flip dimension v
0.020 22% 24:  y = x(v{:}); % "Index with v" and flip dimension v.

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

Function: Time Calls Time/call
bwfill/ParseInputs 0.080   180 0.00044444
 
Parent functions:
bwfill 180  
 
Child functions:
none


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

    317:  I = varargin{1};
0.020 25% 318:  xdata = [1 size(I,2)];
    319:  ydata = [1 size(I,1)];
 
    321:  yi = varargin{3};
0.020 25% 322:  r = round(yi);
0.010 12% 323:  c = round(xi);
    324:  style = varargin{4};
 
    359: 
0.030 37% 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.080 s    ( 0.0%)
Calls: 490
Self time: 0.060 s    ( 0.0%)

Function: Time Calls Time/call
var 0.080   490 0.00016327
 
Parent functions:
ttest2 130  
ml_imgfeatures 360  
 
Child functions:
mean 0.020 25.0% 460 0.00004348


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

    37: 
0.010 12% 38:  if min(size(x)) == 1
0.010 13% 39:  x = x(:);
    40:  end
 
    43: 
0.010 12% 44:  if isempty(x)
    45:  y = NaN;
 
    48: 
0.010 12% 49:  if m == 1
    50:  y = 0;
 
    79:  else
0.020 25% 80:  avg = mean(x);
    81:  end
 
    83:  if n == 1
0.010 12% 84:  cx = x - avg; 
0.010 12% 85:  y = sum((conj(cx).*cx).*w);

mean     /usr/local/matlab/toolbox/matlab/datafun/mean.m
Time: 0.070 s    ( 0.0%)
Calls: 1313
Self time: 0.070 s    ( 0.0%)

Function: Time Calls Time/call
mean 0.070   1313 0.00005331
 
Parent functions:
ttest2 130  
ml_hotel 3  
convhull 360  
var 460  
ml_imgfeatures 360  
 
Child functions:
none


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

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

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

Function: Time Calls Time/call
imfeature/ComputeBoundingBox 0.070   180 0.00038889
 
Parent functions:
imfeature/ComputeImage 180  
 
Child functions:
imfeature/ComputePixelList 0.000 0.0% 180 0.00000000


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

    425: 
0.010 14% 426:  for k = 1:length(stats)
    427:  list = stats(k).PixelList;
 
    432:  cols = list(:,1);
0.020 29% 433:  minR = min(rows) - 0.5;
0.010 14% 434:  maxR = max(rows) + 0.5;
    435:  minC = min(cols) - 0.5;
0.010 14% 436:  maxC = max(cols) + 0.5;
0.010 14% 437:  stats(k).BoundingBox = [minC minR (maxC-minC) (maxR-minR)];
    438:  end
    439:  end
0.010 14% 440:  end

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

Function: Time Calls Time/call
imhist/parse_inputs 0.070   540 0.00012963
 
Parent functions:
imhist 540  
 
Child functions:
none


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

    150: 
0.010 14% 151:  switch nargin
    152:  case 0
 
    191:  case 2
0.010 14% 192:  a = varargin{1};
0.030 43% 193:  if (prod(size(varargin{2})) == 1)
    194:  % IMHIST(I, N)
 
    217:  n = varargin{2};
0.010 14% 218:  isScaled = 1;
    219:  top = 1;

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

Function: Time Calls Time/call
fcnchk 0.060   180 0.00033333
 
Parent functions:
roifilt2 180  
 
Child functions:
isobject 0.010 16.7% 180 0.00005556


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

    29:  nin = nargin;
0.010 17% 30:  if (nin>1) & strcmp(varargin{end},'vectorized')
    31:  vectorizing = 1;
 
    56:  % is it a matlab object with a feval method?
0.030 50% 57:  elseif isobject(fun)
    58:  % delay the methods call unless we know it is an object to avoid runtime error for compiler
 
    71:  f = '';
0.020 33% 72:  msg = ['FUN must be a function, a valid string expression, ', ...
    73:  sprintf('\n'),'or an inline function object.'];

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

Function: Time Calls Time/call
bwselect/ParseInputs 0.060   180 0.00033333
 
Parent functions:
bwselect 180  
 
Child functions:
none


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

    219:  yi = varargin{3};
0.010 17% 220:  r = round(yi);
0.010 17% 221:  c = round(xi);
    222:  style = varargin{4};
 
    254:  % Force input input image to be binary.
0.010 17% 255:  if ~isa(I, 'uint8')
    256:  if ~isa(I, 'uint16')
 
    262: 
0.030 50% 263:  badPix = find((r < 1) | (r > size(I,1)) | ...
    264:  (c < 1) | (c > size(I,2)));

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

Function: Time Calls Time/call
conv 0.060   180 0.00033333
 
Parent functions:
edge 180  
 
Child functions:
none


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

    16: 
0.030 50% 17:  if na ~= prod(size(a)) | nb ~= prod(size(b))
    18:  error('A and B must be vectors.');
 
    36:  end
0.020 33% 37:  c = filter(a, 1, b);
    38:  end

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

Function: Time Calls Time/call
imftype/istif 0.050   180 0.00027778
 
Parent functions:
imftype 180  
 
Child functions:
none


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

    258: 
0.020 40% 259:  fid = fopen(filename, 'r', 'ieee-le');
    260:  if (fid < 0)
 
    262:  else
0.010 20% 263:  sig = fread(fid, 4, 'uint8');
    264:  fclose(fid);
0.010 20% 265:  tf = isequal(sig, [73; 73; 42; 0]) | isequal(sig, [77; 77; 0; 42]);
    266:  end

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

Function: Time Calls Time/call
isdir 0.040   546 0.00007326
 
Parent functions:
ml_file_check 546  
 
Child functions:
none


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

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

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

Function: Time Calls Time/call
finv 0.040   1 0.04000000
 
Parent functions:
ml_hotel 1  
 
Child functions:
betainv 0.040 100.0% 1 0.04000000
distchck 0.000 0.0% 1 0.00000000


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

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

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

Function: Time Calls Time/call
histc 0.040   360 0.00011111
 
Parent functions:
hist 360  
 
Child functions:
none



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

Function: Time Calls Time/call
axes2pix 0.040   360 0.00011111
 
Parent functions:
roipoly 360  
 
Child functions:
nargchk 0.000 0.0% 360 0.00000000


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

    15:  % Error checking on input arguments.
0.010 25% 16:  error_str = nargchk(3, 3, nargin);
    17:  if (~ isempty(error_str));
 
    19:  end
0.010 25% 20:  if (max(size(dim)) ~= 1)
    21:  error('First argument must be a scalar.');
 
    33:  end
0.010 25% 34:  xslope = (dim - 1) / (xlast - xfirst);
    35:  if ((xslope == 1) & (xfirst == 1))

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

Function: Time Calls Time/call
xychk 0.030   180 0.00016667
 
Parent functions:
convhull 180  
 
Child functions:
none


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

    15: 
0.010 33% 16:  if nargin==0 | nargin>3, error('Wrong number of input arguments.'); end
    17: 
0.010 33% 18:  nin = nargin; msg = [];
    19: 
0.010 33% 20:  if nin > 1 & isstr(varargin{end}),
    21:  plot_flag = 1;

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

Function: Time Calls Time/call
impad/ParseInputs 0.030   180 0.00016667
 
Parent functions:
impad 180  
 
Child functions:
isnumeric 0.000 0.0% 180 0.00000000


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

    108: 
0.010 33% 109:  a = [];
    110:  padSize = [];
 
    122: 
0.010 33% 123:  if (~isnumeric(a))
    124:  msg = 'Invalid input image';
 
    128:  if (nargin >= 3)
0.010 33% 129:  if (ischar(varargin{3}))
    130:  % IMPAD(A,padSize,'method',params...)

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

Function: Time Calls Time/call
roipoly/parse_inputs 0.030   180 0.00016667
 
Parent functions:
roipoly 180  
 
Child functions:
none


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

    241:  yi = varargin{3}(:);
0.010 33% 242:  x = [1 ncols]; y = [1 nrows];
    243: 
 
    283:  if isa(y, 'uint8'), y=double(y); end
0.010 33% 284:  if isa(nrows, 'uint8'), nrows=double(nrows); end
0.010 33% 285:  if isa(ncols, 'uint8'), ncols=double(ncols); end

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

Function: Time Calls Time/call
imread/parse_inputs 0.030   180 0.00016667
 
Parent functions:
imread 180  
 
Child functions:
none


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

    275:  filename = '';
0.010 33% 276:  format = '';
    277:  extraArgs = {};
 
    279: 
0.010 33% 280:  formatStrings = ['bmp'
    281:  'xwd'
 
    295: 
0.010 33% 296:  case 1
    297:  filename = varargin{1};

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

Function: Time Calls Time/call
ml_report_writer 0.020   1 0.02000000
 
Parent functions:
ml_simec 1  
 
Child functions:
datestr 0.010 50.0% 1 0.01000000
num2str 0.000 0.0% 1 0.00000000


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

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

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

Function: Time Calls Time/call
cell/sort 0.020   6 0.00333333
 
Parent functions:
ml_file_check 6  
 
Child functions:
sortrows 0.020 100.0% 6 0.00333333


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

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

addpath     /usr/local/matlab/toolbox/matlab/general/addpath.m
Time: 0.020 s    ( 0.0%)
Calls: 2
Self time: 0.000 s    ( 0.0%)

Function: Time Calls Time/call
addpath 0.020   2 0.01000000
 
Parent functions:
ml_simec_demo 2  
 
Child functions:
path 0.010 50.0% 4 0.00250000
deblank 0.010 50.0% 2 0.00500000
pathsep 0.000 0.0% 4 0.00000000
nargchk 0.000 0.0% 2 0.00000000


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

    54:  next = varargin{i};
0.010 50% 55:  if ~isempty(deblank(next))
    56:  if ~isstr(next)
 
    87:  else
0.010 50% 88:  path( p, path );
    89:  end

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

Function: Time Calls Time/call
ml_confid_writer 0.020   1 0.02000000
 
Parent functions:
ml_simec 1  
 
Child functions:
strcat 0.010 50.0% 1 0.01000000
datestr 0.000 0.0% 1 0.00000000


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

    30:  st_time = datestr(id/10000);
0.010 50% 31:  fprintf(fid, strcat(' for SImEC session started on ', st_time));
    32:  end
 
    56:  fprintf(fid, '\n');
0.010 50% 57:  status = fclose(fid);

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

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



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

Function: Time Calls Time/call
isbw 0.020   180 0.00011111
 
Parent functions:
ml_hullfeatures 180  
 
Child functions:
none


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

    28: 
0.010 50% 29:  y = (ndims(x)==2) & (~isempty(x));
0.010 50% 30:  if isa(x, 'double') & y
    31:  % At first just test a small chunk to get a possible quick negative  

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

Function: Time Calls Time/call
rot90 0.020   540 0.00003704
 
Parent functions:
filter2 540  
 
Child functions:
none


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

    17: 
0.010 50% 18:  if ndims(A)~=2, error('A must be a 2-D matrix.'); end
    19:  [m,n] = size(A);
 
    23:  if length(k)~=1, error('k must be a scalar.'); end
0.010 50% 24:  k = rem(k,4);
    25:  if k < 0

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

Function: Time Calls Time/call
ml_dot_check 0.020   6 0.00333333
 
Parent functions:
ml_file_check 6  
 
Child functions:
none


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

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

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

Function: Time Calls Time/call
lutthin3 0.010   180 0.00005556
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none



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

Function: Time Calls Time/call
lutthin1 0.010   180 0.00005556
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none



path     /usr/local/matlab/toolbox/matlab/general/path.m
Time: 0.010 s    ( 0.0%)
Calls: 4
Self time: 0.010 s    ( 0.0%)

Function: Time Calls Time/call
path 0.010   4 0.00250000
 
Parent functions:
addpath 4  
 
Child functions:
filesep 0.000 0.0% 4 0.00000000
pathsep 0.000 0.0% 10 0.00000000
isunix 0.000 0.0% 4 0.00000000


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

    98:  aa = a(ak(i)+1:ake(i)-1);
0.010 100% 99:  if ~casesen, aa = lower(aa); end
    100:  if ~casesen, bb = lower(bb); end

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

Function: Time Calls Time/call
datestr 0.010   2 0.00500000
 
Parent functions:
ml_confid_writer 1  
ml_report_writer 1  
 
Child functions:
mod 0.000 0.0% 4 0.00000000
datevecmx 0.000 0.0% 2 0.00000000
iscell 0.000 0.0% 2 0.00000000


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

    136:  f = '%.2d-%c%c%c-%c%.3d %.2d:%.2d:%.2d';
0.010 100% 137:  c = '0'+fix(mod(y,10000)/1000); c(y<0) = '-';
    138:  S = sprintf(f,[d,mths(mo,:),c,mod(abs(y),1000),h,min,round(s)]');

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

Function: Time Calls Time/call
strcat 0.010   4 0.00250000
 
Parent functions:
ml_confid_writer 1  
ml_simec 3  
 
Child functions:
strvcat 0.000 0.0% 4 0.00000000
deblank 0.000 0.0% 11 0.00000000


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

    29:  for i=nargin:-1:1,
0.010 100% 30:  rows(i) = size(varargin{i},1);
    31:  twod(i) = ndims(varargin{i})==2;

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

Function: Time Calls Time/call
betaln 0.010   461 0.00002169
 
Parent functions:
betapdf 461  
 
Child functions:
gammaln 0.000 0.0% 1383 0.00000000


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

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

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

Function: Time Calls Time/call
dmperm 0.010   180 0.00005556
 
Parent functions:
bwlabel 180  
 
Child functions:
none



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

Function: Time Calls Time/call
cellfun 0.010   540 0.00001852
 
Parent functions:
iscellstr 540  
 
Child functions:
none



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

Function: Time Calls Time/call
isnumeric 0.010   360 0.00002778
 
Parent functions:
impad/ParseInputs 180  
imfeature/ParseInputs 180  
 
Child functions:
none


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

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

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

Function: Time Calls Time/call
isobject 0.010   180 0.00005556
 
Parent functions:
fcnchk 180  
 
Child functions:
none



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

Function: Time Calls Time/call
profile 0.000   1 0.00000000
 
Parent functions:
none
 
Child functions:
none



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

Function: Time Calls Time/call
datevecmx 0.000   2 0.00000000
 
Parent functions:
datestr 2  
 
Child functions:
none



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

Function: Time Calls Time/call
num2str/lefttrim 0.000   4 0.00000000
 
Parent functions:
num2str 4  
 
Child functions:
none



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

Function: Time Calls Time/call
strvcat 0.000   8 0.00000000
 
Parent functions:
strcat 4  
num2str 4  
 
Child functions:
none



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

Function: Time Calls Time/call
log10 0.000   4 0.00000000
 
Parent functions:
num2str 4  
 
Child functions:
none



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

Function: Time Calls Time/call
num2str 0.000   4 0.00000000
 
Parent functions:
ml_report_writer 1  
ml_simec 3  
 
Child functions:
deblank 0.000 0.0% 4 0.00000000
num2str/lefttrim 0.000 0.0% 4 0.00000000
strvcat 0.000 0.0% 4 0.00000000
log10 0.000 0.0% 4 0.00000000



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

Function: Time Calls Time/call
cov 0.000   2 0.00000000
 
Parent functions:
ml_hotel 2  
 
Child functions:
repmat 0.000 0.0% 2 0.00000000



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

Function: Time Calls Time/call
std 0.000   1 0.00000000
 
Parent functions:
ml_hotel 1  
 
Child functions:
repmat 0.000 0.0% 1 0.00000000



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

Function: Time Calls Time/call
lutthin4 0.000   180 0.00000000
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none



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

Function: Time Calls Time/call
lutthin2 0.000   180 0.00000000
 
Parent functions:
bwmorph/thin 180  
 
Child functions:
none



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

Function: Time Calls Time/call
isrgb 0.000   180 0.00000000
 
Parent functions:
edge/parse_inputs 180  
 
Child functions:
none



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

Function: Time Calls Time/call
lutper4 0.000   180 0.00000000
 
Parent functions:
bwmorph/perim4 180  
 
Child functions:
none



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

Function: Time Calls Time/call
angle 0.000   180 0.00000000
 
Parent functions:
convhull 180  
 
Child functions:
none



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

Function: Time Calls Time/call
iscell 0.000   542 0.00000000
 
Parent functions:
datestr 2  
imfeature/ParseInputs 540  
 
Child functions:
none



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

Function: Time Calls Time/call
lutmajority 0.000   180 0.00000000
 
Parent functions:
bwmorph/majority 180  
 
Child functions:
none



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

Function: Time Calls Time/call
ml_slash_check 0.000   6 0.00000000
 
Parent functions:
ml_file_check 6  
 
Child functions:
filesep 0.000 0.0% 6 0.00000000



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

Function: Time Calls Time/call
deal 0.000   6 0.00000000
 
Parent functions:
ml_file_check 6  
 
Child functions:
none



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

Function: Time Calls Time/call
pwd 0.000   12 0.00000000
 
Parent functions:
ml_file_check 12  
 
Child functions:
none



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

Function: Time Calls Time/call
datenummx 0.000   1 0.00000000
 
Parent functions:
datenum 1  
 
Child functions:
none



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

Function: Time Calls Time/call
datenum 0.000   1 0.00000000
 
Parent functions:
now 1  
 
Child functions:
datenummx 0.000 0.0% 1 0.00000000



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

Function: Time Calls Time/call
now 0.000   1 0.00000000
 
Parent functions:
ml_simec 1  
 
Child functions:
datenum 0.000 0.0% 1 0.00000000



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

Function: Time Calls Time/call
filesep 0.000   10 0.00000000
 
Parent functions:
ml_slash_check 6  
path 4  
 
Child functions:
none



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

Function: Time Calls Time/call
isunix 0.000   18 0.00000000
 
Parent functions:
path 4  
pathsep 14  
 
Child functions:
none



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

Function: Time Calls Time/call
pathsep 0.000   14 0.00000000
 
Parent functions:
path 10  
addpath 4  
 
Child functions:
isunix 0.000 0.0% 14 0.00000000