This is a static copy of a profile reportHome
ml_objinimg2D (12115 calls, 0.761 sec)
Generated 05-Nov-2014 07:53:52 using cpu time.
function in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/2D/tztoolbox/ml_objinimg2D.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
ml_objs2img | function | 12115 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
37 | idx = find(obj(:,1)<1 | obj... | 12115 | 0.621 s | 81.6% |  |
38 | obj(:,1)>imgsize(1) | obj(:... | 12115 | 0.070 s | 9.2% |  |
33 | if nargin < 2 | 12115 | 0.030 s | 3.9% |  |
All other lines | | | 0.040 s | 5.3% |  |
Totals | | | 0.761 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 38 |
Non-code lines (comments, blank lines) | 33 |
Code lines (lines that can run) | 5 |
Code lines that did run | 3 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 60.00 % |
Function listing
time calls line
1 function idx = ml_objinimg2D(obj,imgsize)
2 %ML_OBJINIMG Test if an object has pixels outside of an image.
3 % IDX = ML_OBJINIMG(OBJ,IMGSIZE) returns the indices of points in the
4 % [object] or [point array] which are outside of an image with image size
5 % IMGSIZE.
6 %
7 % See also
8
9 % 15-May-2006 Initial write T. Zhao
10 % Copyright (c) Center for Bioimage Informatics, CMU
11
12 % Copyright (C) 2007 Murphy Lab
13 % Carnegie Mellon University
14 %
15 % This program is free software; you can redistribute it and/or modify
16 % it under the terms of the GNU General Public License as published
17 % by the Free Software Foundation; either version 2 of the License,
18 % or (at your option) any later version.
19 %
20 % This program is distributed in the hope that it will be useful, but
21 % WITHOUT ANY WARRANTY; without even the implied warranty of
22 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 % General Public License for more details.
24 %
25 % You should have received a copy of the GNU General Public License
26 % along with this program; if not, write to the Free Software
27 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28 % 02110-1301, USA.
29 %
30 % For additional information visit http://murphylab.web.cmu.edu or
31 % send email to murphy@cmu.edu
32
0.03 12115 33 if nargin < 2
34 error('Exactly 2 arguments are required')
35 end
36
0.62 12115 37 idx = find(obj(:,1)<1 | obj(:,2)<1 | ...
0.07 12115 38 obj(:,1)>imgsize(1) | obj(:,2)>imgsize(2));