X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAddRelativePositionConstraintToLabelImageFilter.h;h=df052838b2f7e12e139a77fccdd734b3a0f80a16;hb=b07ea516b22fea80f721f2f984c4ae9e3c33ef0a;hp=e151f6b682ab43d6be50f2ca20542ccc6076e5c5;hpb=5161e30f268baca6fb920ea7eeedffc181bfa433;p=clitk.git diff --git a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h index e151f6b..df05283 100644 --- a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h +++ b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h @@ -85,7 +85,7 @@ namespace clitk { } OrientationTypeEnumeration; /** Input : initial image and object */ - void SetInput(const ImageType * image); + void SetInput(const ImageType * image) ITK_OVERRIDE; void SetInputObject(const ImageType * image); // Options @@ -143,10 +143,17 @@ namespace clitk { itkGetConstMacro(Radius, double); itkSetMacro(Radius, double); + itkSetMacro(K1, double); + itkGetMacro(K1, double); + typename FloatImageType::Pointer GetFuzzyMap() { return m_FuzzyMap; } // I dont want to verify inputs information - virtual void VerifyInputInformation() { } +#if ITK_VERSION_MAJOR <= 4 + virtual void VerifyInputInformation() ITK_OVERRIDE { } +#else + virtual void VerifyInputInformation() const ITK_OVERRIDE { } +#endif // For debug void PrintOptions(); @@ -171,12 +178,14 @@ namespace clitk { bool m_FuzzyMapOnlyFlag; bool m_FastFlag; double m_Radius; + double m_K1; - virtual void GenerateOutputInformation(); - virtual void GenerateInputRequestedRegion(); - virtual void GenerateData(); + virtual void GenerateOutputInformation() ITK_OVERRIDE; + virtual void GenerateInputRequestedRegion() ITK_OVERRIDE; + virtual void GenerateData() ITK_OVERRIDE; typedef itk::PasteImageFilter PasteFilterType; + typedef itk::PasteImageFilter PasteFloatFilterType; typename ImageType::Pointer working_image; typename ImageType::Pointer object_resampled; typename FloatImageType::Pointer relPos;