NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Image filter class to set all voxels on one side of plane to a uer specified value (or zero by default). More...
Public Types | |
typedef ThresholdImageWithRespectToPlane | Self |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
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... | |
Image filter class to set all voxels on one side of plane to a uer specified value (or zero by default).
typedef SmartPointer< const Self > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::ConstPointer |
typedef InputImageType::ConstPointer itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageConstPointer |
typedef InputImageType::IndexType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageIndexType |
typedef InputImageType::PixelType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImagePixelType |
typedef InputImageType::Pointer itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImagePointer |
typedef InputImageType::PointType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImagePointType |
typedef InputImageType::RegionType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageRegionType |
typedef InputImageType::SpacingType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageSpacingType |
typedef TInputImage itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::InputImageType |
Type of the input image
typedef OutputImageType::IndexType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImageIndexType |
typedef OutputImageType::PixelType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImagePixelType |
typedef OutputImageType::Pointer itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImagePointer |
typedef OutputImageType::PointType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImagePointType |
typedef OutputImageType::RegionType itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImageRegionType |
typedef TOutputImage itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::OutputImageType |
Type of the output image
typedef SmartPointer< Self > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::Pointer |
typedef ThresholdImageWithRespectToPlane itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::Self |
Standard class typedefs.
typedef ImageToImageFilter< TInputImage,TOutputImage > itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::Superclass |
|
protected |
|
inlineprotectedvirtual |
|
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.
|
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.
|
virtual |
Run-time type information (and related methods).
|
virtual |
itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::itkStaticConstMacro | ( | ImageDimension | , |
unsigned | int, | ||
TInputImage::ImageDimension | |||
) |
Image dimension.
|
static |
Method for creation through the object factory.
|
protected |
void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::SetPlaneNormal | ( | double | nx, |
double | ny, | ||
double | nz | ||
) |
Set the normal of the plane.
void itk::ThresholdImageWithRespectToPlane< TInputImage, TOutputImage >::SetPlanePosition | ( | double | px, |
double | py, | ||
double | pz | ||
) |
Set the position of the plane in mm.
|
virtual |
|
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"
|
protected |
The normal of the plane.
|
protected |
The position of the plane.
|
protected |