X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkRelativePositionAnalyzerFilter.h;h=a41df8b859ead5e1ee7333c379e3b0650278092f;hb=595624eb4297e747630105d45017de69733caef2;hp=3554049665cb18f0a3a3ebc6afc83490a715fa1e;hpb=5bff4d89c8ca42336267c36974e9ceb6fe2ac843;p=clitk.git diff --git a/itk/clitkRelativePositionAnalyzerFilter.h b/itk/clitkRelativePositionAnalyzerFilter.h index 3554049..a41df8b 100644 --- a/itk/clitkRelativePositionAnalyzerFilter.h +++ b/itk/clitkRelativePositionAnalyzerFilter.h @@ -43,8 +43,6 @@ namespace clitk { template class RelativePositionAnalyzerFilter: - // public virtual clitk::FilterBase, - public clitk::FilterWithAnatomicalFeatureDatabaseManagement, public itk::ImageToImageFilter { @@ -81,6 +79,9 @@ namespace clitk { void SetInputObject(const ImageType * image); void SetInputTarget(const ImageType * image); + // Input + // supportname, objectname multiple targetname + // Options itkGetConstMacro(BackgroundValue, PixelType); itkSetMacro(BackgroundValue, PixelType); @@ -88,12 +89,12 @@ namespace clitk { itkGetConstMacro(ForegroundValue, PixelType); itkSetMacro(ForegroundValue, PixelType); + clitk::RelativePositionDirectionType & GetDirection() { return m_Direction; } + void SetDirection(clitk::RelativePositionDirectionType & d) { m_Direction = d; } + itkGetConstMacro(NumberOfBins, int); itkSetMacro(NumberOfBins, int); - itkGetConstMacro(NumberOfAngles, int); - itkSetMacro(NumberOfAngles, int); - itkGetConstMacro(AreaLossTolerance, double); itkSetMacro(AreaLossTolerance, double); @@ -102,14 +103,14 @@ namespace clitk { itkGetConstMacro(SizeWithThreshold, int); itkGetConstMacro(SizeWithReverseThreshold, int); - std::vector & GetListOfInformation() { return m_ListOfInformation; } - std::vector & GetListOfOrientation() { return m_ListOfOrientation; } + itkGetConstMacro(Info, clitk::RelativePositionInformationType); + itkGetConstMacro(InfoReverse, clitk::RelativePositionInformationType); // For debug void PrintOptions(); // Print output - void Print(std::string s=" ", std::ostream & os=std::cout); + void Print(std::ostream & os=std::cout); // I dont want to verify inputs information virtual void VerifyInputInformation() { } @@ -128,22 +129,21 @@ namespace clitk { ImagePointer m_Support; ImagePointer m_Object; ImagePointer m_Target; - int m_NumberOfAngles; int m_NumberOfBins; double m_AreaLossTolerance; int m_SupportSize; int m_TargetSize; int m_SizeWithReverseThreshold; int m_SizeWithThreshold; - std::vector m_ListOfAngles; - std::vector m_ListOfInformation; - std::vector m_ListOfOrientation; + clitk::RelativePositionDirectionType m_Direction; + clitk::RelativePositionInformationType m_Info; + clitk::RelativePositionInformationType m_InfoReverse; virtual void GenerateOutputInformation(); virtual void GenerateData(); typename FloatImageType::Pointer - ComputeFuzzyMap(ImageType * object, ImageType * target, double angle); + ComputeFuzzyMap(ImageType * object, ImageType * target, ImageType * support, double angle); void ComputeOptimalThresholds(FloatImageType * map, ImageType * target, int bins, double tolerance,