35 template <
class TCoordRep,
unsigned int NPo
intDimension = 3>
36 class Point :
public itk::Point<TCoordRep, NPointDimension>
42 template <
typename TPo
intValueType>
47 template <
typename TPo
intValueType>
48 explicit Point(
const TPointValueType r[NPointDimension]) :
itk::
Point<TCoordRep, NPointDimension>(r)
52 template <
typename TPo
intValueType>
53 explicit Point(
const TPointValueType &v) :
itk::
Point<TCoordRep, NPointDimension>(v)
58 : itk::Point<TCoordRep, NPointDimension>(r)
64 : itk::Point<TCoordRep, NPointDimension>(p)
74 template <
typename ArrayType>
77 itk::FixedArray<TCoordRep, NPointDimension> *thisP =
78 dynamic_cast<itk::FixedArray<TCoordRep, NPointDimension> *
>(
this);
79 mitk::FillArray<ArrayType, TCoordRep, NPointDimension>(*thisP, array);
87 template <
typename ArrayType>
90 mitk::ToArray<ArrayType, TCoordRep, NPointDimension>(array, *
this);
111 template <
typename TCoordRep,
unsigned int NPo
intDimension>
112 inline bool Equal(
const itk::Point<TCoordRep, NPointDimension> &point1,
113 const itk::Point<TCoordRep, NPointDimension> &point2,
115 bool verbose =
false)
118 typename itk::Point<TCoordRep, NPointDimension>::VectorType diff = point1 - point2;
119 for (
unsigned int i = 0; i < NPointDimension; i++)
Point< ScalarType, 2 > Point2D
void ConditionalOutputOfDifference(ElementToOutput1 elem1, ElementToOutput2 elem2, mitk::ScalarType eps, bool verbose, bool isEqual)
MITKCORE_EXPORT const ScalarType eps
Point< ScalarType, 4 > Point4D
DataCollection - Class to facilitate loading/accessing structured data.
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.
void ToArray(ArrayType array) const
Point< ScalarType, 3 > Point3D
Point(const Point< TPointValueType, NPointDimension > &r)
Point(const TPointValueType r[NPointDimension])
Point(const TPointValueType &v)
bool DifferenceBiggerOrEqualEps(DifferenceType diff, mitk::ScalarType epsilon=mitk::eps)
void FillPoint(const ArrayType &array)
PointSpecificationType
enumeration of the type a point can be