![]() |
Shapeworks Studio
2.1
Shape analysis software suite
|
Process an input segmentation to produce an isotropically spaced version with holes filled and center-of-mass at the origin. More...
#include <itkPSMCleanAndCenterLabelMapImageFilter.h>
Public Types | |
typedef PSMCleanAndCenterLabelMapImageFilter | Self |
typedef ImageToImageFilter< TImage, TImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TImage | ImageType |
typedef ImageType::PixelType | PixelType |
typedef ImageType::PointType | PointType |
typedef ImageType::RegionType | RegionType |
typedef RegionType::SizeType | SizeType |
typedef RegionType::IndexType | IndexType |
Public Member Functions | |
itkNewMacro (Self) | |
itkTypeMacro (PSMCleanAndCenterLabelMapImageFilter, ImageToImageFilter) | |
itkStaticConstMacro (Dimension, unsigned int, TImage::ImageDimension) | |
void | GenerateData () |
itkSetMacro (ForegroundValue, PixelType) | |
itkGetMacro (ForegroundValue, PixelType) | |
itkSetMacro (BackgroundValue, PixelType) | |
itkGetMacro (BackgroundValue, PixelType) | |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | IsolateLargestComponent (ImageType *) const |
void | FillHoles (ImageType *) const |
void | ResampleToIsotropic (ImageType *) const |
void | Center (ImageType *) |
virtual void | GenerateOutputInformation () |
virtual void | GenerateInputRequestedRegion () |
Process an input segmentation to produce an isotropically spaced version with holes filled and center-of-mass at the origin.
This filter may be used to turn a label map (segmentation) image into an isotropic version with its center-of-mass at the origin. This filter is intended to be used as part of a preprocessing pipeline to prepare segmentations for use with any of the Particle Shape Modeling filters (e.g. PSMEntropyModelFilter).
The filter processes the input image as follows:
1) The largest connected component for the specified foreground component is identified and isolated. All other pixels in the image are set to the background value (default zero).
2) Holes are filled in the segmentation resulting from Step 1.
3) The image is resampled to isotropic voxels, if necessary.
4) The center of mass of the foreground object is computed and the center of the image is transformed to that location.
NOTE: This filter assumes that the upper-left-hand corner of the image is NOT part of the foreground.
WHAT ARE THE PARAMETERS?
This filter is templated over the input image type. It produces an output image of the same type.
Definition at line 63 of file itkPSMCleanAndCenterLabelMapImageFilter.h.
typedef TImage itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::ImageType |
Image-type-related typedefs
Definition at line 74 of file itkPSMCleanAndCenterLabelMapImageFilter.h.
typedef PSMCleanAndCenterLabelMapImageFilter itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::Self |
Standard class typedefs.
Definition at line 68 of file itkPSMCleanAndCenterLabelMapImageFilter.h.
|
protected |
Translates the center-of-mass to the center of the image. Also modifies the image information.
Definition at line 214 of file itkPSMCleanAndCenterLabelMapImageFilter.hxx.
|
protected |
Fills holes in the foreground segmentation.
Definition at line 171 of file itkPSMCleanAndCenterLabelMapImageFilter.hxx.
void itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::GenerateData | ( | ) |
Do the work of batch-processing the input images.
Definition at line 91 of file itkPSMCleanAndCenterLabelMapImageFilter.hxx.
|
protectedvirtual |
This filter must provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Definition at line 62 of file itkPSMCleanAndCenterLabelMapImageFilter.hxx.
|
protectedvirtual |
This filter must provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.
Definition at line 82 of file itkPSMCleanAndCenterLabelMapImageFilter.hxx.
|
protected |
Isolates the largest connected component in an image. Pixels in this component are set to the foreground value and pixels in other components are set to the background value.
Definition at line 122 of file itkPSMCleanAndCenterLabelMapImageFilter.hxx.
itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::itkNewMacro | ( | Self | ) |
Method for creation through the object factory.
itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::itkSetMacro | ( | ForegroundValue | , |
PixelType | |||
) |
Set/Get the foreground value. This is the label of interest in the input images. All other values in the input images will be considered background and relabeled to the background value in the output. You MUST set this value. Default value is 1.
itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::itkSetMacro | ( | BackgroundValue | , |
PixelType | |||
) |
Get/Set the background value. This is the value to which all non-foreground values will be changed in the output. The default value is zero.
itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::itkStaticConstMacro | ( | Dimension | , |
unsigned | int, | ||
TImage::ImageDimension | |||
) |
Dimensionality of the domain of the particle system.
itk::PSMCleanAndCenterLabelMapImageFilter< TImage >::itkTypeMacro | ( | PSMCleanAndCenterLabelMapImageFilter< TImage > | , |
ImageToImageFilter | |||
) |
Run-time type information (and related methods).
|
inlineprotected |
Resamples the image to isotropic voxel spacing if needed.
Definition at line 120 of file itkPSMCleanAndCenterLabelMapImageFilter.h.