X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FAlgorithms%2FMacheteImageFilter.h;h=d9d3c3273a8bc4dd9181441740e739a7e9909634;hb=a422d88602e9b49085ccfab0ef0f9f2d93fb6a1e;hp=4dde2dc49cc5ee85e92b36548615d306e89067e7;hpb=4f9005fe71854d7cff6ab68e48627989a6d1fbc8;p=cpPlugins.git diff --git a/lib/cpExtensions/Algorithms/MacheteImageFilter.h b/lib/cpExtensions/Algorithms/MacheteImageFilter.h index 4dde2dc..d9d3c32 100644 --- a/lib/cpExtensions/Algorithms/MacheteImageFilter.h +++ b/lib/cpExtensions/Algorithms/MacheteImageFilter.h @@ -29,9 +29,18 @@ namespace cpExtensions /** Run-time type information (and related methods). */ itkTypeMacro(MacheteImageFilter, ImageToImageFilter); + + typedef typename I::PixelType RadiusType; + //typedef typename I::SizeValueType RadiusValueType; + + itkGetConstReferenceMacro(Radius, RadiusType); - void SetRadius(double radius); - void SetPoint(itk::Point point); + + void SetRadius(const RadiusType & rad); + //void SetRadius(const RadiusValueType & rad); + + void SetPoint(itk::Point & point); + void SetPoint(const double & x, const double & y, const double & z); protected: MacheteImageFilter(){} @@ -40,13 +49,14 @@ namespace cpExtensions /** Does the real work. */ virtual void GenerateData(); + RadiusType m_Radius; + itk::Point point; private: MacheteImageFilter(const Self &); //purposely not implemented void operator=(const Self &); //purposely not implemented - double radius; - itk::Point point; + }; } // ecapseman