1010# include < itkTimeProbe.h>
1111#endif
1212
13+ #include < rtkQuadricShape.h>
14+
1315namespace pct
1416{
1517
@@ -29,19 +31,21 @@ class ITK_TEMPLATE_EXPORT MostLikelyPathFunction : public itk::LightObject
2931 using ConstPointer = itk::SmartPointer<const Self>;
3032
3133 /* * Useful defines. */
34+ // PointType definition based on rtk::QuadricShape to be compatible with RTK 2 and 3
35+ using PointType = rtk::QuadricShape::PointType;
3236 using VectorType = itk::Vector<TCoordRep, 3 >;
3337
3438 /* * Init the mlp parameters from the input and output directions and positions. */
3539 virtual void
36- Init (const VectorType posIn, const VectorType posOut, const VectorType dirIn, const VectorType dirOut)
40+ Init (const PointType posIn, const PointType posOut, const VectorType dirIn, const VectorType dirOut)
3741 {
3842 itkGenericExceptionMacro (" This version of the Init method not implemented for derived class." );
3943 }
4044
4145 /* * Init the mlp parameters from the input and output directions and positions, and energies. */
4246 virtual void
43- Init (const VectorType posIn,
44- const VectorType posOut,
47+ Init (const PointType posIn,
48+ const PointType posOut,
4549 const VectorType dirIn,
4650 const VectorType dirOut,
4751 double eIn,
@@ -52,8 +56,8 @@ class ITK_TEMPLATE_EXPORT MostLikelyPathFunction : public itk::LightObject
5256
5357 /* * Init with additional parameters to consider tracker uncertainties */
5458 virtual void
55- InitUncertain (const VectorType posIn,
56- const VectorType posOut,
59+ InitUncertain (const PointType posIn,
60+ const PointType posOut,
5761 const VectorType dirIn,
5862 const VectorType dirOut,
5963 double dEntry,
0 commit comments