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;
138 #ifndef OTB_MANUAL_INSTANTIATION
ImageType::ConstPointer ImageConstPointer
LabelObjectType::AttributeType AttributeType
LabelObjectType::ConstPointer LabelObjectConstPointer
void EnlargeOutputRequestedRegion(itk::DataObject *) override
ImageType::LabelObjectType LabelObjectType
ImageType::IndexType IndexType
void operator=(const Self &)=delete
itk::InPlaceLabelMapFilter< TImage > Superclass
LabelObjectOpeningMuParserFilter(const Self &)=delete
itk::SmartPointer< Self > Pointer
LabelObjectOpeningMuParserFilter Self
ImageType::RegionType InputImageRegionType
ImageType::PixelType PixelType
itk::SmartPointer< const Self > ConstPointer
ImageType::Pointer ImagePointer
std::map< std::string, int > FunctionMapType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.