GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
QCellPreprocess.h
Go to the documentation of this file.
1 /*=========================================================================
2  Author: $Author$ // Author of last commit
3  Version: $Rev$ // Revision of last commit
4  Date: $Date$ // Date of last commit
5 =========================================================================*/
6 
7 /*=========================================================================
8  Authors: The GoFigure Dev. Team.
9  at Megason Lab, Systems biology, Harvard Medical school, 2009
10 
11  Copyright (c) 2009, President and Fellows of Harvard College.
12  All rights reserved.
13 
14  Redistribution and use in source and binary forms, with or without
15  modification, are permitted provided that the following conditions are met:
16 
17  Redistributions of source code must retain the above copyright notice,
18  this list of conditions and the following disclaimer.
19  Redistributions in binary form must reproduce the above copyright notice,
20  this list of conditions and the following disclaimer in the documentation
21  and/or other materials provided with the distribution.
22  Neither the name of the President and Fellows of Harvard College
23  nor the names of its contributors may be used to endorse or promote
24  products derived from this software without specific prior written
25  permission.
26 
27  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
29  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
31  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
32  OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
33  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
34  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
36  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 
39 =========================================================================*/
40 #ifndef __QCellPreprocess_h
41 #define __QCellPreprocess_h
42 
43 #include "vtkSmartPointer.h"
44 #include "vtkImageData.h"
45 #include "vtkImageImport.h"
46 #include "vtkImageExport.h"
47 
48 #include "itkCellPreprocess.h"
49 #include "itkVTKImageExport.h"
50 #include "itkVTKImageImport.h"
51 
52 #include "ui_CellPreprocess.h"
53 
54 #include <vnl/vnl_matrix.h>
55 #include <vnl/vnl_vector.h>
56 #include <map>
57 #include <string>
58 
59 class QCellPreprocess:public QWidget,
60  private Ui::CellPreprocessWidget
61 {
62  Q_OBJECT
63 public:
64  typedef itk::Image< unsigned char, 3 > InputImageType;
65  typedef InputImageType::Pointer InputImagePointer;
68  typedef itk::VTKImageExport< InputImageType > ImageExportType;
69  typedef ImageExportType::Pointer ImageExportPointer;
70  typedef itk::VTKImageImport< InputImageType > ImageImportType;
71  typedef ImageImportType::Pointer ImageImportPointer;
72 
73  explicit QCellPreprocess(QWidget *iParent = 0);
74  virtual ~QCellPreprocess(){}
75 
76  void SetMembraneDataType(bool x);
77 
78  void SetInput(std::vector< vtkImageData * > & iImg);
79 
80  std::vector< vtkImageData * > GetOutput();
81 
82 signals:
83  void Done(std::vector< vtkImageData * > );
84 
85 protected slots :
87 
89 
91 
93 
95 
97 
98 protected:
99  void GetParameters();
100 
101  void Preprocess(unsigned int i);
102 
103  double m_CellRadius;
105 
106  std::vector< vtkImageData * > m_VTKInput;
107  std::vector< vtkImageData * > m_VTKOutput;
108 private:
111 };
112 
113 #endif
PreprocessFilterType::Pointer PreprocessFilterPointer
void on_RadiusSlider_sliderReleased()
void SetMembraneDataType(bool x)
SmartPointer< Self > Pointer
ImageExportType::Pointer ImageExportPointer
std::vector< vtkImageData * > m_VTKOutput
void on_singleChRadioButton_clicked()
int x() const
std::vector< vtkImageData * > GetOutput()
itk::VTKImageExport< InputImageType > ImageExportType
void on_RadiusSpinBox_valueChanged()
void SetInput(std::vector< vtkImageData * > &iImg)
itk::VTKImageImport< InputImageType > ImageImportType
virtual ~QCellPreprocess()
void Preprocess(unsigned int i)
std::vector< vtkImageData * > m_VTKInput
void on_GlobalResetButton_clicked()
itk::Image< unsigned char, 3 > InputImageType
void Done(std::vector< vtkImageData * >)
ImageImportType::Pointer ImageImportPointer
InputImageType::Pointer InputImagePointer
void on_allChRadioButton_clicked()
void on_GlobalApplyButton_clicked()
QCellPreprocess(QWidget *iParent=0)
QCellPreprocess operator=(const QCellPreprocess &)
itk::CellPreprocess< InputImageType, InputImageType > PreprocessFilterType