X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAddRelativePositionConstraintToLabelImageFilter.h;h=45f331ed9d7cf5e55989a1852a54f9737bdccc90;hb=20147f097d36f54eae548368df24f577e5567677;hp=ee0b17aaab94d93a7e6934ad704156bcf155aeb2;hpb=ed35ae164b4aa8dcc5fa4b59683a8cd7de454441;p=clitk.git diff --git a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h index ee0b17a..45f331e 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,20 @@ 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() { } + virtual void VerifyInputInformation() ITK_OVERRIDE { } // For debug void PrintOptions(); @@ -161,12 +172,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;