23 #ifndef otbLabelObjectOpeningMuParserFilter_h
24 #define otbLabelObjectOpeningMuParserFilter_h
26 #include "itkProgressReporter.h"
33 #include "itkInPlaceLabelMapFilter.h"
34 #include "itkLabelObjectAccessors.h"
35 #include "itkProgressReporter.h"
61 template <
class TImage,
class TFunction = Functor::OBIAMuParserFunctor<
typename TImage::LabelObjectType>>
84 itkStaticConstMacro(ImageDimension,
unsigned int, TImage::ImageDimension);
93 void SetExpression(
const std::string expression);
96 std::string GetExpression()
const;
99 bool CheckExpression();
102 void SetAttributes(std::vector<std::string> shapeAttributes, std::vector<std::string> statAttributes,
int nbOfBands);
105 void DisplayVar()
const;
108 const std::map<std::string, double*>& GetVar()
const;
113 void AllocateOutputs()
override;
115 void GenerateInputRequestedRegion()
override;
121 void GenerateData()
override;
126 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
130 void operator=(
const Self&) =
delete;
138 #ifndef OTB_MANUAL_INSTANTIATION