Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
16 #include <itkFixedArray.h>
38 template <
typename ArrayType,
typename TCoordRep,
unsigned int NVectorDimension>
39 void FillArray(itk::FixedArray<TCoordRep, NVectorDimension> &toArray,
const ArrayType &array)
41 for (
unsigned short int var = 0; var < NVectorDimension; ++var)
43 toArray[var] = array[var];
55 template <
typename ArrayType,
typename TCoordRep,
unsigned int NVectorDimension>
56 itk::FixedArray<TCoordRep, NVectorDimension>
FillArray(
const ArrayType &array)
58 itk::FixedArray<TCoordRep, NVectorDimension> vectorOrPoint;
74 template <
typename ArrayType,
typename TCoordRep,
unsigned int NVectorDimension>
75 void ToArray(ArrayType &array,
const itk::FixedArray<TCoordRep, NVectorDimension> &vectorOrPoint)
77 for (
unsigned short int var = 0; var < NVectorDimension; ++var)
79 array[var] = vectorOrPoint[var];
92 template <
typename ArrayType,
typename TCoordRep,
unsigned int NVectorDimension>
93 ArrayType
ToArray(
const itk::FixedArray<TCoordRep, NVectorDimension> &vectorOrPoint)
104 template <
class Tout>
112 template <
class Tout>
126 template <
typename TArrayType1,
typename TArrayType2>
128 TArrayType1 &arrayType1, TArrayType2 &arrayType2,
int size,
ScalarType eps =
mitk::eps,
bool verbose =
false)
131 for (
int var = 0; var < size; ++var)
133 isEqual = isEqual &&
Equal(arrayType1[var], arrayType2[var],
eps);
const MITKCORE_EXPORT ScalarType eps
void FillVector4D(Tout &out, mitk::ScalarType x, mitk::ScalarType y, mitk::ScalarType z, mitk::ScalarType t)
void ToArray(ArrayType &array, const itk::FixedArray< TCoordRep, NVectorDimension > &vectorOrPoint)
Copies the elements of this into an array.
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
Find image slices visible on a given plane.
void FillVector3D(Tout &out, mitk::ScalarType x, mitk::ScalarType y, mitk::ScalarType z)
void ConditionalOutputOfDifference(ElementToOutput1 elem1, ElementToOutput2 elem2, mitk::ScalarType eps, bool verbose, bool isEqual)
void FillArray(itk::FixedArray< TCoordRep, NVectorDimension > &toArray, const ArrayType &array)
Copies elements of an array to this Vector.
bool EqualArray(TArrayType1 &arrayType1, TArrayType2 &arrayType2, int size, ScalarType eps=mitk::eps, bool verbose=false)