X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAddRelativePositionConstraintToLabelImageFilter.h;h=df052838b2f7e12e139a77fccdd734b3a0f80a16;hb=b07ea516b22fea80f721f2f984c4ae9e3c33ef0a;hp=ee0b17aaab94d93a7e6934ad704156bcf155aeb2;hpb=ed35ae164b4aa8dcc5fa4b59683a8cd7de454441;p=clitk.git diff --git a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h index ee0b17a..df05283 100644 --- a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h +++ b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h @@ -85,16 +85,17 @@ 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 void AddOrientationType(OrientationTypeEnumeration orientation); void AddOrientationTypeString(std::string s); void ClearOrientationType(); - void AddAngles(double a, double b); - double GetAngle1(int i) { return m_Angle1[i]; } - double GetAngle2(int i) { return m_Angle2[i]; } + void AddAnglesInRad(double a, double b); + void AddAnglesInDeg(double a, double b); + double GetAngle1InRad(int i) { return m_Angle1[i]; } + double GetAngle2InRad(int i) { return m_Angle2[i]; } int GetNumberOfAngles(); std::string GetOrientationTypeString(int i) { return m_OrientationTypeString[i]; } std::vector & GetOrientationTypeString() { return m_OrientationTypeString; } @@ -135,10 +136,24 @@ namespace clitk { itkSetMacro(FuzzyMapOnlyFlag, bool); itkBooleanMacro(FuzzyMapOnlyFlag); + itkGetConstMacro(FastFlag, bool); + itkSetMacro(FastFlag, bool); + itkBooleanMacro(FastFlag); + + 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(); @@ -161,12 +176,16 @@ namespace clitk { bool m_RemoveObjectFlag; bool m_CombineWithOrFlag; 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;