NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet > Class Template Reference

Implements region growing limited by contours. More...

Inheritance diagram for itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >:
Inheritance graph
[legend]
Collaboration diagram for itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >:
Collaboration graph
[legend]

Public Types

typedef
MIDASRegionGrowingImageFilter 
Self
 
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef TOutputImage OutputImageType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::SizeType OutputImageSizeType
 
typedef OutputImageType::IndexType OutputImageIndexType
 
typedef OutputImageType::Pointer OutputImagePointerType
 
typedef
OutputImageType::ConstPointer 
OutputImageConstPointerType
 
typedef OutputImageType::PixelType OutputPixelType
 
typedef TPointSet PointSetType
 
typedef itk::ContinuousIndex
< double,
TInputImage::ImageDimension > 
ContinuousIndexType
 
typedef
itk::PolyLineParametricPath
< TInputImage::ImageDimension > 
ParametricPathType
 
typedef ParametricPathType::Pointer ParametricPathPointer
 
typedef std::vector
< ParametricPathPointer
ParametricPathVectorType
 
typedef
ParametricPathType::VertexListType 
ParametricPathVertexListType
 
typedef
ParametricPathType::VertexType 
ParametricPathVertexType
 

Public Member Functions

virtual const char * GetClassName () const
 
virtual void SetLowerThreshold (InputPixelType _arg)
 Values lower than the LowerThreshold are not grown into. More...
 
virtual InputPixelType GetLowerThreshold () const
 
virtual void SetUpperThreshold (InputPixelType _arg)
 Values higher than the UpperThreshold are not grown into. More...
 
virtual InputPixelType GetUpperThreshold () const
 
virtual void SetForegroundValue (OutputPixelType _arg)
 The output "foreground" value, normally 1 or 255. More...
 
virtual OutputPixelType GetForegroundValue () const
 
virtual void SetBackgroundValue (OutputPixelType _arg)
 The output "background" value, normally 0. More...
 
virtual OutputPixelType GetBackgroundValue () const
 
virtual void SetRegionOfInterest (OutputImageRegionType _arg)
 Set a region of interest, and only operate within that. More...
 
virtual OutputImageRegionType GetRegionOfInterest () const
 
virtual void SetUseRegionOfInterest (bool _arg)
 If true, the filter will use RegionOfInterest and otherwise won't. More...
 
virtual bool GetUseRegionOfInterest () const
 
virtual void SetProjectSeedsIntoRegion (bool _arg)
 It may be the case that you need to project seeds into a region. Say you have seeds on one slice that you want to use as seeds for region growing upwards, then you need to shift them along the upwards axis. More...
 
virtual bool GetProjectSeedsIntoRegion () const
 
virtual void SetMaximumSeedProjectionDistanceInVoxels (unsigned int _arg)
 
virtual unsigned int GetMaximumSeedProjectionDistanceInVoxels ()
 
virtual void SetSegmentationContourImageInsideValue (OutputPixelType _arg)
 
virtual OutputPixelType GetSegmentationContourImageInsideValue () const
 
virtual void SetSegmentationContourImageBorderValue (OutputPixelType _arg)
 
virtual OutputPixelType GetSegmentationContourImageBorderValue () const
 
virtual void SetSegmentationContourImageOutsideValue (OutputPixelType _arg)
 
virtual OutputPixelType GetSegmentationContourImageOutsideValue () const
 
virtual void SetManualContourImageBorderValue (OutputPixelType _arg)
 
virtual OutputPixelType GetManualContourImageBorderValue () const
 
virtual void SetEraseFullSlice (bool _arg)
 Within MIDAS, if region growing covers the whole slice, the output is zero, not the whole slice. More...
 
virtual bool GetEraseFullSlice () const
 
virtual void SetPropMask (OutputImageIndexType _arg)
 
virtual OutputImageIndexType GetPropMask () const
 
virtual void SetUsePropMaskMode (bool _arg)
 
virtual bool GetUsePropMaskMode () const
 
void SetManualContours (ParametricPathVectorType *contours)
 Setting the "manual" contours means those that come from DrawTool or PolyTool. More...
 
const PointSetTypeGetSeedPoints (void) const
 Retrieve the seeds. More...
 
void SetSeedPoints (const PointSetType &seeds)
 Set the seeds, as region growing starts from each seed point. More...
 
const OutputImageTypeGetSegmentationContourImage (void) const
 Retrieve the contour image. More...
 
virtual void SetSegmentationContourImage (OutputImageType *_arg)
 Set the contour image. More...
 
const OutputImageTypeGetManualContourImage (void) const
 Retrieve the "manual" contour image. More...
 
virtual void SetManualContourImage (OutputImageType *_arg)
 Set the manual contour image. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 MIDASRegionGrowingImageFilter ()
 
virtual ~MIDASRegionGrowingImageFilter (void)
 
virtual void GenerateData (void)
 
virtual void ThreadedGenerateData (const typename OutputImageType::RegionType &outputRegionForThread, ThreadIdType threadId)
 

Detailed Description

template<class TInputImage, class TOutputImage, class TPointSet>
class itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >

Implements region growing limited by contours.

Member Typedef Documentation

template<class TInputImage , class TOutputImage , class TPointSet >
typedef SmartPointer<const Self> itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ConstPointer
template<class TInputImage , class TOutputImage , class TPointSet >
typedef itk::ContinuousIndex<double,TInputImage::ImageDimension> itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ContinuousIndexType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef TInputImage itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::InputImageType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef InputImageType::PixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::InputPixelType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef OutputImageType::ConstPointer itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::OutputImageConstPointerType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef OutputImageType::IndexType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::OutputImageIndexType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef OutputImageType::Pointer itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::OutputImagePointerType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef OutputImageType::RegionType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::OutputImageRegionType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef OutputImageType::SizeType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::OutputImageSizeType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef TOutputImage itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::OutputImageType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef OutputImageType::PixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::OutputPixelType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef ParametricPathType::Pointer itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ParametricPathPointer
template<class TInputImage , class TOutputImage , class TPointSet >
typedef itk::PolyLineParametricPath<TInputImage::ImageDimension> itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ParametricPathType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef std::vector<ParametricPathPointer> itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ParametricPathVectorType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef ParametricPathType::VertexListType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ParametricPathVertexListType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef ParametricPathType::VertexType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ParametricPathVertexType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef SmartPointer<Self> itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::Pointer
template<class TInputImage , class TOutputImage , class TPointSet >
typedef TPointSet itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::PointSetType
template<class TInputImage , class TOutputImage , class TPointSet >
typedef MIDASRegionGrowingImageFilter itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::Self
template<class TInputImage , class TOutputImage , class TPointSet >
typedef ImageToImageFilter<TInputImage, TOutputImage> itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::Superclass

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage , class TPointSet >
itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::MIDASRegionGrowingImageFilter ( )
protected
template<class TInputImage , class TOutputImage , class TPointSet >
virtual itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::~MIDASRegionGrowingImageFilter ( void  )
inlineprotectedvirtual

Member Function Documentation

template<class TInputImage , class TOutputImage , class TPointSet >
void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GenerateData ( void  )
protectedvirtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetBackgroundValue ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual const char* itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

template<class TInputImage , class TOutputImage , class TPointSet >
virtual bool itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetEraseFullSlice ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetForegroundValue ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual InputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetLowerThreshold ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
const OutputImageType* itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetManualContourImage ( void  ) const
inline

Retrieve the "manual" contour image.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetManualContourImageBorderValue ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual unsigned int itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetMaximumSeedProjectionDistanceInVoxels ( )
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual bool itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetProjectSeedsIntoRegion ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputImageIndexType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetPropMask ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputImageRegionType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetRegionOfInterest ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
const PointSetType& itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetSeedPoints ( void  ) const
inline

Retrieve the seeds.

template<class TInputImage , class TOutputImage , class TPointSet >
const OutputImageType* itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetSegmentationContourImage ( void  ) const
inline

Retrieve the contour image.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetSegmentationContourImageBorderValue ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetSegmentationContourImageInsideValue ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual OutputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetSegmentationContourImageOutsideValue ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual InputPixelType itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetUpperThreshold ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual bool itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetUsePropMaskMode ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual bool itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::GetUseRegionOfInterest ( ) const
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
static Pointer itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::New ( )
static

Method for creation through the object factory.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetBackgroundValue ( OutputPixelType  _arg)
virtual

The output "background" value, normally 0.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetEraseFullSlice ( bool  _arg)
virtual

Within MIDAS, if region growing covers the whole slice, the output is zero, not the whole slice.

We need this flag as there are two use cases. When region growing, and we want to see the blue outline of the region growing, then when the whole slice is covered MIDAS erases (or ignores) the region growing, so it disappears. However, for testing whether seeds are enclosed or not, we need to region grow to the edge, and check if we hit it, so we dont want to erase the whole slice.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetForegroundValue ( OutputPixelType  _arg)
virtual

The output "foreground" value, normally 1 or 255.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetLowerThreshold ( InputPixelType  _arg)
virtual

Values lower than the LowerThreshold are not grown into.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetManualContourImage ( OutputImageType _arg)
virtual

Set the manual contour image.

The manual contour image is the image generated by taking all the lines from DrawTool and PolyTool, and rendering them into the image. As these lines may be unclosed (eg. a line, and not a circle), there is no concept of "inside" or "outside" the line. The only thing we can render is "border" or "not-border".

The lines are represented by a two voxel wide stripe of "border" values, one voxel on both sides of the lines all along them.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetManualContourImageBorderValue ( OutputPixelType  _arg)
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetManualContours ( ParametricPathVectorType contours)

Setting the "manual" contours means those that come from DrawTool or PolyTool.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetMaximumSeedProjectionDistanceInVoxels ( unsigned int  _arg)
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetProjectSeedsIntoRegion ( bool  _arg)
virtual

It may be the case that you need to project seeds into a region. Say you have seeds on one slice that you want to use as seeds for region growing upwards, then you need to shift them along the upwards axis.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetPropMask ( OutputImageIndexType  _arg)
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetRegionOfInterest ( OutputImageRegionType  _arg)
virtual

Set a region of interest, and only operate within that.

template<class TInputImage , class TOutputImage , class TPointSet >
void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetSeedPoints ( const PointSetType seeds)
inline

Set the seeds, as region growing starts from each seed point.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetSegmentationContourImage ( OutputImageType _arg)
virtual

Set the contour image.

The "contour image" is the image generated by working out the edge of the current segmentation, and rendering an image of all the borders between foreground and background. The contour image contains a value for "inside" the contour (i.e. background), the contour itself, and "outside" which is background that it known to be outside the segmented object.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetSegmentationContourImageBorderValue ( OutputPixelType  _arg)
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetSegmentationContourImageInsideValue ( OutputPixelType  _arg)
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetSegmentationContourImageOutsideValue ( OutputPixelType  _arg)
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetUpperThreshold ( InputPixelType  _arg)
virtual

Values higher than the UpperThreshold are not grown into.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetUsePropMaskMode ( bool  _arg)
virtual
template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::SetUseRegionOfInterest ( bool  _arg)
virtual

If true, the filter will use RegionOfInterest and otherwise won't.

template<class TInputImage , class TOutputImage , class TPointSet >
virtual void itk::MIDASRegionGrowingImageFilter< TInputImage, TOutputImage, TPointSet >::ThreadedGenerateData ( const typename OutputImageType::RegionType outputRegionForThread,
ThreadIdType  threadId 
)
inlineprotectedvirtual

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