GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
QGoSegmentationAlgo Class Referenceabstract

abstract class to be the interface between the algorithms for meshes and contours and GoFigure More...

#include <Code/GUI/lib/TraceEditing/QGoSegmentationAlgo.h>

Inheritance diagram for QGoSegmentationAlgo:
Inheritance graph
[legend]
Collaboration diagram for QGoSegmentationAlgo:
Collaboration graph
[legend]

Public Member Functions

template<class PixelType , unsigned int VImageDimension>
vtkImageData * ConvertITK2VTK (typename itk::Image< PixelType, VImageDimension >::Pointer iInput)
 
template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType,
VImageDimension >::Pointer 
ConvertVTK2ITK (vtkImageData *iInput)
 
vtkSmartPointer< vtkPolyData > DecimatePolyData (vtkSmartPointer< vtkPolyData > &iPolyData, const unsigned int &iNumberOfPoints)
 
std::vector< vtkPolyData * > ExtractPolyData (std::vector< vtkImageData * > &iInputImage, const double &iThreshold)
 
vtkSmartPointer< vtkPolyData > ExtractPolyData (vtkImageData *iInputImage, const double &iThreshold)
 
QGoAlgorithmWidgetGetAlgoWidget ()
 return the algowidget More...
 
bool GetDecimate ()
 
unsigned int GetNumberOfPoints () const
 
template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType,
VImageDimension >::Pointer 
ITKExtractROI (const std::vector< double > &iBounds, typename itk::Image< PixelType, VImageDimension >::Pointer iInput)
 
template<class PixelType >
itk::Image< PixelType, 2 >::Pointer ITKExtractSlice (const std::vector< double > &iBounds, typename itk::Image< PixelType, 3 >::Pointer iInput)
 
 QGoSegmentationAlgo (QWidget *iParent=0)
 
void SetDecimate (bool &iDecimate)
 
void SetNumberOfPoints (const unsigned int &iNumberOfPoints)
 
std::vector< vtkImageData * > VTKExtractROI (const std::vector< double > &iBounds, const std::vector< vtkSmartPointer< vtkImageData > > &iImages)
 return the vtkpolydata created by the algorithm More...
 
vtkImageData * VTKExtractROI (const std::vector< double > &iBounds, const vtkSmartPointer< vtkImageData > &iImage)
 
virtual ~QGoSegmentationAlgo ()
 

Protected Member Functions

virtual void DeleteParameters ()=0
 delete the different parameters More...
 
virtual void SetAlgoWidget (QWidget *iParent=0)=0
 construct the algowidget with the different parameters More...
 

Protected Attributes

QGoAlgorithmWidgetm_AlgoWidget
 

Private Member Functions

vtkSmartPointer< vtkPolyData > DecimateContour (vtkSmartPointer< vtkPolyData > iPolyData, unsigned int iNumberOfPoints)
 
vtkSmartPointer< vtkPolyData > DecimateMesh (vtkSmartPointer< vtkPolyData > iPolyData, unsigned int iNumberOfPoints)
 
vtkSmartPointer< vtkPolyData > ExtractContour (vtkSmartPointer< vtkImageData > iInputImage, const double &iThreshold)
 
vtkSmartPointer< vtkPolyData > ExtractMesh (vtkSmartPointer< vtkImageData > iInputImage, const double &iThreshold)
 
vtkSmartPointer< vtkPolyData > ReorganizeContour (vtkSmartPointer< vtkPolyData > iInputImage)
 

Private Attributes

bool m_Decimate
 
unsigned int m_NumberOfPoints
 

Detailed Description

abstract class to be the interface between the algorithms for meshes and contours and GoFigure

Definition at line 69 of file QGoSegmentationAlgo.h.

Constructor & Destructor Documentation

QGoSegmentationAlgo::QGoSegmentationAlgo ( QWidget *  iParent = 0)
explicit

Definition at line 63 of file QGoSegmentationAlgo.cxx.

QGoSegmentationAlgo::~QGoSegmentationAlgo ( )
virtual

Definition at line 71 of file QGoSegmentationAlgo.cxx.

Member Function Documentation

template<class PixelType , unsigned int VImageDimension>
vtkImageData* QGoSegmentationAlgo::ConvertITK2VTK ( typename itk::Image< PixelType, VImageDimension >::Pointer  iInput)
inline

Definition at line 161 of file QGoSegmentationAlgo.h.

template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType, VImageDimension >::Pointer QGoSegmentationAlgo::ConvertVTK2ITK ( vtkImageData *  iInput)
inline

Definition at line 122 of file QGoSegmentationAlgo.h.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::DecimateContour ( vtkSmartPointer< vtkPolyData >  iPolyData,
unsigned int  iNumberOfPoints 
)
private

Definition at line 407 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::DecimateMesh ( vtkSmartPointer< vtkPolyData >  iPolyData,
unsigned int  iNumberOfPoints 
)
private

Definition at line 427 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::DecimatePolyData ( vtkSmartPointer< vtkPolyData > &  iPolyData,
const unsigned int &  iNumberOfPoints 
)

Definition at line 368 of file QGoSegmentationAlgo.cxx.

virtual void QGoSegmentationAlgo::DeleteParameters ( )
protectedpure virtual
vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ExtractContour ( vtkSmartPointer< vtkImageData >  iInputImage,
const double &  iThreshold 
)
private

Definition at line 218 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ExtractMesh ( vtkSmartPointer< vtkImageData >  iInputImage,
const double &  iThreshold 
)
private

Definition at line 291 of file QGoSegmentationAlgo.cxx.

std::vector< vtkPolyData * > QGoSegmentationAlgo::ExtractPolyData ( std::vector< vtkImageData * > &  iInputImage,
const double &  iThreshold 
)

Definition at line 152 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ExtractPolyData ( vtkImageData *  iInputImage,
const double &  iThreshold 
)

Definition at line 179 of file QGoSegmentationAlgo.cxx.

QGoAlgorithmWidget * QGoSegmentationAlgo::GetAlgoWidget ( )

return the algowidget

Definition at line 77 of file QGoSegmentationAlgo.cxx.

bool QGoSegmentationAlgo::GetDecimate ( )

Definition at line 460 of file QGoSegmentationAlgo.cxx.

unsigned int QGoSegmentationAlgo::GetNumberOfPoints ( ) const

Definition at line 478 of file QGoSegmentationAlgo.cxx.

template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType, VImageDimension >::Pointer QGoSegmentationAlgo::ITKExtractROI ( const std::vector< double > &  iBounds,
typename itk::Image< PixelType, VImageDimension >::Pointer  iInput 
)
inline

Definition at line 188 of file QGoSegmentationAlgo.h.

template<class PixelType >
itk::Image< PixelType, 2>::Pointer QGoSegmentationAlgo::ITKExtractSlice ( const std::vector< double > &  iBounds,
typename itk::Image< PixelType, 3 >::Pointer  iInput 
)
inline

Definition at line 280 of file QGoSegmentationAlgo.h.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ReorganizeContour ( vtkSmartPointer< vtkPolyData >  iInputImage)
private

Definition at line 235 of file QGoSegmentationAlgo.cxx.

virtual void QGoSegmentationAlgo::SetAlgoWidget ( QWidget *  iParent = 0)
protectedpure virtual
void QGoSegmentationAlgo::SetDecimate ( bool &  iDecimate)

Definition at line 451 of file QGoSegmentationAlgo.cxx.

void QGoSegmentationAlgo::SetNumberOfPoints ( const unsigned int &  iNumberOfPoints)

Definition at line 469 of file QGoSegmentationAlgo.cxx.

std::vector< vtkImageData * > QGoSegmentationAlgo::VTKExtractROI ( const std::vector< double > &  iBounds,
const std::vector< vtkSmartPointer< vtkImageData > > &  iImages 
)

return the vtkpolydata created by the algorithm

Definition at line 85 of file QGoSegmentationAlgo.cxx.

vtkImageData * QGoSegmentationAlgo::VTKExtractROI ( const std::vector< double > &  iBounds,
const vtkSmartPointer< vtkImageData > &  iImage 
)

Definition at line 111 of file QGoSegmentationAlgo.cxx.

Member Data Documentation

QGoAlgorithmWidget* QGoSegmentationAlgo::m_AlgoWidget
protected

Definition at line 513 of file QGoSegmentationAlgo.h.

bool QGoSegmentationAlgo::m_Decimate
private

Definition at line 509 of file QGoSegmentationAlgo.h.

unsigned int QGoSegmentationAlgo::m_NumberOfPoints
private

Definition at line 510 of file QGoSegmentationAlgo.h.


The documentation for this class was generated from the following files: