|
using | ConstPointer = SmartPointer< const Self > |
|
using | DisplacementFieldPointer = typename Superclass::DisplacementFieldPointer |
|
using | DisplacementFieldType = typename Superclass::DisplacementFieldType |
|
using | FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType |
|
using | FixedImagePointer = typename Superclass::FixedImagePointer |
|
using | FixedImageType = typename Superclass::FixedImageType |
|
using | LevelSetMotionFunctionType = LevelSetMotionRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > |
|
using | MovingImagePointer = typename Superclass::MovingImagePointer |
|
using | MovingImageType = typename Superclass::MovingImageType |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = LevelSetMotionRegistrationFilter |
|
using | Superclass = PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > |
|
using | TimeStepType = typename Superclass::TimeStepType |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | DisplacementFieldPointer = typename DisplacementFieldType::Pointer |
|
using | DisplacementFieldType = TDisplacementField |
|
using | FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType |
|
using | FixedImageConstPointer = typename FixedImageType::ConstPointer |
|
using | FixedImagePointer = typename FixedImageType::Pointer |
|
using | FixedImageType = TFixedImage |
|
using | MovingImageConstPointer = typename MovingImageType::ConstPointer |
|
using | MovingImagePointer = typename MovingImageType::Pointer |
|
using | MovingImageType = TMovingImage |
|
using | OutputImageType = typename Superclass::OutputImageType |
|
using | PDEDeformableRegistrationFunctionType = PDEDeformableRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = PDEDeformableRegistrationFilter |
|
using | Superclass = DenseFiniteDifferenceImageFilter< TDisplacementField, TDisplacementField > |
|
using | StandardDeviationsType = FixedArray< double, ImageDimension > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType |
|
using | InputImageType = typename Superclass::InputImageType |
|
using | OutputImageType = typename Superclass::OutputImageType |
|
using | PixelType = typename Superclass::PixelType |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = DenseFiniteDifferenceImageFilter |
|
using | Superclass = FiniteDifferenceImageFilter< TDisplacementField, TDisplacementField > |
|
using | TimeStepType = typename Superclass::TimeStepType |
|
using | UpdateBufferType = OutputImageType |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | FiniteDifferenceFunctionType = FiniteDifferenceFunction< TDisplacementField > |
|
using | InputImageType = TDisplacementField |
|
using | InputPixelType = typename TDisplacementField ::PixelType |
|
using | InputPixelValueType = typename NumericTraits< InputPixelType >::ValueType |
|
using | NeighborhoodScalesType = typename FiniteDifferenceFunctionType::NeighborhoodScalesType |
|
using | OutputImageType = TDisplacementField |
|
using | OutputPixelType = typename TDisplacementField ::PixelType |
|
using | OutputPixelValueType = typename NumericTraits< OutputPixelType >::ValueType |
|
using | PixelType = OutputPixelType |
|
using | Pointer = SmartPointer< Self > |
|
using | RadiusType = typename FiniteDifferenceFunctionType::RadiusType |
|
using | Self = FiniteDifferenceImageFilter |
|
using | Superclass = InPlaceImageFilter< TDisplacementField, TDisplacementField > |
|
using | TimeStepType = typename FiniteDifferenceFunctionType::TimeStepType |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | InputImageConstPointer = typename InputImageType::ConstPointer |
|
using | InputImagePixelType = typename InputImageType::PixelType |
|
using | InputImagePointer = typename InputImageType::Pointer |
|
using | InputImageRegionType = typename InputImageType::RegionType |
|
using | InputImageType = TDisplacementField |
|
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
|
using | OutputImagePointer = typename Superclass::OutputImagePointer |
|
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
|
using | OutputImageType = typename Superclass::OutputImageType |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = InPlaceImageFilter |
|
using | Superclass = ImageToImageFilter< TDisplacementField, TDisplacementField > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | InputImageConstPointer = typename InputImageType::ConstPointer |
|
using | InputImagePixelType = typename InputImageType::PixelType |
|
using | InputImagePointer = typename InputImageType::Pointer |
|
using | InputImageRegionType = typename InputImageType::RegionType |
|
using | InputImageType = TDisplacementField |
|
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
|
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = ImageToImageFilter |
|
using | Superclass = ImageSource< TDisplacementField > |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
|
using | DataObjectPointer = DataObject::Pointer |
|
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
|
using | OutputImagePixelType = typename OutputImageType::PixelType |
|
using | OutputImagePointer = typename OutputImageType::Pointer |
|
using | OutputImageRegionType = typename OutputImageType::RegionType |
|
using | OutputImageType = TDisplacementField |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = ImageSource |
|
using | Superclass = ProcessObject |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
|
using | DataObjectPointer = DataObject::Pointer |
|
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
|
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
|
using | MultiThreaderType = MultiThreaderBase |
|
using | NameArray = std::vector< DataObjectIdentifierType > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = ProcessObject |
|
using | Superclass = Object |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = Object |
|
using | Superclass = LightObject |
|
using | ConstPointer = SmartPointer< const Self > |
|
using | Pointer = SmartPointer< Self > |
|
using | Self = LightObject |
|
|
void | ApplyUpdate (const TimeStepType &dt) override |
|
bool | Halt () override |
|
void | InitializeIteration () override |
|
| LevelSetMotionRegistrationFilter () |
|
void | PrintSelf (std::ostream &os, Indent indent) const override |
|
| ~LevelSetMotionRegistrationFilter () override=default |
|
| PDEDeformableRegistrationFilter () |
|
| ~PDEDeformableRegistrationFilter () override=default |
|
void | PrintSelf (std::ostream &os, Indent indent) const override |
|
bool | Halt () override |
|
void | CopyInputToOutput () override |
|
void | InitializeIteration () override |
|
virtual void | SmoothDisplacementField () |
|
virtual void | SmoothUpdateField () |
|
void | PostProcessOutput () override |
|
void | Initialize () override |
|
void | GenerateOutputInformation () override |
|
void | GenerateInputRequestedRegion () override |
|
void | AllocateUpdateBuffer () override |
|
void | ApplyUpdate (const TimeStepType &dt) override |
|
TimeStepType | CalculateChange () override |
|
void | CopyInputToOutput () override |
|
| DenseFiniteDifferenceImageFilter () |
|
virtual UpdateBufferType * | GetUpdateBuffer () |
|
void | PrintSelf (std::ostream &os, Indent indent) const override |
|
virtual void | ThreadedApplyUpdate (const TimeStepType &dt, const ThreadRegionType ®ionToProcess, ThreadIdType threadId) |
|
virtual TimeStepType | ThreadedCalculateChange (const ThreadRegionType ®ionToProcess, ThreadIdType threadId) |
|
| ~DenseFiniteDifferenceImageFilter () override=default |
|
| FiniteDifferenceImageFilter () |
|
| ~FiniteDifferenceImageFilter () override=default |
|
void | PrintSelf (std::ostream &os, Indent indent) const override |
|
virtual void | ApplyUpdate (const TimeStepType &dt)=0 |
|
void | GenerateData () override |
|
void | GenerateInputRequestedRegion () override |
|
virtual bool | ThreadedHalt (void *) |
|
virtual TimeStepType | ResolveTimeStep (const std::vector< TimeStepType > &timeStepList, const std::vector< bool > &valid) const |
|
virtual void | SetElapsedIterations (IdentifierType _arg) |
|
| InPlaceImageFilter ()=default |
|
| ~InPlaceImageFilter () override=default |
|
void | AllocateOutputs () override |
|
void | ReleaseInputs () override |
|
virtual bool | GetRunningInPlace () const |
|
void | PushBackInput (const DataObject *input) override |
|
void | PushFrontInput (const DataObject *input) override |
|
| ImageToImageFilter () |
|
| ~ImageToImageFilter () override=default |
|
void | VerifyInputInformation () ITKv5_CONST override |
|
virtual void | CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion) |
|
virtual void | CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion) |
|
| ImageSource () |
|
| ~ImageSource () override=default |
|
void | ClassicMultiThread (ThreadFunctionType callbackFunction) |
|
virtual void | ThreadedGenerateData (const OutputImageRegionType ®ion, ThreadIdType threadId) |
|
virtual void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) |
|
virtual void | BeforeThreadedGenerateData () |
|
virtual void | AfterThreadedGenerateData () |
|
virtual const ImageRegionSplitterBase * | GetImageRegionSplitter () const |
|
virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion) |
|
virtual bool | GetDynamicMultiThreading () const |
|
virtual void | SetDynamicMultiThreading (bool _arg) |
|
virtual void | DynamicMultiThreadingOn () |
|
virtual void | DynamicMultiThreadingOff () |
|
| ProcessObject () |
|
| ~ProcessObject () override |
|
DataObject * | GetInput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetInput (const DataObjectIdentifierType &key) const |
|
DataObject * | GetInput (DataObjectPointerArraySizeType idx) |
|
const DataObject * | GetInput (DataObjectPointerArraySizeType idx) const |
|
virtual void | SetInput (const DataObjectIdentifierType &key, DataObject *input) |
|
virtual void | SetNthInput (DataObjectPointerArraySizeType idx, DataObject *input) |
|
virtual void | AddInput (DataObject *input) |
|
virtual void | RemoveInput (const DataObjectIdentifierType &key) |
|
virtual void | RemoveInput (DataObjectPointerArraySizeType) |
|
DataObject * | GetPrimaryInput () |
|
const DataObject * | GetPrimaryInput () const |
|
virtual void | SetPrimaryInputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryInputName () const |
|
virtual void | SetPrimaryInput (DataObject *object) |
|
void | SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num) |
|
virtual void | SetNumberOfRequiredInputs (DataObjectPointerArraySizeType) |
|
virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredInputs () const |
|
bool | RemoveRequiredInputName (const DataObjectIdentifierType &) |
|
bool | IsRequiredInputName (const DataObjectIdentifierType &) const |
|
void | SetRequiredInputNames (const NameArray &) |
|
bool | AddRequiredInputName (const DataObjectIdentifierType &) |
|
bool | AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
|
void | AddOptionalInputName (const DataObjectIdentifierType &) |
|
void | AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx) |
|
DataObject * | GetOutput (const DataObjectIdentifierType &key) |
|
const DataObject * | GetOutput (const DataObjectIdentifierType &key) const |
|
virtual void | SetPrimaryOutputName (const DataObjectIdentifierType &key) |
|
virtual const char * | GetPrimaryOutputName () const |
|
DataObject * | GetOutput (DataObjectPointerArraySizeType i) |
|
const DataObject * | GetOutput (DataObjectPointerArraySizeType i) const |
|
virtual void | SetOutput (const DataObjectIdentifierType &name, DataObject *output) |
|
virtual void | RemoveOutput (const DataObjectIdentifierType &key) |
|
DataObject * | GetPrimaryOutput () |
|
const DataObject * | GetPrimaryOutput () const |
|
virtual void | SetPrimaryOutput (DataObject *object) |
|
virtual void | SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output) |
|
virtual void | AddOutput (DataObject *output) |
|
virtual void | RemoveOutput (DataObjectPointerArraySizeType idx) |
|
virtual void | SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg) |
|
virtual const DataObjectPointerArraySizeType & | GetNumberOfRequiredOutputs () const |
|
void | SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num) |
|
DataObjectIdentifierType | MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const |
|
DataObjectIdentifierType | MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const |
|
DataObjectPointerArraySizeType | MakeIndexFromInputName (const DataObjectIdentifierType &name) const |
|
DataObjectPointerArraySizeType | MakeIndexFromOutputName (const DataObjectIdentifierType &name) const |
|
bool | IsIndexedInputName (const DataObjectIdentifierType &) const |
|
bool | IsIndexedOutputName (const DataObjectIdentifierType &) const |
|
virtual void | VerifyPreconditions () ITKv5_CONST |
|
virtual void | GenerateOutputRequestedRegion (DataObject *output) |
|
virtual void | PropagateResetPipeline () |
|
virtual void | CacheInputReleaseDataFlags () |
|
virtual void | RestoreInputReleaseDataFlags () |
|
virtual bool | GetThreaderUpdateProgress () const |
|
virtual void | ThreaderUpdateProgressOn () |
|
virtual void | ThreaderUpdateProgressOff () |
|
virtual void | SetThreaderUpdateProgress (bool arg) |
|
| Object () |
|
| ~Object () override |
|
bool | PrintObservers (std::ostream &os, Indent indent) const |
|
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
|
virtual LightObject::Pointer | InternalClone () const |
|
| LightObject () |
|
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
|
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
|
virtual | ~LightObject () |
|
template<typename TFixedImage, typename TMovingImage, typename TDisplacementField>
class itk::LevelSetMotionRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >
Deformably register two images using level set motion.
LevelSetMotionFilter implements a deformable registration algorithm that aligns a fixed and a moving image under level set motion. The equations of motion are similar to those of the DemonsRegistrationFilter. The main differences are: (1) Gradients of the moving image are calculated on a smoothed image while intensity difference are measured on the original images (2) Magnitude of the motion vector is a function of the differences in intensity between the fixed and moving pixel. An adaptive timestep is calculated based on the maximum motion vector over the entire field to ensure stability. The timestep also implicitly converts the motion vector measured in units of intensity to a vector measured in physical units. Demons, on the other hand, defines its motion vectors as function of both the intensity differences and gradient magnitude at each respective pixel. Consider two separate pixels with the same intensity differences between the corresponding fixed and moving pixel pairs. In demons, the motion vector of the pixel over a low gradient region will be larger than the motion vector of the pixel over a large gradient region. This leads to an unstable vector field. In the levelset approach, the motion vectors will be proportional to the gradients, scaled by the maximum gradient over the entire field. The pixel with at the lower gradient position will more less than the pixel at the higher gradient position. (3) Gradients are calculated using minmod finite difference instead of using central differences.
A deformation field is represented as a image whose pixel type is some vector type with at least N elements, where N is the dimension of the fixed image. The vector type must support element access via operator []. It is assumed that the vector elements behave like floating point scalars.
This class is templated over the fixed image type, moving image type and the deformation field type.
The input fixed and moving images are set via methods SetFixedImage and SetMovingImage respectively. An initial deformation field maybe set via SetInitialDisplacementField or SetInput. If no initial field is set, a zero field is used as the initial condition.
The algorithm has one parameters: the number of iteration to be performed.
The output deformation field can be obtained via methods GetOutput or GetDisplacementField.
This class make use of the finite difference solver hierarchy. Update for each iteration is computed in LevelSetMotionFunction.
- Warning
- This filter assumes that the fixed image type, moving image type and deformation field type all have the same number of dimensions.
Ref: B.C. Vemuri, J. Ye, Y. Chen, C.M. Leonard. "Image registration via level-set motion: applications to atlas-based segmentation". Medical Image Analysis. Vol. 7. pp. 1-20. 2003.
- See also
- LevelSetMotionRegistrationFunction
-
DemonsRegistrationFilter
- Examples
- Examples/RegistrationITKv4/DeformableRegistration5.cxx.
Definition at line 91 of file itkLevelSetMotionRegistrationFilter.h.