ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkGPUNeighborhoodOperatorImageFilter.h>
Applies a single NeighborhoodOperator to an image region using the GPU.
This GPU filter calculates successive inner products between a single NeighborhoodOperator and a NeighborhoodIterator, which is swept across every pixel in an image region.
Definition at line 49 of file itkGPUNeighborhoodOperatorImageFilter.h.
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
itkGetOpenCLSourceFromKernelMacro (GPUNeighborhoodOperatorImageFilterKernel) | |
void | SetOperator (const OutputNeighborhoodType &p) |
Public Member Functions inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
void | GenerateData () override |
virtual bool | GetGPUEnabled () const |
virtual void | GPUEnabledOff () |
virtual void | GPUEnabledOn () |
virtual void | GraftOutput (DataObject *output) override |
virtual void | GraftOutput (const DataObjectIdentifierType &key, DataObject *output) override |
virtual void | SetGPUEnabled (bool _arg) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Member Functions | |
void | GPUGenerateData () override |
GPUNeighborhoodOperatorImageFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual | ~GPUNeighborhoodOperatorImageFilter () |
Protected Member Functions inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
GPUImageToImageFilter () | |
~GPUImageToImageFilter () | |
Private Member Functions | |
GPUNeighborhoodOperatorImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
NeighborhoodGPUBufferType::Pointer | m_NeighborhoodGPUBuffer |
int | m_NeighborhoodOperatorFilterGPUKernelHandle |
Additional Inherited Members | |
Protected Attributes inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
GPUKernelManager::Pointer | m_GPUKernelManager |
typedef NumericTraits<OutputPixelType>::RealType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::ComputingPixelType |
Definition at line 75 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef SmartPointer< const Self > itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::ConstPointer |
Definition at line 58 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TParentImageFilter itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::CPUSuperclass |
Definition at line 55 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef ZeroFluxNeumannBoundaryCondition< InputImageType > itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::DefaultBoundaryCondition |
Typedef for the default boundary condition
Definition at line 95 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::GPUSuperclass |
Definition at line 56 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef ImageBoundaryCondition< InputImageType >* itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::ImageBoundaryConditionPointerType |
Typedef for generic boundary condition pointer.
Definition at line 92 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef InputImageType::Pointer itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::InputImagePointer |
Definition at line 88 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TInputImage itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::InputImageType |
Image typedef support.
Definition at line 86 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TInputImage::InternalPixelType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::InputInternalPixelType |
Definition at line 71 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TInputImage::PixelType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::InputPixelType |
Definition at line 70 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef NumericTraits<InputPixelType>::ValueType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::InputPixelValueType |
Definition at line 74 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef GPUImage<TOperatorValueType,itkGetStaticConstMacro(ImageDimension)> itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::NeighborhoodGPUBufferType |
Definition at line 77 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TOperatorValueType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::OperatorValueType |
Definition at line 72 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef GPUSuperclass::OutputImageRegionType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::OutputImageRegionType |
Superclass typedefs.
Definition at line 98 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TOutputImage itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::OutputImageType |
Definition at line 87 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TOutputImage::InternalPixelType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::OutputInternalPixelType |
Definition at line 69 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef Neighborhood< OperatorValueType, itkGetStaticConstMacro(ImageDimension) > itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::OutputNeighborhoodType |
Neighborhood types
Definition at line 102 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef TOutputImage::PixelType itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::OutputPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 64 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef SmartPointer< Self > itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::Pointer |
Definition at line 57 of file itkGPUNeighborhoodOperatorImageFilter.h.
typedef GPUNeighborhoodOperatorImageFilter itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::Self |
Standard "Self" & Superclass typedef.
Definition at line 54 of file itkGPUNeighborhoodOperatorImageFilter.h.
|
protected |
Get the operator that is used to filter the image. const OutputNeighborhoodType & GetOperator() const { return m_Operator; } Allows a user to override the internal boundary condition. Care should be be taken to ensure that the overriding boundary condition is a persistent object during the time it is referenced. The overriding condition can be of a different type than the default type as long as it is a subclass of ImageBoundaryCondition. void OverrideBoundaryCondition(const ImageBoundaryConditionPointerType i) { m_BoundsCondition = i; } Get the boundary condition specified ImageBoundaryConditionPointerType GetBoundaryCondition() { return m_BoundsCondition; } NeighborhoodOperatorImageFilter needs a larger input requested region than the output requested region. As such, NeighborhoodOperatorImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
|
inlineprotectedvirtual |
Definition at line 154 of file itkGPUNeighborhoodOperatorImageFilter.h.
|
private |
virtual::itk::LightObject::Pointer itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::CreateAnother | ( | ) | const |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter >.
|
overrideprotectedvirtual |
NeighborhoodOperatorImageFilter 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"
Reimplemented from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter >.
itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::itkGetOpenCLSourceFromKernelMacro | ( | GPUNeighborhoodOperatorImageFilterKernel | ) |
Get OpenCL Kernel source as a string, creates a GetOpenCLSource method
|
static |
Method for creation through the object factory.
|
private |
|
inlineoverrideprotectedvirtual |
Reimplemented from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter >.
Definition at line 173 of file itkGPUNeighborhoodOperatorImageFilter.h.
References itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter >::PrintSelf().
void itk::GPUNeighborhoodOperatorImageFilter< TInputImage, TOutputImage, TOperatorValueType, TParentImageFilter >::SetOperator | ( | const OutputNeighborhoodType & | p | ) |
Sets the operator that is used to filter the image. Note that the operator is stored as an internal COPY (it is not part of the pipeline).
|
static |
ImageDimension constants
Definition at line 80 of file itkGPUNeighborhoodOperatorImageFilter.h.
|
static |
ImageDimension constants
Definition at line 81 of file itkGPUNeighborhoodOperatorImageFilter.h.
|
private |
Definition at line 194 of file itkGPUNeighborhoodOperatorImageFilter.h.
|
private |
Internal operator used to filter the image. OutputNeighborhoodType m_Operator; Pointer to a persistent boundary condition object used for the image iterator. ImageBoundaryConditionPointerType m_BoundsCondition; Default boundary condition DefaultBoundaryCondition m_DefaultBoundaryCondition;
Definition at line 192 of file itkGPUNeighborhoodOperatorImageFilter.h.
|
static |
ImageDimension constants
Definition at line 82 of file itkGPUNeighborhoodOperatorImageFilter.h.