From: David Sarrut Date: Wed, 19 Oct 2011 13:03:39 +0000 (+0200) Subject: Add CropLikeImageFilter include X-Git-Tag: v1.3.0~174^2~47 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a2c15d9619618963182a2f71ee7852338779b6b1;p=clitk.git Add CropLikeImageFilter include --- diff --git a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h index fa5e95b..4d60a9d 100644 --- a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h +++ b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.h @@ -21,6 +21,7 @@ // clitk #include "clitkFilterBase.h" +#include "clitkCropLikeImageFilter.h" // itk #include @@ -128,6 +129,12 @@ namespace clitk { itkSetMacro(CombineWithOrFlag, bool); itkBooleanMacro(CombineWithOrFlag); + itkGetConstMacro(FuzzyMapOnlyFlag, bool); + itkSetMacro(FuzzyMapOnlyFlag, bool); + itkBooleanMacro(FuzzyMapOnlyFlag); + + typename FloatImageType::Pointer GetFuzzyMap() { return m_FuzzyMap; } + // I dont want to verify inputs information virtual void VerifyInputInformation() { } @@ -151,6 +158,7 @@ namespace clitk { bool m_InverseOrientationFlag; bool m_RemoveObjectFlag; bool m_CombineWithOrFlag; + bool m_FuzzyMapOnlyFlag; virtual void GenerateOutputInformation(); virtual void GenerateInputRequestedRegion(); @@ -160,6 +168,7 @@ namespace clitk { typename ImageType::Pointer working_image; typename ImageType::Pointer object_resampled; typename FloatImageType::Pointer relPos; + typename FloatImageType::Pointer m_FuzzyMap; ImagePointer input; ImagePointer object; diff --git a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx index 694910c..b73368f 100644 --- a/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx +++ b/itk/clitkAddRelativePositionConstraintToLabelImageFilter.txx @@ -22,6 +22,7 @@ #include "clitkAutoCropFilter.h" #include "clitkResampleImageWithOptionsFilter.h" #include "clitkBooleanOperatorLabelImageFilter.h" +#include "clitkCropLikeImageFilter.h" // itk #include @@ -61,6 +62,7 @@ AddRelativePositionConstraintToLabelImageFilter(): CombineWithOrFlagOff(); VerboseStepFlagOff(); WriteStepFlagOff(); + FuzzyMapOnlyFlagOff(); } //-------------------------------------------------------------------- @@ -361,7 +363,6 @@ GenerateData() typedef itk::RelativePositionPropImageFilter RelPosFilterType; typename RelPosFilterType::Pointer relPosFilter; - typename FloatImageType::Pointer m_FuzzyMap; for(int i=0; i