ImFusion C++ SDK 4.5.0
ImFusion::SimulatenousMultiImageDemonsRegistration Class Reference

#include <ImFusion/Reg/DemonsImageRegistration.h>

DemonsImageRegistration with alreadySplitChannels = true in the constructor. More...

Inheritance diagram for ImFusion::SimulatenousMultiImageDemonsRegistration:

Detailed Description

DemonsImageRegistration with alreadySplitChannels = true in the constructor.

This algorithm exists to make it possible to use this mode from the suite directly.

Public Member Functions

 SimulatenousMultiImageDemonsRegistration (SharedImageSet *image1, SharedImageSet *image2)
Public Member Functions inherited from ImFusion::DemonsImageRegistration
 DemonsImageRegistration (SharedImageSet *image1, SharedImageSet *image2, bool alreadySplitChannels=false)
 Constructor.
void initializeTransformationModel () override
void compute () override
 Execute the algorithm.
SharedImageSetreference () const override
 Returns the image that will be iterated during the registration.
void setFixedWeight (SharedImage *weight)
 Set a fixed weight image. This image is used across all channels if multiple channels are present. This is used in the smoothing of the forces to prioritize forces coming from the weighted area.
void setImage2 (SharedImageSet *img) override
std::shared_ptr< GlDenseDeformationdeformation () const
 Returns the deformation object that is currently modified This is a convenience method that casts moving to a SharedImageSet, retrieves its deformation and cast that to a GlDenseDeformation.
void reset () override
 Calls setIdentity() on the deformation of the moving image.
bool isDeformable () const override
 Returns if the registration is non-linear or not.
virtual double bestSimilarityValue () const override
 Returns the best value of the similarity measure after optimization (may return NaN if algorithm is not initialized).
void setConstrainDeformationByFixedImageMask (bool doConstrain)
 If set, the deformation field will be computed only for the region specified by the mask of the fixed image.
void configure (const Properties *p) override
 Configurable interface.
void configuration (Properties *p) const override
 Serialize the current object configuration into the given Properties object.
Public Member Functions inherited from ImFusion::AbstractImageRegistration
 AbstractImageRegistration (SharedImageSet *image1, SharedImageSet *image2)
virtual PreProcessingFilter requiredPreprocessingFilter () const
 Returns which pre-processing is required for the current registration settings.
virtual SharedImageSetimage1 () const
virtual SharedImageSetimage2 () const
virtual void setImage1 (SharedImageSet *img)
Public Member Functions inherited from ImFusion::Algorithm
 Algorithm ()
 Default constructor will registers a single "compute" action that calls compute() and returns status().
virtual OwningDataList takeOutput ()
 Return any new Data that was created by the Algorithm during the last call to compute().
virtual void setProgress (Progress *progress)
 Sets a Progress interface the algorithm can use to notify observers about its computing progress.
Progressprogress () const
 Returns the progress interface if set.
virtual int status () const
 Indicates the status of the last call to compute().
virtual bool survivesDataDeletion (const Data *) const
 Indicates whether the algorithm can handle (partial) deletion of the specified data, by default this checks whether the data is in the input list.
const FactoryInfofactoryInfo () const
 Returns the record describing how this Algorithm was instantiated by the AlgorithmFactory.
void setFactoryInfo (const FactoryInfo &value)
 Sets the record describing how this Algorithm was instantiated by the AlgorithmFactory.
Status runAction (const std::string &id)
 Run the action with name id if it exists.
const std::vector< Action > & actions ()
 Get a mapping from Action id to Action as registered in this algorithm.
Public Member Functions inherited from ImFusion::Configurable
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 Configurable (const Configurable &rhs)
 Configurable (Configurable &&rhs) noexcept
Configurable & operator= (const Configurable &)
Configurable & operator= (Configurable &&) noexcept

Static Public Member Functions

static bool createCompatible (const DataList &data, Algorithm **a)
Static Public Member Functions inherited from ImFusion::DemonsImageRegistration
static bool createCompatible (const DataList &data, Algorithm **a=0)
 Expects two Volumes/Images.
Static Public Member Functions inherited from ImFusion::Algorithm
static bool createCompatible (const DataList &data, Algorithm **a=nullptr)
 Factory function to check algorithm compatibility with input data and optionally instantiate it.

Additional Inherited Members

Public Types inherited from ImFusion::DemonsImageRegistration
enum class  Adjustment { DIFFEOMORPHIC = 0 , ADDITIVE = 1 , AFFINE = 2 }
 How to do the update step.
enum class  GradientType { REFERENCE = 0 , MOVING = 1 , SYMMETRIC = 2 }
 The Demons image algorithm requires the approximation of a gradient. More...
Public Types inherited from ImFusion::AbstractImageRegistration
enum  PreProcessingFilter { None , LC2_GradientMagnitude }
Public Types inherited from ImFusion::Algorithm
enum  Status {
  Unknown = -1 , Success = 0 , Error = 1 , InvalidInput ,
  IncompleteInput , OutOfMemoryHost , OutOfMemoryGPU , UnsupportedGPU ,
  UnknownAction , AbortedByUser , User = 1000
}
 Status codes. More...
Public Attributes inherited from ImFusion::DemonsImageRegistration
Parameter< int > p_minLevel
Parameter< int > p_maxLevel = {"maxLevel", 0, this}
 Highest level of the resolution pyramid. Is initialized in the constructor.
Parameter< int > p_halfKernelSize = {"halfKernelSize", 2, this}
 Half kernel size for force smoothing.
Parameter< double > p_alpha = {"alpha", 2.0, this}
 The weighting of the difference squared term in denominator of demons algorithm.
Parameter< Adjustmentp_adjustment = {"adjustment", Adjustment::DIFFEOMORPHIC, this}
Parameter< GradientTypep_gradientType = {"gradientType", GradientType::SYMMETRIC, this}
Parameter< int > p_maxIterations = {"maxIterations", 100, this}
 Maximum number of iterations per level.
Parameter< bool > p_restrictToInputs
 If true, gradient estimate is set to zero outside the input images.
Parameter< double > p_damping = {"damping", 1.0, this}
 Scaling of update step.
Parameter< bool > p_useAdamOptimizer = {"useAdamOptimizer", false, this}
 Use Adam optimizer for adaptive per-voxel step sizes.
Parameter< double > p_tolAbs
 Stop iterating once the similarity measure difference per iteration reaches this threshold.
Parameter< bool > p_verbose = {"verbose", true, this}
 Print info messages.
Parameter< bool > p_noSmoothingFinalStep = {"noSmoothingFinalStep", false, this}
 If true, do not smooth after the final iteration.
Parameter< int > p_affineSkip = {"affineSkip", 1, this}
 Number of iterations to skip between affine smoothing for Adjustment::AFFINE.
Parameter< std::vector< double > > p_channelWeights
 Weights for each channel. Forces are scaled by this amount (normalized by the total weight) in the update step. Only relevant for the multi-channel case.
Public Attributes inherited from ImFusion::Algorithm
Signal signalOutputChanged
 Signal should be emitted by Algorithms when their output/result has changed.
Signal signalParametersChanged
 Signal should be emitted by Algorithms when their parameter configuration has changed.
Public Attributes inherited from ImFusion::Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
Protected Member Functions inherited from ImFusion::DemonsImageRegistration
virtual void runRegistration (SharedImage *imageRef, SharedImage *imageMoving, Progress *progress, bool isLastLevel)
 Execute a single resolution pyramid level of the image registration.
void runMultiChannelRegistration (std::vector< SharedImage * > imageRef, std::vector< SharedImage * > imageMoving, Progress *progress, bool isLastLevel)
bool createProgram ()
Protected Member Functions inherited from ImFusion::AbstractImageRegistration
bool complainAboutDeformationOnFixedImage ()
Protected Member Functions inherited from ImFusion::Algorithm
void loadDefaults ()
void registerAction (const std::string &id, const std::string &guiName, const std::function< Algorithm::Status(void)> &action)
 Register an action to be run via runAction.
template<typename D>
void registerAction (const std::string &id, const std::string &guiName, Algorithm::Status(D::*action)(void))
 Template version of runAction that can be used with a pointer to a member function.
void registerAction (const Action &action)
 Register an action.
Protected Attributes inherited from ImFusion::DemonsImageRegistration
GL::ImageProgramm_progDemons = nullptr
 Shader program for demons force update.
bool m_exportDeformationFields = false
bool m_logData = false
 Whether to write intermediate values to DataLogger.
VectorFieldFlowAlgorithm m_vff
 Adjustment used for updating displacement field, cf. the Diffeomorphic Demons paper.
double m_bestSimilarity = std::numeric_limits<double>::quiet_NaN()
SharedImagem_fixedWeight = nullptr
 Best similarity value obtained after registration.
double m_minWeight = 0.01
bool m_alreadySplitChannels = false
bool m_constrainDeformationByFixedImageMask = true
 Mask of fixed image will be applied to deformation field as explicit mask.
Protected Attributes inherited from ImFusion::AbstractImageRegistration
SharedImageSetm_image1
 First image of the registration.
SharedImageSetm_image2
 Second image of the registration.
PointCorrAlgorithmm_pcAlg
 Optional point correspondences for evaluation.
Protected Attributes inherited from ImFusion::Algorithm
std::string m_name
 Algorithm name.
Progressm_progress = nullptr
 Non-owing pointer to a progress interface. May be a nullptr.
FactoryInfo m_factoryInfo = {}
 Record describing how this algorithm was instantiated by the AlgorithmFactory.
int m_status = Status::Unknown
 Algorithm status after last call to compute().
std::vector< Actionm_actions
 Map of key given by the id of the action, of the available actions of this algorithm.
Protected Attributes inherited from ImFusion::Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.

The documentation for this class was generated from the following file:
  • ImFusion/Reg/DemonsImageRegistration.h
Search Tab / S to search, Esc to close