18 #ifndef itkDeformableSimplexMesh3DGradientConstraintForceFilter_h 19 #define itkDeformableSimplexMesh3DGradientConstraintForceFilter_h 45 ImageVoxel(
int *pos,
double *subpos,
double val,
double dist,
unsigned int ind)
47 this->m_Vpos[0] = pos[0];
48 this->m_Vpos[1] = pos[1];
49 this->m_Vpos[2] = pos[2];
50 this->m_Spos[0] = subpos[0];
51 this->m_Spos[1] = subpos[1];
52 this->m_Spos[2] = subpos[2];
54 this->m_Distance = dist;
59 unsigned int GetX(
void)
const {
return m_Vpos[0]; }
61 unsigned int GetY(
void)
const {
return m_Vpos[1]; }
63 unsigned int GetZ(
void)
const {
return m_Vpos[2]; }
71 void SetValue(
const double val) { m_Value = val; }
85 template<
typename TInputMesh,
typename TOutputMesh >
131 itkSetMacro(Range,
int);
132 itkGetConstMacro(Range,
int);
148 itkSetConstObjectMacro(
Image, OriginalImageType);
155 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
160 virtual void ComputeExternalForce(
SimplexMeshGeometry *data,
const GradientImageType *gradientImage) ITK_OVERRIDE;
168 double NextVoxel(
const double *pp,
int *ic,
double *x,
double *y,
double *z);
185 #ifndef ITK_MANUAL_INSTANTIATION 186 #include "itkDeformableSimplexMesh3DGradientConstraintForceFilter.hxx" ImageVoxel(int *pos, double *subpos, double val, double dist, unsigned int ind)
double GetValue(void) const
returns voxel value
signed long IndexValueType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
void SetValue(const double val)
returns voxel position
unsigned int GetX(void) const
returns voxel X coordinate (voxel column)
Superclass::IndexType IndexType
unsigned int GetY(void) const
returns voxel Y coordinate (voxel row)
unsigned int GetZ(void) const
returns voxel Z coordinate (voxel plane)
handle geometric properties for vertices of a simplx mesh
double GetDistance(void) const
returns voxel distance to origin
Control indentation during Print() invocation.
Templated n-dimensional image class.