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

Image filter class to set all voxels on one side of plane to a uer specified value (or zero by default). More...

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

Public Types

typedef
ThresholdImageWithRespectToPlane 
Self
 
typedef ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef TInputImage InputImageType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::SpacingType InputImageSpacingType
 
typedef InputImageType::IndexType InputImageIndexType
 
typedef InputImageType::PointType InputImagePointType
 
typedef TOutputImage OutputImageType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::IndexType OutputImageIndexType
 
typedef OutputImageType::PointType OutputImagePointType
 

Public Member Functions

virtual const char * GetClassName () const
 
 itkStaticConstMacro (ImageDimension, unsigned int, TInputImage::ImageDimension)
 
virtual void SetThresholdValue (OutputImagePixelType _arg)
 
virtual OutputImagePixelType GetThresholdValue ()
 
void SetPlanePosition (double px, double py, double pz)
 
void SetPlaneNormal (double nx, double ny, double nz)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ThresholdImageWithRespectToPlane ()
 
virtual ~ThresholdImageWithRespectToPlane ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual void BeforeThreadedGenerateData (void)
 
virtual void AfterThreadedGenerateData (void)
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 

Protected Attributes

OutputImagePixelType m_ThresholdValue
 
Vector< double, 3 > m_PlanePosition
 The position of the plane. More...
 
Vector< double, 3 > m_PlaneNormal
 The normal of the plane. More...
 

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >

Image filter class to set all voxels on one side of plane to a uer specified value (or zero by default).

Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef SmartPointer< const Self > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::ConstPointer
template<class TInputImage , class TOutputImage >
typedef InputImageType::ConstPointer itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageConstPointer
template<class TInputImage , class TOutputImage >
typedef InputImageType::IndexType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageIndexType
template<class TInputImage , class TOutputImage >
typedef InputImageType::PixelType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImagePixelType
template<class TInputImage , class TOutputImage >
typedef InputImageType::Pointer itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImagePointer
template<class TInputImage , class TOutputImage >
typedef InputImageType::PointType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImagePointType
template<class TInputImage , class TOutputImage >
typedef InputImageType::RegionType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageRegionType
template<class TInputImage , class TOutputImage >
typedef InputImageType::SpacingType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageSpacingType
template<class TInputImage , class TOutputImage >
typedef TInputImage itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageType

Type of the input image

template<class TInputImage , class TOutputImage >
typedef OutputImageType::IndexType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImageIndexType
template<class TInputImage , class TOutputImage >
typedef OutputImageType::PixelType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImagePixelType
template<class TInputImage , class TOutputImage >
typedef OutputImageType::Pointer itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImagePointer
template<class TInputImage , class TOutputImage >
typedef OutputImageType::PointType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImagePointType
template<class TInputImage , class TOutputImage >
typedef OutputImageType::RegionType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImageRegionType
template<class TInputImage , class TOutputImage >
typedef TOutputImage itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImageType

Type of the output image

template<class TInputImage , class TOutputImage >
typedef SmartPointer< Self > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::Pointer
template<class TInputImage , class TOutputImage >
typedef ThresholdImageWithRespectToPlane itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::Self

Standard class typedefs.

template<class TInputImage , class TOutputImage >
typedef ImageToImageFilter< TInputImage,TOutputImage > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::Superclass

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::ThresholdImageWithRespectToPlane ( )
protected
template<class TInputImage , class TOutputImage >
virtual itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::~ThresholdImageWithRespectToPlane ( )
inlineprotectedvirtual

Member Function Documentation

template<class TInputImage , class TOutputImage >
virtual void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::AfterThreadedGenerateData ( void  )
protectedvirtual

If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.

template<class TInputImage , class TOutputImage >
virtual void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( void  )
protectedvirtual

If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.

template<class TInputImage , class TOutputImage >
virtual const char* itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

template<class TInputImage , class TOutputImage >
virtual OutputImagePixelType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::GetThresholdValue ( )
virtual
template<class TInputImage , class TOutputImage >
itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::itkStaticConstMacro ( ImageDimension  ,
unsigned  int,
TInputImage::ImageDimension   
)

Image dimension.

template<class TInputImage , class TOutputImage >
static Pointer itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage , class TOutputImage >
void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected
template<class TInputImage , class TOutputImage >
void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::SetPlaneNormal ( double  nx,
double  ny,
double  nz 
)

Set the normal of the plane.

template<class TInputImage , class TOutputImage >
void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::SetPlanePosition ( double  px,
double  py,
double  pz 
)

Set the position of the plane in mm.

template<class TInputImage , class TOutputImage >
virtual void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::SetThresholdValue ( OutputImagePixelType  _arg)
virtual
template<class TInputImage , class TOutputImage >
void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
)
protected

ForwardImageProjector3Dto2D can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"

See also
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

Member Data Documentation

template<class TInputImage , class TOutputImage >
Vector< double, 3 > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::m_PlaneNormal
protected

The normal of the plane.

template<class TInputImage , class TOutputImage >
Vector< double, 3 > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::m_PlanePosition
protected

The position of the plane.

template<class TInputImage , class TOutputImage >
OutputImagePixelType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::m_ThresholdValue
protected

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