ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkImageBoundaryCondition.h>
A virtual base object that defines an interface to a class of boundary condition objects for use by neighborhood iterators.
A boundary condition object supplies a phantom pixel value when given a neighborhood of (pointers to) image values, the (ND) index of the phantom pixel, and its (ND) offset from the boundary. The index of the phantom pixel is relative to the "upper left-hand corner" of the neighborhood (as opposed to its center).
Associated Types Description
PixelType The data type of the return value. PixelPointerType A pointer to PixelType. PixelPointerTypeNeighborhood A neighborhood of PixelPointerTypes that points to the pixel values in an image neighborhood.
Definition at line 52 of file itkImageBoundaryCondition.h.
Public Types | |
typedef TInputImage::NeighborhoodAccessorFunctorType | NeighborhoodAccessorFunctorType |
typedef Neighborhood < PixelPointerType, itkGetStaticConstMacro(ImageDimension) > | NeighborhoodType |
typedef ImageBoundaryCondition | Self |
typedef TInputImage::PixelType | PixelType |
typedef TInputImage::InternalPixelType * | PixelPointerType |
typedef TOutputImage::PixelType | OutputPixelType |
typedef Index < itkGetStaticConstMacro(ImageDimension) > | IndexType |
typedef Size < itkGetStaticConstMacro(ImageDimension) > | SizeType |
typedef Offset < itkGetStaticConstMacro(ImageDimension) > | OffsetType |
typedef ImageRegion < itkGetStaticConstMacro(ImageDimension) > | RegionType |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
virtual OutputPixelType | GetPixel (const IndexType &index, const TInputImage *image) const =0 |
ImageBoundaryCondition () | |
virtual OutputPixelType | operator() (const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data) const =0 |
virtual OutputPixelType | operator() (const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data, const NeighborhoodAccessorFunctorType &neighborhoodAccessorFunctor) const =0 |
virtual void | Print (std::ostream &os, Indent i=0) const |
virtual bool | RequiresCompleteNeighborhood () |
virtual | ~ImageBoundaryCondition () |
virtual RegionType | GetInputRequestedRegion (const RegionType &inputLargestPossibleRegion, const RegionType &outputRequestedRegion) const |
Static Public Attributes | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
typedef Index< itkGetStaticConstMacro(ImageDimension) > itk::ImageBoundaryCondition< TInputImage, TOutputImage >::IndexType |
Extract information from the image type
Definition at line 67 of file itkImageBoundaryCondition.h.
typedef TInputImage::NeighborhoodAccessorFunctorType itk::ImageBoundaryCondition< TInputImage, TOutputImage >::NeighborhoodAccessorFunctorType |
Functor used to access pixels from a neighborhood of pixel pointers
Definition at line 79 of file itkImageBoundaryCondition.h.
typedef Neighborhood< PixelPointerType, itkGetStaticConstMacro(ImageDimension) > itk::ImageBoundaryCondition< TInputImage, TOutputImage >::NeighborhoodType |
Type of the data container passed to this function object.
Definition at line 75 of file itkImageBoundaryCondition.h.
typedef Offset< itkGetStaticConstMacro(ImageDimension) > itk::ImageBoundaryCondition< TInputImage, TOutputImage >::OffsetType |
Extract information from the image type
Definition at line 69 of file itkImageBoundaryCondition.h.
typedef TOutputImage::PixelType itk::ImageBoundaryCondition< TInputImage, TOutputImage >::OutputPixelType |
Extract information from the image type
Definition at line 66 of file itkImageBoundaryCondition.h.
typedef TInputImage::InternalPixelType* itk::ImageBoundaryCondition< TInputImage, TOutputImage >::PixelPointerType |
Extract information from the image type
Definition at line 65 of file itkImageBoundaryCondition.h.
typedef TInputImage::PixelType itk::ImageBoundaryCondition< TInputImage, TOutputImage >::PixelType |
Extract information from the image type
Definition at line 64 of file itkImageBoundaryCondition.h.
typedef ImageRegion< itkGetStaticConstMacro(ImageDimension) > itk::ImageBoundaryCondition< TInputImage, TOutputImage >::RegionType |
Extract information from the image type
Definition at line 70 of file itkImageBoundaryCondition.h.
typedef ImageBoundaryCondition itk::ImageBoundaryCondition< TInputImage, TOutputImage >::Self |
Standard typedefs.
Definition at line 61 of file itkImageBoundaryCondition.h.
typedef Size< itkGetStaticConstMacro(ImageDimension) > itk::ImageBoundaryCondition< TInputImage, TOutputImage >::SizeType |
Extract information from the image type
Definition at line 68 of file itkImageBoundaryCondition.h.
|
inline |
Default constructor.
Definition at line 82 of file itkImageBoundaryCondition.h.
|
inlinevirtual |
Definition at line 112 of file itkImageBoundaryCondition.h.
|
inlinevirtual |
Determines the necessary input region for an output region given the largest possible region of the input image. Subclasses should override this method to efficiently support streaming.
inputLargestPossibleRegion | Largest possible region of the input image. |
outputRequestedRegion | The output requested region. |
Reimplemented in itk::ConstantBoundaryCondition< TInputImage, TOutputImage >, itk::ConstantBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage, TOutputImage >, itk::ZeroFluxNeumannBoundaryCondition< ImageType >, itk::ZeroFluxNeumannBoundaryCondition< itk::Image >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage >, itk::ZeroFluxNeumannBoundaryCondition< TInput >, itk::ZeroFluxNeumannBoundaryCondition< TImage >, itk::ZeroFluxNeumannBoundaryCondition< FixedImageType >, itk::ZeroFluxNeumannBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TImageType >, itk::ZeroFluxNeumannBoundaryCondition< TDisplacementField >, itk::ZeroFluxNeumannBoundaryCondition< TSparseImageType >, and itk::PeriodicBoundaryCondition< TInputImage, TOutputImage >.
Definition at line 131 of file itkImageBoundaryCondition.h.
|
inlinevirtual |
Runtime information support.
Reimplemented in itk::ConstantBoundaryCondition< TInputImage, TOutputImage >, itk::ConstantBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage, TOutputImage >, itk::ZeroFluxNeumannBoundaryCondition< ImageType >, itk::ZeroFluxNeumannBoundaryCondition< itk::Image >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage >, itk::ZeroFluxNeumannBoundaryCondition< TInput >, itk::ZeroFluxNeumannBoundaryCondition< TImage >, itk::ZeroFluxNeumannBoundaryCondition< FixedImageType >, itk::ZeroFluxNeumannBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TImageType >, itk::ZeroFluxNeumannBoundaryCondition< TDisplacementField >, itk::ZeroFluxNeumannBoundaryCondition< TSparseImageType >, and itk::PeriodicBoundaryCondition< TInputImage, TOutputImage >.
Definition at line 85 of file itkImageBoundaryCondition.h.
|
pure virtual |
Returns a value for a given pixel at an index. If the index is inside the bounds of the input image, then the pixel value is obtained from the input image. Otherwise, the pixel value is determined according to the boundary condition type.
index | The index of the desired pixel. |
image | The image from which pixel values should be determined. |
Implemented in itk::ConstantBoundaryCondition< TInputImage, TOutputImage >, itk::ConstantBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage, TOutputImage >, itk::ZeroFluxNeumannBoundaryCondition< ImageType >, itk::ZeroFluxNeumannBoundaryCondition< itk::Image >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage >, itk::ZeroFluxNeumannBoundaryCondition< TInput >, itk::ZeroFluxNeumannBoundaryCondition< TImage >, itk::ZeroFluxNeumannBoundaryCondition< FixedImageType >, itk::ZeroFluxNeumannBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TImageType >, itk::ZeroFluxNeumannBoundaryCondition< TDisplacementField >, itk::ZeroFluxNeumannBoundaryCondition< TSparseImageType >, and itk::PeriodicBoundaryCondition< TInputImage, TOutputImage >.
|
pure virtual |
Returns a value for a given out-of-bounds pixel. The arguments are the phantom pixel (ND) index within the neighborhood, the pixel's offset from the nearest image border pixel, and a neighborhood of pointers to pixel values in the image.
Implemented in itk::ConstantBoundaryCondition< TInputImage, TOutputImage >, itk::ConstantBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage, TOutputImage >, itk::ZeroFluxNeumannBoundaryCondition< ImageType >, itk::ZeroFluxNeumannBoundaryCondition< itk::Image >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage >, itk::ZeroFluxNeumannBoundaryCondition< TInput >, itk::ZeroFluxNeumannBoundaryCondition< TImage >, itk::ZeroFluxNeumannBoundaryCondition< FixedImageType >, itk::ZeroFluxNeumannBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TImageType >, itk::ZeroFluxNeumannBoundaryCondition< TDisplacementField >, itk::ZeroFluxNeumannBoundaryCondition< TSparseImageType >, and itk::PeriodicBoundaryCondition< TInputImage, TOutputImage >.
|
pure virtual |
Computes and returns the appropriate pixel value from neighborhood iterator data, using the functor.
Implemented in itk::ConstantBoundaryCondition< TInputImage, TOutputImage >, itk::ConstantBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage, TOutputImage >, itk::ZeroFluxNeumannBoundaryCondition< ImageType >, itk::ZeroFluxNeumannBoundaryCondition< itk::Image >, itk::ZeroFluxNeumannBoundaryCondition< TInputImage >, itk::ZeroFluxNeumannBoundaryCondition< TInput >, itk::ZeroFluxNeumannBoundaryCondition< TImage >, itk::ZeroFluxNeumannBoundaryCondition< FixedImageType >, itk::ZeroFluxNeumannBoundaryCondition< InputImageType >, itk::ZeroFluxNeumannBoundaryCondition< TImageType >, itk::ZeroFluxNeumannBoundaryCondition< TDisplacementField >, itk::ZeroFluxNeumannBoundaryCondition< TSparseImageType >, and itk::PeriodicBoundaryCondition< TInputImage, TOutputImage >.
|
inlinevirtual |
Utility for printing the boundary condition.
Reimplemented in itk::ConstantBoundaryCondition< TInputImage, TOutputImage >, and itk::ConstantBoundaryCondition< InputImageType >.
Definition at line 91 of file itkImageBoundaryCondition.h.
|
inlinevirtual |
Tell if the boundary condition can index to any location within the associated iterator's neighborhood or if it has some limited subset (such as none) that it relies upon. Subclasses should override this method if they can safely limit indexes to active pixels (or no pixels).
Reimplemented in itk::ConstantBoundaryCondition< TInputImage, TOutputImage >, and itk::ConstantBoundaryCondition< InputImageType >.
Definition at line 120 of file itkImageBoundaryCondition.h.
|
static |
Extract information from the image type
Definition at line 58 of file itkImageBoundaryCondition.h.