]> Creatis software - FrontAlgorithms.git/blobdiff - plugins/Experiments/InsertNoiseIntoPoints.cxx
...
[FrontAlgorithms.git] / plugins / Experiments / InsertNoiseIntoPoints.cxx
index fef1f0db154ee2f52aefe9321e5c5812de39055c..0b98400b4b7a29e5007217990a18071234929f0f 100644 (file)
@@ -1,6 +1,6 @@
 #include <Experiments/InsertNoiseIntoPoints.h>
-#include <cpInstances/Image.h>
-#include <cpInstances/Mesh.h>
+#include <cpInstances/DataObjects/Image.h>
+#include <cpInstances/DataObjects/Mesh.h>
 
 #include <random>
 #include <vtkImageData.h>
@@ -11,8 +11,8 @@ fpaPluginsExperiments::InsertNoiseIntoPoints::
 InsertNoiseIntoPoints( )
   : Superclass( )
 {
-  typedef cpInstances::Image _TImage;
-  typedef cpInstances::Mesh  _TMesh;
+  typedef cpInstances::DataObjects::Image _TImage;
+  typedef cpInstances::DataObjects::Mesh  _TMesh;
 
   this->_ConfigureInput< _TMesh >( "Seeds", true, false );
   this->_ConfigureInput< _TImage >( "DistanceMap", true, false );
@@ -57,7 +57,7 @@ _GenerateData( )
       dmap->ComputeStructuredCoordinates( buf, ijk, pcoords );
       double radius =
         dmap->GetScalarComponentAsDouble( ijk[ 0 ], ijk[ 1 ], ijk[ 2 ], 0 );
-      double rad_dis = _TDist( 1e-5, radius * 0.9 )( gen );
+      double rad_dis = _TDist( 1e-2, radius * 0.9 )( gen );
       double the_dis = _TDist( 0, 3.14159265359 )( gen );
       double phi_dis = _TDist( 0, 6.28318530718 )( gen );
       buf[ 0 ] += rad_dis * std::sin( the_dis ) * std::cos( phi_dis );