This is a static copy of a profile report

Home

region_seg>im2graydouble (404 calls, 0.010 sec)
Generated 05-Nov-2014 07:52:51 using cpu time.
subfunction in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/preprocessing/3D/ashariff/region_seg.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
region_segfunction404
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
247
if(c==3)
4040 s0%
246
if(isfloat(img)) % image is a ...
4040 s0%
245
[dimy, dimx, c] = size(img);
4040 s0%
All other lines  0.010 s100.0%
Totals  0.010 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
245The value assigned here to 'dimy' appears to be unused. Consider replacing it by ~.
245The value assigned here to 'dimx' appears to be unused. Consider replacing it by ~.
Coverage results
[ Show coverage for parent directory ]
Total lines in function12
Non-code lines (comments, blank lines)1
Code lines (lines that can run)11
Code lines that did run3
Code lines that did not run8
Coverage (did run/can run)27.27 %
Function listing
   time   calls  line
244 function img = im2graydouble(img)
404 245 [dimy, dimx, c] = size(img);
404 246 if(isfloat(img)) % image is a double
404 247 if(c==3)
248 img = rgb2gray(uint8(img));
249 end
250 else % image is a int
251 if(c==3)
252 img = rgb2gray(img);
253 end
254 img = double(img);
255 end

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