![]() |
OTB
10.0.0
Orfeo Toolbox
|
#include <otbBandMathXImageFilter.h>
Classes | |
struct | adhocStruct |
Public Types | |
typedef ImageType::ConstPointer | ConstImagePointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::ProcessObject::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef ImageType::Pointer | ImagePointer |
typedef ImageType::RegionType | ImageRegionType |
typedef TImage | ImageType |
typedef ImageType::IndexType | IndexType |
typedef StreamingStatisticsVectorImageFilterType::MatrixType | MatrixType |
typedef ImageType::PointType | OrigineType |
typedef ParserX | ParserType |
typedef ImageType::PixelType | PixelType |
typedef ImageType::PixelType::ValueType | PixelValueType |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::ConstNeighborhoodIterator< TImage >::RadiusType | RadiusType |
typedef BandMathXImageFilter< TImage > | Self |
typedef ImageType::SpacingType | SpacingType |
typedef StreamingStatisticsVectorImageFilterType::Pointer | StreamingStatisticsVectorImageFilterPointerType |
typedef StreamingStatisticsVectorImageFilter< ImageType > | StreamingStatisticsVectorImageFilterType |
typedef itk::ImageToImageFilter< TImage, TImage > | Superclass |
typedef ParserType::ValueType | ValueType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
std::vector< std::string > | m_Expression |
std::vector< std::vector< ParserType::Pointer > > | m_VParser |
std::vector< std::vector< adhocStruct > > | m_AImage |
std::vector< adhocStruct > | m_VVarName |
std::vector< adhocStruct > | m_VAllowedVarNameAuto |
std::vector< adhocStruct > | m_VAllowedVarNameAddedByUser |
std::vector< adhocStruct > | m_VFinalAllowedVarName |
std::vector< adhocStruct > | m_VNotAllowedVarName |
std::vector< unsigned int > | m_outputsDimensions |
unsigned int | m_SizeNeighbourhood |
std::vector< int > | m_StatsVarDetected |
std::vector< unsigned int > | m_NeighDetected |
std::vector< RadiusType > | m_NeighExtremaSizes |
long | m_UnderflowCount |
long | m_OverflowCount |
itk::Array< long > | m_ThreadUnderflow |
itk::Array< long > | m_ThreadOverflow |
bool | m_ManyExpressions |
void | SetNthInput (DataObjectPointerArraySizeType idx, const ImageType *image) |
void | SetNthInput (DataObjectPointerArraySizeType idx, const ImageType *image, const std::string &varName) |
ImageType * | GetNthInput (DataObjectPointerArraySizeType idx) |
void | SetManyExpressions (bool flag) |
void | SetExpression (const std::string &expression) |
std::string | GetExpression (unsigned int IDExpression) const |
void | SetMatrix (const std::string &name, const std::string &definition) |
void | SetConstant (const std::string &name, double value) |
void | ExportContext (const std::string &filename) |
void | ImportContext (const std::string &filename) |
void | ClearExpression () |
std::vector< std::string > | GetVarNames () const |
bool | GlobalStatsDetected () const |
BandMathXImageFilter () | |
~BandMathXImageFilter () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | GenerateOutputInformation () override |
void | GenerateInputRequestedRegion () override |
void | BeforeThreadedGenerateData () override |
void | ThreadedGenerateData (const ImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override |
void | AfterThreadedGenerateData () override |
BandMathXImageFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
void | AddVariable (adhocStruct &) |
void | CheckImageDimensions () |
void | PrepareParsers () |
void | PrepareParsersGlobStats () |
void | OutputsDimensions () |
Performs mathematical operations on the input images according to the formula specified by the user.
This filter is based on the mathematical parser library muParserX. The built in functions and operators list is available at: http://articles.beltoforion.de/article.php?a=muparserx.
In order to use this filter, at least one input image is to be set. An associated variable name can be specified or not by using the corresponding SetNthInput method. For the jth (j=1..T) input image, if no associated variable name has been specified, a default variable name is given by concatenating the prefix "im" with the corresponding input index plus one (for instance, im1 is related to the first input). If the jth input image is multidimensional, then the variable imj represents a vector whose components are related to its bands. In order to access the kth band, the variable observes the following pattern : imjbk.
Definition at line 65 of file otbBandMathXImageFilter.h.
typedef ImageType::ConstPointer otb::BandMathXImageFilter< TImage >::ConstImagePointer |
Definition at line 82 of file otbBandMathXImageFilter.h.
typedef itk::SmartPointer<const Self> otb::BandMathXImageFilter< TImage >::ConstPointer |
Definition at line 72 of file otbBandMathXImageFilter.h.
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::BandMathXImageFilter< TImage >::DataObjectPointerArraySizeType |
Definition at line 93 of file otbBandMathXImageFilter.h.
typedef ImageType::Pointer otb::BandMathXImageFilter< TImage >::ImagePointer |
Definition at line 83 of file otbBandMathXImageFilter.h.
typedef ImageType::RegionType otb::BandMathXImageFilter< TImage >::ImageRegionType |
Definition at line 84 of file otbBandMathXImageFilter.h.
typedef TImage otb::BandMathXImageFilter< TImage >::ImageType |
Some convenient typedefs.
Definition at line 81 of file otbBandMathXImageFilter.h.
typedef ImageType::IndexType otb::BandMathXImageFilter< TImage >::IndexType |
Definition at line 88 of file otbBandMathXImageFilter.h.
typedef StreamingStatisticsVectorImageFilterType::MatrixType otb::BandMathXImageFilter< TImage >::MatrixType |
Definition at line 98 of file otbBandMathXImageFilter.h.
typedef ImageType::PointType otb::BandMathXImageFilter< TImage >::OrigineType |
Definition at line 89 of file otbBandMathXImageFilter.h.
typedef ParserX otb::BandMathXImageFilter< TImage >::ParserType |
Definition at line 91 of file otbBandMathXImageFilter.h.
typedef ImageType::PixelType otb::BandMathXImageFilter< TImage >::PixelType |
Definition at line 87 of file otbBandMathXImageFilter.h.
typedef ImageType::PixelType::ValueType otb::BandMathXImageFilter< TImage >::PixelValueType |
Definition at line 86 of file otbBandMathXImageFilter.h.
typedef itk::SmartPointer<Self> otb::BandMathXImageFilter< TImage >::Pointer |
Definition at line 71 of file otbBandMathXImageFilter.h.
typedef itk::ConstNeighborhoodIterator<TImage>::RadiusType otb::BandMathXImageFilter< TImage >::RadiusType |
Definition at line 85 of file otbBandMathXImageFilter.h.
typedef BandMathXImageFilter<TImage> otb::BandMathXImageFilter< TImage >::Self |
Standard class typedefs.
Definition at line 69 of file otbBandMathXImageFilter.h.
typedef ImageType::SpacingType otb::BandMathXImageFilter< TImage >::SpacingType |
Definition at line 90 of file otbBandMathXImageFilter.h.
typedef StreamingStatisticsVectorImageFilterType::Pointer otb::BandMathXImageFilter< TImage >::StreamingStatisticsVectorImageFilterPointerType |
Definition at line 97 of file otbBandMathXImageFilter.h.
typedef StreamingStatisticsVectorImageFilter<ImageType> otb::BandMathXImageFilter< TImage >::StreamingStatisticsVectorImageFilterType |
Typedef for statistic computing.
Definition at line 96 of file otbBandMathXImageFilter.h.
typedef itk::ImageToImageFilter<TImage, TImage> otb::BandMathXImageFilter< TImage >::Superclass |
Definition at line 70 of file otbBandMathXImageFilter.h.
typedef ParserType::ValueType otb::BandMathXImageFilter< TImage >::ValueType |
Definition at line 92 of file otbBandMathXImageFilter.h.
|
protected |
Constructor
Definition at line 45 of file otbBandMathXImageFilter.hxx.
References otb::BandMathXImageFilter< TImage >::adhocStruct::name, and otb::BandMathXImageFilter< TImage >::adhocStruct::type.
|
overrideprotected |
Destructor
Definition at line 76 of file otbBandMathXImageFilter.hxx.
|
privatedelete |
Return a pointer on the nth filter input
|
private |
Return a pointer on the nth filter input
Definition at line 521 of file otbBandMathXImageFilter.hxx.
References otb::BandMathXImageFilter< TImage >::adhocStruct::name.
|
overrideprotected |
Return a pointer on the nth filter input
Definition at line 978 of file otbBandMathXImageFilter.hxx.
References otbWarningMacro.
|
overrideprotected |
Return a pointer on the nth filter input
Definition at line 965 of file otbBandMathXImageFilter.hxx.
|
private |
Return a pointer on the nth filter input
Definition at line 862 of file otbBandMathXImageFilter.hxx.
void otb::BandMathXImageFilter< TImage >::ClearExpression |
Clear all previously set expression
Definition at line 253 of file otbBandMathXImageFilter.hxx.
virtual::itk::LightObject::Pointer otb::BandMathXImageFilter< TImage >::CreateAnother | ( | void | ) | const |
void otb::BandMathXImageFilter< TImage >::ExportContext | ( | const std::string & | filename | ) |
Export constants and expressions to a given filename
Definition at line 333 of file otbBandMathXImageFilter.hxx.
|
overrideprotected |
Return a pointer on the nth filter input
Definition at line 915 of file otbBandMathXImageFilter.hxx.
|
overrideprotected |
Return a pointer on the nth filter input
Definition at line 883 of file otbBandMathXImageFilter.hxx.
std::string otb::BandMathXImageFilter< TImage >::GetExpression | ( | unsigned int | IDExpression | ) | const |
Return the nth expression to be parsed
Definition at line 501 of file otbBandMathXImageFilter.hxx.
|
virtual |
Run-time type information (and related methods).
TImage * otb::BandMathXImageFilter< TImage >::GetNthInput | ( | DataObjectPointerArraySizeType | idx | ) |
Return a pointer on the nth filter input
Definition at line 211 of file otbBandMathXImageFilter.hxx.
std::vector< std::string > otb::BandMathXImageFilter< TImage >::GetVarNames |
Return the variable and constant names
Definition at line 510 of file otbBandMathXImageFilter.hxx.
|
inline |
Return a pointer on the nth filter input
Definition at line 136 of file otbBandMathXImageFilter.h.
void otb::BandMathXImageFilter< TImage >::ImportContext | ( | const std::string & | filename | ) |
Import constants and expressions from a given filename
Definition at line 404 of file otbBandMathXImageFilter.hxx.
|
static |
Method for creation through the object factory.
|
privatedelete |
Return a pointer on the nth filter input
|
private |
Return a pointer on the nth filter input
Definition at line 813 of file otbBandMathXImageFilter.hxx.
|
private |
Return a pointer on the nth filter input
Definition at line 534 of file otbBandMathXImageFilter.hxx.
References otb::BandMathXImageFilter< TImage >::adhocStruct::name.
|
private |
Return a pointer on the nth filter input
Definition at line 740 of file otbBandMathXImageFilter.hxx.
|
overrideprotected |
Return a pointer on the nth filter input
Definition at line 96 of file otbBandMathXImageFilter.hxx.
void otb::BandMathXImageFilter< TImage >::SetConstant | ( | const std::string & | name, |
double | value | ||
) |
Set a constant
Definition at line 317 of file otbBandMathXImageFilter.hxx.
References otb::BandMathXImageFilter< TImage >::adhocStruct::name, otb::BandMathXImageFilter< TImage >::adhocStruct::type, and otb::BandMathXImageFilter< TImage >::adhocStruct::value.
void otb::BandMathXImageFilter< TImage >::SetExpression | ( | const std::string & | expression | ) |
Set an expression to be parsed
Definition at line 223 of file otbBandMathXImageFilter.hxx.
void otb::BandMathXImageFilter< TImage >::SetManyExpressions | ( | bool | flag | ) |
Set an expression to be parsed
Definition at line 217 of file otbBandMathXImageFilter.hxx.
void otb::BandMathXImageFilter< TImage >::SetMatrix | ( | const std::string & | name, |
const std::string & | definition | ||
) |
Set a matrix (or a vector)
Definition at line 259 of file otbBandMathXImageFilter.hxx.
References otb::BandMathXImageFilter< TImage >::adhocStruct::info, otb::BandMathXImageFilter< TImage >::adhocStruct::name, otb::BandMathXImageFilter< TImage >::adhocStruct::type, and otb::BandMathXImageFilter< TImage >::adhocStruct::value.
void otb::BandMathXImageFilter< TImage >::SetNthInput | ( | DataObjectPointerArraySizeType | idx, |
const ImageType * | image | ||
) |
Return a pointer on the nth filter input
Definition at line 111 of file otbBandMathXImageFilter.hxx.
void otb::BandMathXImageFilter< TImage >::SetNthInput | ( | DataObjectPointerArraySizeType | idx, |
const ImageType * | image, | ||
const std::string & | varName | ||
) |
Return a pointer on the nth filter input
Definition at line 120 of file otbBandMathXImageFilter.hxx.
References otb::BandMathXImageFilter< TImage >::adhocStruct::info, otb::BandMathXImageFilter< TImage >::adhocStruct::name, and otb::BandMathXImageFilter< TImage >::adhocStruct::type.
|
overrideprotected |
Return a pointer on the nth filter input
Definition at line 1009 of file otbBandMathXImageFilter.hxx.
|
private |
Return a pointer on the nth filter input
Definition at line 174 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 172 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 194 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 186 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 187 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 180 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 190 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 182 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 184 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 192 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 191 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 189 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 177 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 176 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 178 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 179 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 173 of file otbBandMathXImageFilter.h.
|
private |
Return a pointer on the nth filter input
Definition at line 175 of file otbBandMathXImageFilter.h.