X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAddRelativePositionConstraintToLabelImageFilter.h;h=249598b17427ec3c1a81726899f0f5e226ca7119;hb=494bc435f0dc573e18f347c270f2058573380e53;hp=83400ef5b47db4400c726e7a2f914234de6e6b09;hpb=de2db2051ac9b17a5e3e2b7dc34f42deea3f1526;p=clitk.git diff --git a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h index 83400ef..249598b 100644 --- a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h +++ b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h @@ -43,15 +43,15 @@ namespace clitk { */ //-------------------------------------------------------------------- - template + template class ITK_EXPORT AddRelativePositionConstraintToLabelImageFilter: public clitk::FilterBase, - public itk::ImageToImageFilter + public itk::ImageToImageFilter { public: /** Standard class typedefs. */ - typedef itk::ImageToImageFilter Superclass; + typedef itk::ImageToImageFilter Superclass; typedef AddRelativePositionConstraintToLabelImageFilter Self; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; @@ -64,7 +64,6 @@ namespace clitk { FILTERBASE_INIT; /** Some convenient typedefs. */ - typedef TImageType ImageType; typedef typename ImageType::ConstPointer ImageConstPointer; typedef typename ImageType::Pointer ImagePointer; typedef typename ImageType::RegionType RegionType; @@ -73,7 +72,7 @@ namespace clitk { typedef typename ImageType::SizeType SizeType; /** ImageDimension constants */ - itkStaticConstMacro(ImageDimension, unsigned int, TImageType::ImageDimension); + itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension); typedef itk::Image FloatImageType; /** Orientation types */ @@ -89,22 +88,32 @@ namespace clitk { // Options void SetOrientationType(OrientationTypeEnumeration orientation); itkGetConstMacro(OrientationType, OrientationTypeEnumeration); + void SetAngle1(double a); void SetAngle2(double a); itkGetConstMacro(Angle1, double); itkGetConstMacro(Angle2, double); + itkGetConstMacro(ResampleBeforeRelativePositionFilter, bool); itkSetMacro(ResampleBeforeRelativePositionFilter, bool); itkBooleanMacro(ResampleBeforeRelativePositionFilter); + itkGetConstMacro(IntermediateSpacing, double); itkSetMacro(IntermediateSpacing, double); + itkGetConstMacro(FuzzyThreshold, double); itkSetMacro(FuzzyThreshold, double); + itkGetConstMacro(BackgroundValue, PixelType); itkSetMacro(BackgroundValue, PixelType); + itkGetConstMacro(ObjectBackgroundValue, PixelType); itkSetMacro(ObjectBackgroundValue, PixelType); + itkGetConstMacro(AutoCrop, bool); + itkSetMacro(AutoCrop, bool); + itkBooleanMacro(AutoCrop); + protected: AddRelativePositionConstraintToLabelImageFilter(); virtual ~AddRelativePositionConstraintToLabelImageFilter() {} @@ -117,6 +126,7 @@ namespace clitk { double m_Angle1; double m_Angle2; bool m_ResampleBeforeRelativePositionFilter; + bool m_AutoCrop; virtual void GenerateOutputInformation(); virtual void GenerateInputRequestedRegion();