20 #ifndef MIRTK_RegisteredImage_H 21 #define MIRTK_RegisteredImage_H 23 #include "mirtk/GenericImage.h" 25 #include "mirtk/Parallel.h" 26 #include "mirtk/Transformation.h" 27 #include "mirtk/InterpolationMode.h" 28 #include "mirtk/ExtrapolationMode.h" 30 #include "mirtk/TestProd.h" 84 enum Channel { I = 0, Dx, Dy, Dz, Dxx, Dxy, Dxz, Dyx, Dyy, Dyz, Dzx, Dzy, Dzz };
201 SharedPtr<Object> _Evaluator;
263 bool intensity =
true,
bool gradient =
false,
bool hessian =
false,
274 const DisplacementImageType *disp,
275 bool intensity =
true,
bool gradient =
false,
bool hessian =
false);
289 void Update(
bool intensity =
true,
bool gradient =
false,
bool hessian =
false,
315 template <
class,
class,
class,
class>
void Update2(
const blocked_range3d<int> &,
bool,
bool,
bool);
346 #endif // MIRTK_RegisteredImage_H int NumberOfVoxels() const
Number of voxels per registered channel.
int _NumberOfActiveLevels
Number of active levels.
GenericImage< double > DisplacementImageType
Type of cached displacement fields.
int _y
Image y-dimension (in voxels)
enum InterpolationMode GetInterpolationMode() const
void ComputeInputHessian(double sigma)
Channel
Enumeration of registered image channel indices.
RegisteredImage & operator=(const RegisteredImage &)
Assignment operator.
InterpolationMode
Image interpolation modes.
ImageAttributes _attr
Image attributes.
void Update(const blocked_range3d< int > ®ion, bool intensity=true, bool gradient=false, bool hessian=false, bool force=false)
~RegisteredImage()
Destructor.
void ImageToWorld(double &, double &) const
Image to world coordinate conversion with two doubles.
int _z
Image z-dimension (in voxels)
void ComputeInputGradient(double sigma)
int _t
Image t-dimension (in voxels)
mirtkComponentMacro(DisplacementImageType, FixedDisplacement)
Pre-computed fixed displacements.
GenericImage< VoxelType > InputImageType
Type of untransformed input image.
ExtrapolationMode
Image extrapolation modes.
mirtkReadOnlyAttributeMacro(double, MinInputIntensity)
Minimum foreground intensity of input image.
mirtkPublicComponentMacro(InputGradientType, InputGradient)
Untransformed input gradient image.
mirtkPublicAggregateMacro(InputImageType, InputImage)
Untransformed input image.
GenericImage< VoxelType > InputHessianType
Type of untransformed Hessian image.
int Offset(int) const
Offset of channel c with respect to the start of the image data.
virtual void Initialize()
Initialize a previously allocated image.
GenericImage< VoxelType > InputGradientType
Type of untransformed gradient image.
int NumberOfChannels() const
Number of registered channels.
int _NumberOfPassiveLevels
Number of passive levels (fixed transformation)
int _Offset[13]
Offsets of the different registered image channels.
int _x
Image x-dimension (in voxels)
RegisteredImage()
Constructor.
mirtkPublicAttributeMacro(enum InterpolationMode, InterpolationMode)
Interpolation mode.