The Bspline_xform class encapsulates the B-spline coefficients used by native registration and warping algorithms. Information describing the B-spline geometry is held in the base class: Bspline_header.
More...
#include <bspline_xform.h>
The Bspline_xform class encapsulates the B-spline coefficients used by native registration and warping algorithms. Information describing the B-spline geometry is held in the base class: Bspline_header.
◆ Lut_type
Enumerator |
---|
LUT_3D_ALIGNED | |
LUT_1D_ALIGNED | |
LUT_1D_UNALIGNED | |
◆ Bspline_xform()
Bspline_xform::Bspline_xform |
( |
| ) |
|
◆ ~Bspline_xform()
Bspline_xform::~Bspline_xform |
( |
| ) |
|
◆ allocate()
void Bspline_xform::allocate |
( |
| ) |
|
|
protected |
Allocate and initialize coefficients and LUTs
◆ fill_coefficients()
void Bspline_xform::fill_coefficients |
( |
float | val | ) |
|
◆ get_plm_image_header()
◆ get_volume_header()
◆ initialize() [1/2]
void Bspline_xform::initialize |
( |
const Plm_image_header * | pih, |
|
|
const float | grid_spac[3] ) |
Initialize B-spline geometry and allocate memory for coefficients. This version of the function gets used when creating a B-Spline with a specified grid spacing.
- Parameters
-
pih | The image geometry associated with B-spline |
grid_spac | The B-Spline grid spacing (in mm) |
◆ initialize() [2/2]
void Bspline_xform::initialize |
( |
float | img_origin[3], |
|
|
float | img_spacing[3], |
|
|
plm_long | img_dim[3], |
|
|
plm_long | roi_offset[3], |
|
|
plm_long | roi_dim[3], |
|
|
plm_long | vox_per_rgn[3], |
|
|
float | direction_cosines[9] ) |
Initialize B-spline geometry and allocate memory for coefficients. This version of the function gets used when loading a B-Spline from file.
◆ jitter_if_zero()
void Bspline_xform::jitter_if_zero |
( |
| ) |
|
This function jitters the coefficients if they are all zero. It is used to prevent local minima artifact when optimizing an MI cost function for images with the same geometry.
◆ log_header()
void Bspline_xform::log_header |
( |
| ) |
|
◆ save()
void Bspline_xform::save |
( |
const char * | filename | ) |
|
◆ SMART_POINTER_SUPPORT()
◆ bx_lut
float* Bspline_xform::bx_lut |
◆ by_lut
float* Bspline_xform::by_lut |
◆ bz_lut
float* Bspline_xform::bz_lut |
◆ c_lut
plm_long* Bspline_xform::c_lut |
◆ cidx_lut
plm_long* Bspline_xform::cidx_lut |
◆ coeff
float* Bspline_xform::coeff |
Array of B-spline coefficients.
◆ lut_type
Choose which kind of LUT is used
◆ q_lut
float* Bspline_xform::q_lut |
◆ qidx_lut
plm_long* Bspline_xform::qidx_lut |
◆ ux_lut
float* Bspline_xform::ux_lut |
◆ uy_lut
float* Bspline_xform::uy_lut |
◆ uz_lut
float* Bspline_xform::uz_lut |
The documentation for this class was generated from the following files: