This is a static copy of a profile report

Home

ml_rescaleImage2Cell (202 calls, 223.039 sec)
Generated 05-Nov-2014 07:53:52 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/other/ml_rescaleImage2Cell.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
find_cell_codesfunction202
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
39
segdna = tp_stretch3d(segdna, ...
202111.484 s50.0%
40
segcell = tp_stretch3d(segcell...
202111.144 s49.8%
30
segcell = uint8(segcell);
2020.190 s0.1%
33
ratio = stacknumcell/length(fi...
2020.110 s0.0%
29
segdna = uint8(segdna);
2020.080 s0.0%
All other lines  0.030 s0.0%
Totals  223.039 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
tp_stretch3dfunction404222.618 s99.8%
Self time (built-ins, overhead, etc.)  0.421 s0.2%
Totals  223.039 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function40
Non-code lines (comments, blank lines)34
Code lines (lines that can run)6
Code lines that did run6
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function [segdna, segcell] = ml_rescaleImage2Cell( segdna, segcell, stacknumcell )
2 %ML_RESCALEIMAGE2CELL
3
4 % Author: Ivan E. Cao-Berg (icaoberg@scs.cmu.edu)
5 %
6 % Copyright (C) 2012 Murphy Lab
7 % Lane Center for Computational Biology
8 % School of Computer Science
9 % Carnegie Mellon University
10 %
11 % This program is free software; you can redistribute it and/or modify
12 % it under the terms of the GNU General Public License as published
13 % by the Free Software Foundation; either version 2 of the License,
14 % or (at your option) any later version.
15 %
16 % This program is distributed in the hope that it will be useful, but
17 % WITHOUT ANY WARRANTY; without even the implied warranty of
18 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 % General Public License for more details.
20 %
21 % You should have received a copy of the GNU General Public License
22 % along with this program; if not, write to the Free Software
23 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 % 02110-1301, USA.
25 %
26 % For additional information visit http://murphylab.web.cmu.edu or
27 % send email to murphy@cmu.edu
28
0.08 202 29 segdna = uint8(segdna);
0.19 202 30 segcell = uint8(segcell);
31
32 % find ratio of desired height to current number of non-blank slices in the dna image
0.11 202 33 ratio = stacknumcell/length(find(sum(sum(segcell))>=0));
34
35 %find new number of slices for both cell and dna images
36 %assumes segcell has already been trimmed to remove blank slices
0.01 202 37 newsize = round(ratio*size(segcell,3));
38
111.48 202 39 segdna = tp_stretch3d(segdna, newsize);
111.14 202 40 segcell = tp_stretch3d(segcell, newsize);