Point
From IGSTK
Contents |
Original Motivations
- Currently we use itk::Point<double,3> as our 3D point structure. It is defined in multiple places: igstkEvents.h, Landmark3DRegistrationErrorEstimator.h, and Transform.h (also in PivotCalibrationAlgorithm.h).
- IGSTK should use a uniform type for points both 2D and 3D, and define it in a single location [the need for 2D points will arise when we work with video images, ZY].
- Is it sufficient to define igstkPoint3D and igstkPoint2D in a single place as itk points with data type double? [I think it is, as I do not have a use case for extending this type of data to include time, ZY].
Proposed Classes
Point 3D
- Make it derive privately from the itkPoint<double,3>.
- Overload only its [] operator by adding a bounds check for {0,1,3}
- Use this point declaration in all other classes needed a Point 3D type.
- The point should have a pointer to a reference frame object (an igstkSpatialObject).
Point 2D
- Use cases ?
