This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
region_seg | function | 404 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
247 | if(c==3) | 404 | 0 s | 0% |  |
246 | if(isfloat(img)) % image is a ... | 404 | 0 s | 0% |  |
245 | [dimy, dimx, c] = size(img); | 404 | 0 s | 0% |  |
All other lines | | | 0.010 s | 100.0% |  |
Totals | | | 0.010 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Line number | Message |
245 | The value assigned here to 'dimy' appears to be unused. Consider replacing it by ~. |
245 | The value assigned here to 'dimx' appears to be unused. Consider replacing it by ~. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 11 |
Code lines that did run | 3 |
Code lines that did not run | 8 |
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.