-#include <plugins/Widgets/SplineWidget.h>
+#include <Widgets/SplineWidget.h>
#include <cpPlugins/DataObjects/Image.h>
#include <cpPlugins/DataObjects/Mesh.h>
#include <cpExtensions/Visualization/WindowLevelImageActor.h>
-#include <cpPlugins_BaseObjects.h>
+
+#include <itkVector.h>
#include <vtkImageData.h>
+#include <vtkPolyData.h>
#include <vtkRenderer.h>
#include <vtkSplineWidget.h>
#include <vtkParametricSpline.h>
typedef std::vector< _TVector > _TVectors;
unsigned long nPoints = this->m_Contour->GetNumberOfPoints( );
- double area = 0.0;
- for( unsigned long i = 0; i < nPoints; ++i )
- {
- double p[ 3 ], q[ 3 ];
- this->m_Contour->GetPoint( i, p );
- this->m_Contour->GetPoint( ( i + 1 ) % nPoints, q );
-
- area += ( q[ 0 ] + p[ 0 ] ) * ( q[ 1 ] - p[ 1 ] );
-
- } // rof
- std::cout << "Area: " << area << std::endl;
-
unsigned long support = nPoints / 10;
_TVectors pp, qp;
for( unsigned long i = 0; i < support; ++i )