iRoCS Toolbox  1.1.0
AttachIRoCSSCTToCellSegmentationWorker.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2015 Thorsten Falk
4  *
5  * Image Analysis Lab, University of Freiburg, Germany
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  **************************************************************************/
22 
23 #ifndef ATTACHIROCSSCTTOCELLSEGMENTATIONWORKER_HH
24 #define ATTACHIROCSSCTTOCELLSEGMENTATIONWORKER_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
31 
32 #include <libArrayToolbox/Array.hh>
34 
35 namespace iRoCS
36 {
37 
38  void boundaryDetection(
39  blitz::Array<bool,3> const &segmentation, blitz::Array<bool,3> &border);
40 
41  void extractPosition(
42  blitz::Array<bool,3> &shell,
43  std::vector< blitz::TinyVector<double,3> > &shellPoints);
44 
45  void attachIRoCS(
47  int backgroundLabel, int downSampleRatio, double segmentLength,
48  double margin,
49  blitz::TinyVector<double,3> const &posQC =
50  blitz::TinyVector<double,3>(-std::numeric_limits<double>::infinity()),
51  blitz::TinyVector<double,3> const &xDirection =
52  blitz::TinyVector<double,3>(-std::numeric_limits<double>::infinity()),
53  std::string const &debugFileName = "",
54  atb::Array<double,3> *l = NULL, atb::Array<double,3> *r = NULL,
55  atb::Array<double,3> *p = NULL, iRoCS::ProgressReporter *pr = NULL);
56 
57 }
58 
59 #endif
Array class derived from blitz++ Arrays for handling microscopic datasets with associated element siz...
void extractPosition(blitz::Array< bool, 3 > &shell, std::vector< blitz::TinyVector< double, 3 > > &shellPoints)
void boundaryDetection(blitz::Array< bool, 3 > const &segmentation, blitz::Array< bool, 3 > &border)
void attachIRoCS(ShellCoordinateTransform &sct, atb::Array< int, 3 > const &segmentation, int backgroundLabel, int downSampleRatio, double segmentLength, double margin, blitz::TinyVector< double, 3 > const &posQC=blitz::TinyVector< double, 3 >(-std::numeric_limits< double >::infinity()), blitz::TinyVector< double, 3 > const &xDirection=blitz::TinyVector< double, 3 >(-std::numeric_limits< double >::infinity()), std::string const &debugFileName="", atb::Array< double, 3 > *l=NULL, atb::Array< double, 3 > *r=NULL, atb::Array< double, 3 > *p=NULL, iRoCS::ProgressReporter *pr=NULL)