![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkGenericMultiResolutionPyramidImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::InputImageConstPointer | InputImageConstPointer |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageType | OutputImageType |
typedef InputImageType::PixelType | PixelType |
typedef SmartPointer< Self > | Pointer |
typedef SigmaArrayType | RescaleFactorArrayType |
typedef ScheduleType | RescaleScheduleType |
typedef NumericTraits < PixelType >::ScalarRealType | ScalarRealType |
typedef Superclass::ScheduleType | ScheduleType |
typedef GenericMultiResolutionPyramidImageFilter | Self |
typedef FixedArray < ScalarRealType, itkGetStaticConstMacro(ImageDimension) > | SigmaArrayType |
typedef Array2D< ScalarRealType > | SmoothingScheduleType |
typedef Superclass::InputImageType::SpacingType | SpacingType |
typedef MultiResolutionPyramidImageFilter < TInputImage, TOutputImage > | Superclass |
typedef Superclass::Superclass | SuperSuperclass |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
virtual void | GenerateData (void) |
virtual void | GenerateInputRequestedRegion (void) |
virtual void | GenerateOutputInformation (void) |
virtual void | GenerateOutputRequestedRegion (DataObject *output) |
GenericMultiResolutionPyramidImageFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | ReleaseOutputs (void) |
~GenericMultiResolutionPyramidImageFilter () | |
Private Member Functions | |
bool | AreRescaleFactorsAllOnes (const RescaleFactorArrayType &rescaleFactorArray) const |
bool | AreSigmasAllZeros (const SigmaArrayType &sigmaArray) const |
bool | ComputeForCurrentLevel (const unsigned int level) const |
GenericMultiResolutionPyramidImageFilter (const Self &) | |
double | GetDefaultSigma (const unsigned int dim, const unsigned int *factors, const SpacingType &spacing) const |
SigmaArrayType | GetSigma (const unsigned int level, SigmaArrayType &sigmaArray) const |
bool | IsCasterNeeded (void) const |
void | operator= (const Self &) |
void | SetSmoothingScheduleToDefault (void) |
Framework for creating images in a multi-resolution pyramid.
GenericMultiResolutionPyramidImageFilter provides a generic framework to to create a image pyramid according to a user defined multi-resolution rescale and smoothing schedules.
The multi-resolution rescale schedule is specified in terms of shrink factors at each multi-resolution level for each dimension
The rescale schedule is stored as an unsigned int matrix. An element of the table can be access via the double bracket notation: schedule[level][dimension] For example: 8 4 4 4 4 2
is a rescale schedule for two computation level. In the first (coarest) level the image is reduce by a factor of 8 in the column dimension, factor of 4 in the row dimension and factor of 4 in the slice dimension. In the second level, the image is reduce by a factor of 4 in the column dimension, 4 is the row dimension and 2 in the slice dimension.
The method SetNumberOfLevels() set the number of computation levels in the pyramid. This method will allocate memory for the multi-resolution rescale schedule table. This method generates defaults tables with the starting shrink factor for all dimension set to 2^(NumberOfLevel - 1) All factors are halved for all subsequent levels. For example if the number of levels was set to 4, the default table is: 8 8 8 4 4 4 2 2 2 1 1 1
The user can get a copy of the rescale schedule via GetRescaleSchedule() They may make alteration and reset it using SetRescaleSchedule()
To generate each output image, recursive Gaussian smoothing is performed using a SmoothingRecursiveGaussianImageFilter.
The user can make alteration on smoothing schedule via SetSmoothingSchedule() For example, for 4 levels smoothing schedule would be: 3 4 5 2 2 2 0 1 2 0 0 0
In the first level all sigma are set to the same value 2 across each axis. Sigma is measured in the units of image spacing. Use different values along each axis if you would like perform nonidentical smoothing (see level 1) Although for the level 2 no smoothing will be performed because all sigma values are equal zeros. For the last level 3 smoothing will be performed with sigma 0 for x axis.
The default smoothing schedule is derived from the rescale schedule, where each element is computed as: 0.5 * rescale_factor * image_spacing.
The user can get a copy of the schedule via GetSmoothingSchedule()
The smoothed image is then downsampled using a ResampleImageFilter or ShrinkImageFilter depending on SetUseShrinkImageFilter().
When this filter is updated, NumberOfLevels outputs are produced. The N'th output correspond to the N'th level of the pyramid.
The user can influence whether or not rescale schedule or smoothing schedule will be used via SetUseMultiResolutionRescaleSchedule() and SetUseMultiResolutionSmoothingSchedule() methods.
The GenericMultiResolutionPyramidImageFilter provides direct control to compute only single level of the pyramid via SetCurrentLevel() and SetComputeOnlyForCurrentLevel() methods.
Definition at line 105 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef SmartPointer< const Self > itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 116 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::InputImageConstPointer itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::InputImageConstPointer |
Definition at line 137 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::InputImagePointer itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Definition at line 135 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::InputImageType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::InputImageType |
Definition at line 133 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::OutputImagePointer itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::OutputImagePointer |
Definition at line 136 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::OutputImageType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::OutputImageType |
Definition at line 134 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef InputImageType::PixelType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::PixelType |
Definition at line 139 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef SmartPointer< Self > itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 115 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef SigmaArrayType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::RescaleFactorArrayType |
Definition at line 149 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef ScheduleType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::RescaleScheduleType |
Definition at line 144 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef NumericTraits< PixelType >::ScalarRealType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::ScalarRealType |
Definition at line 140 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::ScheduleType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::ScheduleType |
Inherit types from Superclass.
Definition at line 132 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef GenericMultiResolutionPyramidImageFilter itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 111 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef FixedArray< ScalarRealType, itkGetStaticConstMacro( ImageDimension ) > itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::SigmaArrayType |
Define the type for the sigma array.
Definition at line 148 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Array2D< ScalarRealType > itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::SmoothingScheduleType |
SmoothingScheduleType typedef support.
Definition at line 143 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::InputImageType::SpacingType itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::SpacingType |
Definition at line 138 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef MultiResolutionPyramidImageFilter< TInputImage, TOutputImage > itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 113 of file itkGenericMultiResolutionPyramidImageFilter.h.
typedef Superclass::Superclass itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::SuperSuperclass |
Definition at line 114 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
protected |
|
inlineprotected |
Definition at line 233 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
private |
|
private |
Returns true if all elements of rescaleFactorArray are ones, otherwise return false.
|
private |
Returns true if all elements of sigmaArray are zeros, otherwise return false.
|
private |
Checks whether we have to compute anything based on m_ComputeOnlyForCurrentLevel and m_CurrentLevel.
|
virtual |
|
virtual |
|
protectedvirtual |
Generate the output data.
|
protectedvirtual |
Overwrite the Superclass implementation: no padding required.
|
protectedvirtual |
GenericMultiResolutionPyramidImageFilter may produce images which are of different resolution and different pixel spacing than its input image. As such, GenericMultiResolutionPyramidImageFilter needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.
|
protectedvirtual |
Given one output whose requested region has been set, this method sets the requested region for the remaining output images. The original documentation of this method is below.
|
virtual |
Run-time type information (and related methods).
Reimplemented in elastix::FixedGenericPyramid< TElastix >.
|
virtual |
|
virtual |
Get the current multi-resolution level.
|
private |
Backward compatibility method to compute default sigma value.
|
inline |
Get the multi-resolution rescale schedule.
Definition at line 170 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
private |
Get sigmas from m_SmoothingSchedule for the level.
|
virtual |
Get the multi-resolution smoothing schedule.
|
virtual |
|
virtual |
|
private |
Returns true if caster will be used in the pipeline. This method check all levels of the smoothing schedule and returns true if one or more levels the sigma's are all zeros. Which means that we don't have to perform smoothing and simple cast operation could be used.
itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | ImageDimension | , |
unsigned | int, | ||
TInputImage::ImageDimension | |||
) |
ImageDimension enumeration.
itk::GenericMultiResolutionPyramidImageFilter< TInputImage, TOutputImage >::itkStaticConstMacro | ( | OutputImageDimension | , |
unsigned | int, | ||
TOutputImage::ImageDimension | |||
) |
|
static |
Method for creation through the object factory.
|
private |
|
protected |
|
protected |
Release the output data when the current level is used.
|
virtual |
Set a control on whether a current level will be used.
|
virtual |
Set the current multi-resolution levels. The current level is clamped to a total number of levels.
|
virtual |
Set the number of multi-resolution levels. The matrices containing the schedule will be resized accordingly. The schedules are populated with default values.
|
virtual |
Set a multi-resolution rescale schedule. The input schedule must have only ImageDimension number of columns and NumberOfLevels number of rows. For each dimension, the shrink factor must be non-increasing with respect to subsequent levels. This function will clamp shrink factors to satisfy this condition. All shrink factors less than one will also be clamped to the value of 1.
|
virtual |
Set a multi-resolution schedule. The input schedule must have only ImageDimension number of columns and NumberOfLevels number of rows. For each dimension, the shrink factor must be non-increasing with respect to subsequent levels. This function will clamp shrink factors to satisfy this condition. All shrink factors less than one will also be clamped to the value of 1.
|
virtual |
Set a multi-resolution smoothing schedule. The input schedule must have only ImageDimension number of columns and NumberOfLevels number of rows. All sigmas less than 0 will also be clamped to the value of 0.
|
private |
Initialize m_SmoothingSchedule to default values for backward compatibility.
|
virtual |
Set a control on whether a multi-resolution rescale schedule will be used. If UseMultiResolutionRescaleSchedule has been set to false then all output images will have same dimension and properties as the input image. The shrink factors will not be applied. The default is true.
|
virtual |
Set a control on whether a multi-resolution smoothing schedule will be used. If UseMultiResolutionSmoothingSchedule has been set to false then all output images will not be blurred. The default is true.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 264 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
protected |
Definition at line 262 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
protected |
Definition at line 261 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
protected |
Definition at line 267 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
protected |
Definition at line 265 of file itkGenericMultiResolutionPyramidImageFilter.h.
|
protected |
Definition at line 266 of file itkGenericMultiResolutionPyramidImageFilter.h.
Generated on 11-03-2014 for elastix by ![]() |
![]() |