16 #include <vnl/vnl_cross.h>
17 #include <vnl/vnl_quaternion.h>
22 template<
class ScalarType >
27 this->m_NoiseVariance = 0;
30 template<
class ScalarType >
36 template<
class ScalarType >
40 m_RandGen->SetSeed(seed);
45 template<
class ScalarType >
48 for(
unsigned int i=0; i<pixel.Size(); i++)
50 double signal = pixel[i];
51 pixel[i] = sqrt(pow(signal + m_RandGen->GetNormalVariate(0.0, this->m_NoiseVariance), 2) + pow(m_RandGen->GetNormalVariate(0.0, this->m_NoiseVariance),2));
void AddNoise(PixelType &pixel)
DataCollection - Class to facilitate loading/accessing structured data.
void SetSeed(int seed)
Set seed for random number generator.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.