Developer documentation
Version 3.0.3-105-gd3941f44
MR::Registration::Warp Namespace Reference

Classes

class  ComposeDispKernel
 
class  ComposeHalfwayKernel
 
class  ComposeLinearDeformKernel
 
class  ComposeLinearDispKernel
 

Functions

template<class DisplacementFieldType , class DeformationFieldType >
FORCE_INLINE void compose_linear_displacement (const transform_type &transform, DisplacementFieldType &disp_in, DeformationFieldType &deform_out)
 
template<class InputDeformationFieldType , class OutputDeformationFieldType >
FORCE_INLINE void compose_linear_deformation (const transform_type &transform, InputDeformationFieldType &deform_in, OutputDeformationFieldType &deform_out)
 
FORCE_INLINE void update_displacement (Image< default_type > &input, Image< default_type > &update, Image< default_type > &output, default_type step=1.0)
 
FORCE_INLINE void update_displacement_scaling_and_squaring (Image< default_type > &input, Image< default_type > &update, Image< default_type > &output, const default_type step=1.0)
 
template<class DeformationField1Type , class DeformationField2Type , class OutputDeformationFieldType >
FORCE_INLINE void compute_full_deformation (const transform_type &linear1, DeformationField1Type &deform1, DeformationField2Type &deform2, const transform_type &linear2, OutputDeformationFieldType &deform_out)
 
template<class DeformationField1Type , class DeformationField2Type , class OutputDeformationFieldType >
FORCE_INLINE void compute_full_deformation (std::string message, const transform_type &linear1, DeformationField1Type &deform1, DeformationField2Type &deform2, const transform_type &linear2, OutputDeformationFieldType &deform_out)
 
template<class WarpType >
FORCE_INLINE WarpType compute_midway_deformation (WarpType &warp, const int from)
 
template<class WarpType , class TemplateType >
FORCE_INLINE WarpType compute_full_deformation (WarpType &warp, TemplateType &template_image, const int from)
 
template<class ImageType >
void displacement2deformation (ImageType &input, ImageType &output)
 
template<class ImageType >
void deformation2displacement (ImageType &input, ImageType &output)
 
template<class HeaderType >
void check_warp (const HeaderType &warp_header)
 
template<class HeaderType >
void check_warp_full (const HeaderType &warp_header)
 
template<class InputWarpType >
transform_type parse_linear_transform (InputWarpType &input_warps, std::string name)
 
FORCE_INLINE void invert_deformation (Image< default_type > &deform_field, Image< default_type > &inv_deform_field, bool is_initialised=false, size_t max_iter=50, default_type error_tolerance=0.0001)
 
FORCE_INLINE void invert_displacement_deformation (Image< default_type > &disp, Image< default_type > &inv_deform, bool is_initialised=false, size_t max_iter=50, default_type error_tolerance=0.0001)
 
FORCE_INLINE void invert_displacement (Image< default_type > &disp_field, Image< default_type > &inv_disp_field, size_t max_iter=50, default_type error_tolerance=0.0001)
 

Function Documentation

◆ check_warp()

template<class HeaderType >
void MR::Registration::Warp::check_warp ( const HeaderType &  warp_header)
inline

Definition at line 29 of file helpers.h.

◆ check_warp_full()

template<class HeaderType >
void MR::Registration::Warp::check_warp_full ( const HeaderType &  warp_header)
inline

Definition at line 38 of file helpers.h.

◆ compose_linear_deformation()

template<class InputDeformationFieldType , class OutputDeformationFieldType >
FORCE_INLINE void MR::Registration::Warp::compose_linear_deformation ( const transform_type transform,
InputDeformationFieldType &  deform_in,
OutputDeformationFieldType &  deform_out 
)

Definition at line 145 of file compose.h.

◆ compose_linear_displacement()

template<class DisplacementFieldType , class DeformationFieldType >
FORCE_INLINE void MR::Registration::Warp::compose_linear_displacement ( const transform_type transform,
DisplacementFieldType &  disp_in,
DeformationFieldType &  deform_out 
)

Definition at line 137 of file compose.h.

◆ compute_full_deformation() [1/3]

template<class DeformationField1Type , class DeformationField2Type , class OutputDeformationFieldType >
FORCE_INLINE void MR::Registration::Warp::compute_full_deformation ( const transform_type linear1,
DeformationField1Type &  deform1,
DeformationField2Type &  deform2,
const transform_type linear2,
OutputDeformationFieldType &  deform_out 
)

Definition at line 222 of file compose.h.

◆ compute_full_deformation() [2/3]

template<class DeformationField1Type , class DeformationField2Type , class OutputDeformationFieldType >
FORCE_INLINE void MR::Registration::Warp::compute_full_deformation ( std::string  message,
const transform_type linear1,
DeformationField1Type &  deform1,
DeformationField2Type &  deform2,
const transform_type linear2,
OutputDeformationFieldType &  deform_out 
)

Definition at line 233 of file compose.h.

◆ compute_full_deformation() [3/3]

template<class WarpType , class TemplateType >
FORCE_INLINE WarpType MR::Registration::Warp::compute_full_deformation ( WarpType &  warp,
TemplateType &  template_image,
const int  from 
)

Definition at line 264 of file compose.h.

◆ compute_midway_deformation()

template<class WarpType >
FORCE_INLINE WarpType MR::Registration::Warp::compute_midway_deformation ( WarpType &  warp,
const int  from 
)

Definition at line 243 of file compose.h.

◆ deformation2displacement()

template<class ImageType >
void MR::Registration::Warp::deformation2displacement ( ImageType &  input,
ImageType &  output 
)

Definition at line 44 of file convert.h.

◆ displacement2deformation()

template<class ImageType >
void MR::Registration::Warp::displacement2deformation ( ImageType &  input,
ImageType &  output 
)

Definition at line 34 of file convert.h.

◆ parse_linear_transform()

template<class InputWarpType >
transform_type MR::Registration::Warp::parse_linear_transform ( InputWarpType &  input_warps,
std::string  name 
)

Definition at line 49 of file helpers.h.

◆ update_displacement()

FORCE_INLINE void MR::Registration::Warp::update_displacement ( Image< default_type > &  input,
Image< default_type > &  update,
Image< default_type > &  output,
default_type  step = 1.0 
)

Definition at line 152 of file compose.h.

◆ update_displacement_scaling_and_squaring()

FORCE_INLINE void MR::Registration::Warp::update_displacement_scaling_and_squaring ( Image< default_type > &  input,
Image< default_type > &  update,
Image< default_type > &  output,
const default_type  step = 1.0 
)

Definition at line 159 of file compose.h.