18 #ifndef __itkDiscreteBasisMatrixGenerator_h 19 #define __itkDiscreteBasisMatrixGenerator_h 35 template <
typename TElement =
double>
53 typedef typename Superclass::MatrixType
MatrixType;
60 itkSetMacro(BasisOrientations, MatrixPointer);
61 itkGetMacro(BasisOrientations, MatrixPointer);
65 int numberOfBasis = this->m_BasisOrientations->Rows();
66 if (m_UseIsotropicTerm)
72 itkSetMacro(UseIsotropicTerm,
bool);
73 itkGetMacro(UseIsotropicTerm,
bool);
74 itkBooleanMacro(UseIsotropicTerm);
76 void Flip(
const int flipx,
const int flipy,
const int flipz)
override 78 std::vector<int> flipVec(3);
79 flipVec[0]=flipx, flipVec[1]=flipy, flipVec[2]=flipz;
80 MatrixPointer mat (
new MatrixType());
82 m_BasisOrientations = mat;
92 void PrintSelf(std::ostream& os, Indent indent)
const ITK_OVERRIDE;
93 typename LightObject::Pointer InternalClone()
const ITK_OVERRIDE;
101 void operator=(
const Self&);
107 #define ITK_TEMPLATE_DiscreteBasisMatrixGenerator(_, EXPORT, x, y) namespace itk { \ 108 _(2(class EXPORT DiscreteBasisMatrixGenerator< ITK_TEMPLATE_2 x >)) \ 109 namespace Templates { typedef DiscreteBasisMatrixGenerator< ITK_TEMPLATE_2 x > DiscreteBasisMatrixGenerator##y; } \ 112 #if ITK_TEMPLATE_EXPLICIT 113 # include "Templates/itkDiscreteBasisMatrixGenerator+-.h" 116 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkDiscreteBasisMatrixGenerator_hxx) void Flip(const int flipx, const int flipy, const int flipz) override
Superclass::VectorPointer VectorPointer
Superclass::STDVectorType STDVectorType
DiscreteBasisMatrixGenerator Self
Superclass::STDVectorPointer STDVectorPointer
int GetNumberOfBasis() const override
BasisMatrixGenerator< TElement > Superclass
NDArray< T, 2 > FlipOrientations(const NDArray< T, 2 > &in, const std::vector< int > &flip)
utl_shared_ptr< MatrixType > MatrixPointer
Superclass::MatrixPointer MatrixPointer
Superclass::VectorType VectorType
virtual ~DiscreteBasisMatrixGenerator()
Superclass::MatrixType MatrixType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
MatrixPointer m_BasisOrientations