NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Lewis Griffin's implementation of a recursive Gaussian filter which does not produce the oscillations that itk::RecursiveSeparableImageFilter does. More...
Classes | |
struct | LewisGriffinRecursiveGaussianImageFilterStruct |
Public Types | |
enum | OrderEnumType { ZeroOrder, FirstOrder, SecondOrder } |
typedef LewisGriffinRecursiveGaussianImageFilter | Self |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage::Pointer | InputImagePointer |
typedef TInputImage::ConstPointer | InputImageConstPointer |
typedef TInputImage::PixelType | InputPixelType |
typedef NumericTraits < InputPixelType >::RealType | RealType |
typedef NumericTraits < InputPixelType > ::ScalarRealType | ScalarRealType |
typedef TOutputImage::RegionType | OutputImageRegionType |
typedef TInputImage | InputImageType |
typedef TOutputImage | OutputImageType |
typedef unsigned char | MaskPixelType |
typedef itk::Image < MaskPixelType, ImageDimension > | MaskImageType |
typedef MaskImageType::Pointer | MaskImagePointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, TInputImage::ImageDimension) | |
virtual unsigned int | GetDirection () const |
virtual void | SetDirection (unsigned int _arg) |
void | SetInputImage (const TInputImage *) |
const TInputImage * | GetInputImage (void) |
virtual void | SetMask (MaskImageType *_arg) |
Set an optional mask image. More... | |
virtual ScalarRealType | GetSigma () const |
virtual void | SetSigma (ScalarRealType _arg) |
virtual void | SetOrder (OrderEnumType _arg) |
virtual OrderEnumType | GetOrder () const |
void | SetZeroOrder () |
void | SetFirstOrder () |
void | SetSecondOrder () |
void | SetSingleThreadedExecution (void) |
For debugging purposes, set single threaded execution. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
LewisGriffinRecursiveGaussianImageFilter () | |
virtual | ~LewisGriffinRecursiveGaussianImageFilter () |
LewisGriffinRecursiveGaussianImageFilter (const Self &) | |
void | operator= (const Self &) |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | BeforeThreadedGenerateData () |
void | GenerateData (void) |
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) |
int | SplitRequestedRegion (int i, int num, OutputImageRegionType &splitRegion) |
void | EnlargeOutputRequestedRegion (DataObject *output) |
virtual void | SetUp (ScalarRealType spacing) |
void | FilterDataArray (RealType *outs, RealType *data, int ln) |
RealType | GaussianZeroOrder (RealType x, RealType sigma) |
Zero order Gaussian. More... | |
RealType | GaussianFirstOrder (RealType x, RealType sigma) |
First order Gaussian. More... | |
RealType | GaussianSecondOrder (RealType x, RealType sigma) |
Second order Gaussian. More... | |
Protected Attributes | |
bool | m_FlagMultiThreadedExecution |
Flag to turn multithreading on or off. More... | |
unsigned int | m_Direction |
ScalarRealType | m_Sigma |
OrderEnumType | m_Order |
Gaussian kernel order. More... | |
RealType * | m_Kernel |
The Gaussian kernel. More... | |
unsigned int | m_KernelSize |
The size of the kernel. More... | |
MaskImagePointer | m_Mask |
Optional mask image. More... | |
Lewis Griffin's implementation of a recursive Gaussian filter which does not produce the oscillations that itk::RecursiveSeparableImageFilter does.
typedef SmartPointer<const Self> itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ConstPointer |
typedef TInputImage::ConstPointer itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputImageConstPointer |
typedef TInputImage::Pointer itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Smart pointer typedef support.
typedef TInputImage itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputImageType |
Type of the input image
typedef TInputImage::PixelType itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::InputPixelType |
Real type to be used in internal computations. RealType in general is templated over the pixel type. (For example for vector or tensor pixels, RealType is a vector or a tensor of doubles.) ScalarRealType is a type meant for scalars.
typedef MaskImageType::Pointer itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::MaskImagePointer |
typedef itk::Image<MaskPixelType, ImageDimension> itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::MaskImageType |
typedef unsigned char itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::MaskPixelType |
Optional mask image
typedef TOutputImage::RegionType itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
typedef TOutputImage itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::OutputImageType |
Type of the output image
typedef SmartPointer<Self> itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Pointer |
typedef NumericTraits<InputPixelType>::RealType itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::RealType |
typedef NumericTraits<InputPixelType>::ScalarRealType itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::ScalarRealType |
typedef LewisGriffinRecursiveGaussianImageFilter itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
typedef ImageToImageFilter<TInputImage,TOutputImage> itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::Superclass |
enum itk::LewisGriffinRecursiveGaussianImageFilter::OrderEnumType |
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
GenerateData (apply) the filter.
|
protected |
LewisGriffinRecursiveGaussianImageFilter needs all of the input only in the "Direction" dimension. Therefore we enlarge the output's RequestedRegion to this. Then the superclass's GenerateInputRequestedRegion method will copy the output region to the input.
|
protected |
Apply the Recursive Filter to an array of data. This method is called for each line of the volume.
|
protected |
First order Gaussian.
|
protected |
Second order Gaussian.
|
protected |
Zero order Gaussian.
|
protected |
|
virtual |
Type macro that defines a name for this class.
|
virtual |
Get the direction in which the filter is to be applied.
const TInputImage* itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::GetInputImage | ( | void | ) |
Get Input Image.
|
virtual |
|
virtual |
Set/Get the Sigma, measured in world coordinates, of the Gaussian kernel. The default is 1.0.
itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | ImageDimension | , |
unsigned | int, | ||
TInputImage::ImageDimension | |||
) |
ImageDimension enumeration.
|
static |
Method for creation through the object factory.
|
protected |
|
protected |
|
virtual |
Set the direction in which the filter is to be applied.
void itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetFirstOrder | ( | ) |
Explicitly set a first order derivative.
void itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetInputImage | ( | const TInputImage * | ) |
Set Input Image.
|
virtual |
Set an optional mask image.
|
virtual |
Set/Get the Order of the Gaussian to convolve with.
void itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetSecondOrder | ( | ) |
Explicitly set a second order derivative.
|
virtual |
|
inline |
For debugging purposes, set single threaded execution.
|
protectedvirtual |
Set up the coefficients of the filter to approximate a specific kernel. Typically it can be used to approximate a Gaussian or one of its derivatives. Parameter is the spacing along the dimension to filter.
void itk::LewisGriffinRecursiveGaussianImageFilter< TInputImage, TOutputImage >::SetZeroOrder | ( | ) |
Explicitly set a zeroth order derivative.
|
protected |
|
protected |
|
protected |
Direction in which the filter is to be applied this should be in the range [0,ImageDimension-1].
|
protected |
Flag to turn multithreading on or off.
|
protected |
The Gaussian kernel.
|
protected |
The size of the kernel.
|
protected |
Optional mask image.
|
protected |
Gaussian kernel order.
|
protected |
Sigma of the gaussian kernel.