This is a static copy of a profile reportHome
fixadherent (202 calls, 0.190 sec)
Generated 05-Nov-2014 07:52:57 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/fixadherent.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
preprocess | function | 202 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
39 | areas = sum(sum(segcell)); | 202 | 0.190 s | 100.0% |  |
50 | end | 202 | 0 s | 0% |  |
49 | rtop_slice = top_slice; | 202 | 0 s | 0% |  |
47 | rbot_slice = truebottom; | 202 | 0 s | 0% |  |
40 | [junk,truebottom] = max(areas)... | 202 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.190 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Line number | Message |
1 | Input argument 'bot_slice' might be unused, although a later one is used. Consider replacing it by ~. |
38 | The value assigned to variable 'top' might be unused. |
40 | The value assigned here to 'junk' appears to be unused. Consider replacing it by ~. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 50 |
Non-code lines (comments, blank lines) | 44 |
Code lines (lines that can run) | 6 |
Code lines that did run | 6 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function [rbot_slice, rtop_slice ] = fixadherent( segcell, bot_slice, top_slice )
2 %FIXADHERENT forces an adherent cell to have its largest slice on the bottom of the segmented cell
3 %
4 %Inputs:
5 % segcell = current segmented cell image
6 % bot_slice = bottom slice where signal exists
7 % top_slice = top slice where signal exists
8 %
9 %Outputs:
10 % rbot_slice = corrected bottom slice
11 % rtop_slice = corrected top slice
12
13 % Copyright (C) 2006 Murphy Lab
14 % Carnegie Mellon University
15 %
16 % This program is free software; you can redistribute it and/or modify
17 % it under the terms of the GNU General Public License as published
18 % by the Free Software Foundation; either version 2 of the License,
19 % or (at your option) any later version.
20 %
21 % This program is distributed in the hope that it will be useful, but
22 % WITHOUT ANY WARRANTY; without even the implied warranty of
23 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 % General Public License for more details.
25 %
26 % You should have received a copy of the GNU General Public License
27 % along with this program; if not, write to the Free Software
28 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
29 % 02110-1301, USA.
30 %
31 % For additional information visit http://murphylab.web.cmu.edu or
32 % send email to murphy@cmu.edu
33
34 %Modified by:
35 % March 21, 2013 D. Sullivan, added license.
36 % June 6, 2013 D. Sullivan, changed rbot_slice to match our current usage.
37
202 38 top = size(segcell,3);
0.19 202 39 areas = sum(sum(segcell));
202 40 [junk,truebottom] = max(areas);
41
42 %D. Sullivan 6/6/13, fixed rbot_slice problem
43 % I think this was correct when we pass only slices with fluorescence, but
44 % currently we pass all slices so the truebottom will have the correct
45 % indices
46 % rbot_slice = bot_slice + truebottom - 1;
202 47 rbot_slice = truebottom;
48
202 49 rtop_slice = top_slice;
202 50 end