OTB
9.0.0
Orfeo Toolbox
|
#include <otbWrapperApplication.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::SmartPointer< Self > | Pointer |
typedef Application | Self |
typedef itk::Object | Superclass |
Public Member Functions | |
void | AddDocTag (const std::string &) |
unsigned int | AddExample (const std::string &comm="") |
void | AddImageToParameterInputImageList (std::string const ¶meter, ImageBaseType *img) |
void | AddParameterStringList (std::string const ¶meter, const std::string &str) |
void | ClearParameterInputImageList (std::string const ¶meter) |
void | ClearValue (std::string const ¶mKey) |
bool | ConnectImage (std::string in, Application *app, std::string out) |
void | DisableParameter (std::string const ¶mKey) |
void | EnableParameter (std::string const ¶mKey) |
int | Execute () |
int | ExecuteAndWriteOutput () |
std::vector< std::string > | GetChoiceKeys (std::string const ¶mKey) |
std::vector< std::string > | GetChoiceNames (std::string const ¶mKey) |
std::string | GetCLExample () |
double | GetDefaultParameterDouble (std::string const ¶meter) |
float | GetDefaultParameterFloat (std::string const ¶meter) |
int | GetDefaultParameterInt (std::string const ¶meter) |
virtual const char * | GetDescription () const |
virtual const char * | GetDocAuthors () const |
DocExampleStructure::Pointer | GetDocExample () |
virtual const char * | GetDocLimitations () const |
virtual const std::string & | GetDocLink () const |
virtual const char * | GetDocLongDescription () const |
virtual const char * | GetDocSeeAlso () const |
virtual std::vector< std::string > | GetDocTags () const |
std::string | GetExampleComment (unsigned int id) |
unsigned int | GetExampleNumberOfParameters (unsigned int id) |
std::string | GetExampleParameterKey (unsigned int exId, unsigned int paramId) |
std::string | GetExampleParameterValue (unsigned int exId, unsigned int paramId) |
std::string | GetHtmlExample () |
unsigned int | GetImageNbBands (const std::string &key, unsigned int idx=0) |
ImageBaseType::PointType | GetImageOrigin (const std::string &key, unsigned int idx=0) |
std::string | GetImageProjection (const std::string &key, unsigned int idx=0) |
ImageBaseType::RegionType | GetImageRequestedRegion (const std::string &key, unsigned int idx=0) |
ImageBaseType::SizeType | GetImageSize (const std::string &key, unsigned int idx=0) |
ImageBaseType::SpacingType | GetImageSpacing (const std::string &key, unsigned int idx=0) |
double | GetLastExecutionTiming () const |
bool | GetListViewSingleSelectionMode (const std::string ¶meter) |
otb::Logger * | GetLogger () const |
virtual const char * | GetName () const |
virtual const char * | GetNameOfClass () const |
unsigned int | GetNumberOfElementsInParameterInputImageList (std::string const ¶meter) |
unsigned int | GetNumberOfExamples () |
std::vector< std::pair< std::string, std::string > > | GetOutputParametersSumUp () |
std::string | GetParameterAsString (std::string const ¶mKey) |
Parameter * | GetParameterByKey (std::string const ¶meter, bool follow=true) |
const Parameter * | GetParameterByKey (std::string const ¶meter, bool follow=true) const |
ComplexDoubleImageType * | GetParameterComplexDoubleImage (std::string const &) |
ComplexDoubleVectorImageType * | GetParameterComplexDoubleVectorImage (std::string const &) |
ComplexFloatImageType * | GetParameterComplexFloatImage (std::string const &) |
ComplexFloatVectorImageType * | GetParameterComplexFloatVectorImage (std::string const &) |
ComplexInt16ImageType * | GetParameterComplexInt16Image (std::string const &) |
ComplexInt16VectorImageType * | GetParameterComplexInt16VectorImage (std::string const &) |
ComplexInt32ImageType * | GetParameterComplexInt32Image (std::string const &) |
ComplexInt32VectorImageType * | GetParameterComplexInt32VectorImage (std::string const &) |
std::string | GetParameterDescription (std::string const ¶mKey) |
double | GetParameterDouble (std::string const ¶meter) const |
DoubleImageType * | GetParameterDoubleImage (std::string const &) |
DoubleVectorImageType * | GetParameterDoubleVectorImage (std::string const &) |
float | GetParameterFloat (std::string const ¶meter) const |
FloatImageType * | GetParameterFloatImage (std::string const &) |
FloatVectorImageType * | GetParameterFloatVectorImage (std::string const &) |
FloatVectorImageType * | GetParameterImage (std::string const ¶meter) |
FloatVectorImageListType * | GetParameterImageList (std::string const ¶meter) |
int | GetParameterInt (std::string const ¶meter) const |
Int16ImageType * | GetParameterInt16Image (std::string const &) |
Int16VectorImageType * | GetParameterInt16VectorImage (std::string const &) |
Int32ImageType * | GetParameterInt32Image (std::string const &) |
Int32VectorImageType * | GetParameterInt32VectorImage (std::string const &) |
ParameterGroup * | GetParameterList () |
std::string | GetParameterName (std::string const ¶mKey) |
ImageBaseType * | GetParameterOutputImage (std::string const ¶meter) |
ImagePixelType | GetParameterOutputImagePixelType (std::string const ¶meter) |
Role | GetParameterRole (std::string const ¶mKey) const |
std::vector< std::string > | GetParametersKeys (bool recursive=true) |
std::string | GetParameterString (std::string const ¶meter) const |
std::vector< std::string > | GetParameterStringList (const std::string ¶meter) |
ParameterType | GetParameterType (std::string const ¶mKey) const |
UInt16ImageType * | GetParameterUInt16Image (std::string const &) |
UInt16VectorImageType * | GetParameterUInt16VectorImage (std::string const &) |
UInt32ImageType * | GetParameterUInt32Image (std::string const &) |
UInt32VectorImageType * | GetParameterUInt32VectorImage (std::string const &) |
UInt8ImageType * | GetParameterUInt8Image (std::string const &) |
UInt8RGBAImageType * | GetParameterUInt8RGBAImage (std::string const &) |
UInt8RGBImageType * | GetParameterUInt8RGBImage (std::string const &) |
UInt8VectorImageType * | GetParameterUInt8VectorImage (std::string const &) |
UserLevel | GetParameterUserLevel (std::string const ¶mKey) const |
VectorDataType * | GetParameterVectorData (std::string const ¶meter) |
VectorDataListType * | GetParameterVectorDataList (std::string const ¶meter) |
std::string | GetProgressDescription () const |
itk::ProcessObject * | GetProgressSource () const |
const FieldParameter::TypeFilterType & | GetTypeFilter (std::string const &key) const |
bool | HasAutomaticValue (std::string const ¶mKey) const |
bool | HasUserValue (std::string const ¶mKey) const |
bool | HasValue (std::string const ¶mKey) const |
void | Init () |
bool | IsApplicationReady () |
bool | IsDeprecated () |
bool | IsInitialized () const |
bool | IsMandatory (std::string const ¶mKey) const |
bool | IsParameterEnabled (std::string const ¶mKey, bool recurseParents=false) const |
bool | IsParameterMissing (const std::string &key) const |
void | LoadParametersFromXML (const std::string &filename) |
void | PropagateConnectMode (bool isMem) |
unsigned long | PropagateRequestedRegion (const std::string &key, ImageBaseType::RegionType region, unsigned int idx=0) |
void | SaveParametersToXML (const std::string &filename) |
void | SetDefaultOutputComplexPixelType (std::string const ¶meter, ComplexImagePixelType type) |
void | SetDefaultOutputPixelType (std::string const ¶meter, ImagePixelType type) |
void | SetDefaultParameterDouble (std::string const ¶meter, double value) |
void | SetDefaultParameterFloat (std::string const ¶meter, float value) |
void | SetDefaultParameterInt (std::string const ¶meter, int value) |
void | SetDescription (const std::string &) |
virtual void | SetDocAuthors (const std::string &) |
void | SetDocExampleParameterValue (const std::string key, const std::string value, unsigned int exId=0) |
virtual void | SetDocLimitations (const std::string &) |
virtual void | SetDocLink (const std::string &link) |
virtual void | SetDocLongDescription (const std::string &) |
virtual void | SetDocSeeAlso (const std::string &) |
virtual void | SetDocTags (std::vector< std::string >) |
void | SetExampleComment (const std::string &comm, unsigned int i) |
void | SetListViewSingleSelectionMode (std::string const ¶meter, bool status) |
void | SetLogger (otb::Logger *logger) |
void | SetMaximumParameterDoubleValue (std::string const ¶meter, double value) |
void | SetMaximumParameterFloatValue (std::string const ¶meter, float value) |
void | SetMaximumParameterIntValue (std::string const ¶meter, int value) |
void | SetMinimumParameterDoubleValue (std::string const ¶meter, double value) |
void | SetMinimumParameterFloatValue (std::string const ¶meter, float value) |
void | SetMinimumParameterIntValue (std::string const ¶meter, int value) |
virtual void | SetName (const std::string &) |
void | SetNthParameterInputImageList (std::string const ¶meter, const unsigned int &id, ImageBaseType *img) |
void | SetNthParameterStringList (std::string const ¶meter, const unsigned int &id, const std::string &str) |
void | SetOfficialDocLink () |
void | SetParameterDescription (std::string const ¶mKey, std::string dec) |
void | SetParameterDouble (std::string const ¶meter, double value, bool hasUserValueFlag=true) |
void | SetParameterFloat (std::string const ¶meter, float value, bool hasUserValueFlag=true) |
void | SetParameterInputImage (std::string const ¶meter, ImageBaseType *inputImage) |
void | SetParameterInt (std::string const ¶meter, int value, bool hasUserValueFlag=true) |
void | SetParameterList (ParameterGroup::Pointer paramGroup) |
void | SetParameterOutputImage (std::string const ¶meter, FloatVectorImageType *value) |
void | SetParameterOutputImagePixelType (std::string const ¶meter, ImagePixelType pixelType) |
void | SetParameterOutputVectorData (std::string const ¶meter, VectorDataType *value) |
void | SetParameterString (std::string const ¶meter, std::string value, bool hasUserValueFlag=true) |
void | SetParameterStringList (std::string const ¶meter, std::vector< std::string > values, bool hasUserValueFlag=true) |
void | SetParameterUserValue (std::string const ¶mKey, bool value) |
void | SetRasterData (std::string const &key, std::string const &rasterData) |
void | SetTypeFilter (std::string const &key, FieldParameter::TypeFilterType const &typeFilter) |
void | SetVectorData (std::string const &key, std::string const &vectorData) |
void | Stop () |
void | UpdateParameters () |
void | WriteOutput () |
std::string | m_Name |
std::string | m_Description |
ParameterGroup::Pointer | m_ParameterList |
otb::Logger::Pointer | m_Logger |
itk::ProcessObject::Pointer | m_ProgressSource |
std::string | m_ProgressSourceDescription |
std::set< itk::ProcessObject::Pointer > | m_Filters |
std::string | m_DocLongDescription |
DocExampleStructure::Pointer | m_DocExample |
std::string | m_DocAuthors |
std::string | m_DocLimitations |
std::string | m_DocSeeAlso |
std::vector< std::string > | m_DocTags |
std::string | m_Doclink |
otb::Stopwatch | m_Chrono |
bool | m_IsInPrivateDo |
bool | m_ExecuteDone |
bool | m_MultiWriting |
class | MapProjectionParametersHandler |
class | ElevationParametersHandler |
ImageMetadata & | GetImageMetadata (const std::string &key, unsigned int idx=0) |
void | SetImageMetadata (const ImageMetadata &imd, const std::string &key, unsigned int idx=0) |
itk::MetaDataDictionary | GetMetadataDictionary (const std::string &key, unsigned int idx=0) |
ImagePixelType | GetImageBasePixelType (const std::string &key, unsigned int idx=0) |
ImageBaseType * | GetParameterImageBase (const std::string &key, unsigned int idx=0) |
void | SetParameterImageBase (const std::string &key, ImageBaseType *img, unsigned int idx=0) |
void | RegisterPipeline () |
void | FreeRessources () |
bool | IsExecuteDone () |
bool | IsMultiWritingEnabled () |
Application () | |
~Application () override | |
void | AddProcess (itk::ProcessObject *object, std::string description) |
void | AddChoice (std::string const ¶mKey, std::string const ¶mName) |
void | AddParameter (ParameterType type, std::string const ¶mKey, std::string const ¶mName) |
void | AddRAMParameter (std::string const ¶mKey="ram") |
void | AddRAMParameter (std::string const ¶mKey, std::string const ¶mName, unsigned int defaultValue) |
void | AddRANDParameter (std::string const ¶mKey="rand") |
void | AddRANDParameter (std::string const ¶mKey, std::string const ¶mName, unsigned int defaultValue) |
void | ClearChoices (std::string const &key) |
std::vector< int > | GetSelectedItems (std::string const ¶mKey) |
void | MandatoryOn (std::string const ¶mKey) |
void | MandatoryOff (std::string const ¶mKey) |
void | SetParameterUserLevel (std::string const ¶mKey, UserLevel level) |
void | SetParameterRole (std::string const ¶mKey, Role role) |
template<class TImageType > | |
TImageType * | GetParameterImage (std::string const ¶meter) |
void | AutomaticValueOn (std::string const ¶mKey) |
void | AutomaticValueOff (std::string const ¶mKey) |
template<class TImageType > | |
void | SetParameterOutputImage (std::string const ¶meter, TImageType *value) |
virtual void | SetMultiWriting (bool _arg) |
void | EnableInPrivateDo () |
void | DisableInPrivateDo () |
virtual void | DoInit ()=0 |
virtual void | DoUpdateParameters ()=0 |
virtual void | DoExecute ()=0 |
virtual void | AfterExecuteAndWriteOutputs () |
virtual void | DoFreeRessources () |
Application (const Application &)=delete | |
void | operator= (const Application &)=delete |
This class represent an application TODO.
This class is a the Parameter key representation.
The constructor accepts a string key constructed as follow : parent.me.child. It implements some key manipulation as described in the code.
Definition at line 76 of file otbWrapperApplication.h.
typedef itk::SmartPointer<const Self> otb::Wrapper::Application::ConstPointer |
Definition at line 83 of file otbWrapperApplication.h.
typedef itk::SmartPointer<Self> otb::Wrapper::Application::Pointer |
Definition at line 82 of file otbWrapperApplication.h.
Standard class typedefs.
Definition at line 80 of file otbWrapperApplication.h.
typedef itk::Object otb::Wrapper::Application::Superclass |
Definition at line 81 of file otbWrapperApplication.h.
|
protected |
Constructor
|
overrideprotected |
Destructor
|
privatedelete |
Long and precise application description .
|
protected |
Add a new choice value to an existing choice parameter
void otb::Wrapper::Application::AddDocTag | ( | const std::string & | ) |
unsigned int otb::Wrapper::Application::AddExample | ( | const std::string & | comm = "" | ) |
void otb::Wrapper::Application::AddImageToParameterInputImageList | ( | std::string const & | parameter, |
ImageBaseType * | img | ||
) |
Add an image to an InputImageList parameter as an ImageBase pointer instead of reading from file. Useful to connect pipelines between different application instances. \in parameter The parameter key \in img The ImageBase * of the image to add
itk::Exception | if parameter is not found or not an InputImageList parameter |
|
protected |
Add a new parameter to the parameter group the parent key of paramKey can be the path to a parameter group or the path to a choice value
Referenced by otb::Wrapper::TrainImagesBase::InitClassification(), otb::Wrapper::TrainImagesBase::InitIO(), and otb::Wrapper::TrainImagesBase::InitSampling().
void otb::Wrapper::Application::AddParameterStringList | ( | std::string const & | parameter, |
const std::string & | str | ||
) |
Add a value to a parameter list as a string
Can be called for parameter types:
\in parameter The parameter key \in str The string
itk::Exception | if parameter is not found or not an InputImageList parameter |
|
protected |
Long and precise application description .
Referenced by otb::Wrapper::TrainImagesBase::SplitTrainingAndValidationSamples().
|
protected |
Add a parameterRAM method with parameter
|
protected |
Add a parameterRAM method with no parameter
|
protected |
Add a parameterRAND method with parameter
|
protected |
Add a parameterRAND method with no parameter
|
privatevirtual |
Long and precise application description .
|
protected |
Declare a parameter as NOT having an automatic value
|
protected |
Declare a parameter as having an automatic value
|
protected |
Remove the items added to the ListWidget
void otb::Wrapper::Application::ClearParameterInputImageList | ( | std::string const & | parameter | ) |
Clear all images from an InputImageList parameter.
\in parameter The parameter key
itk::Exception | if parameter is not found or not an InputImageList parameter |
void otb::Wrapper::Application::ClearValue | ( | std::string const & | paramKey | ) |
bool otb::Wrapper::Application::ConnectImage | ( | std::string | in, |
Application * | app, | ||
std::string | out | ||
) |
Connect input image to an output image in app
|
protected |
Long and precise application description .
void otb::Wrapper::Application::DisableParameter | ( | std::string const & | paramKey | ) |
|
privatepure virtual |
Long and precise application description .
Implemented in otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >, and otb::Wrapper::VectorPrediction< RegressionMode >.
|
inlineprivatevirtual |
Long and precise application description .
Definition at line 982 of file otbWrapperApplication.h.
|
privatepure virtual |
Long and precise application description .
Implemented in otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >, otb::Wrapper::LearningApplicationBase< TInputValue, TOutputValue >, otb::Wrapper::TrainDimensionalityReductionApplicationBase< TInputValue, TOutputValue >, and otb::Wrapper::VectorPrediction< RegressionMode >.
|
privatepure virtual |
Long and precise application description .
Implemented in otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >, and otb::Wrapper::VectorPrediction< RegressionMode >.
|
protected |
Long and precise application description .
void otb::Wrapper::Application::EnableParameter | ( | std::string const & | paramKey | ) |
int otb::Wrapper::Application::Execute | ( | ) |
Run the application.
For pipeline ready application, this only wires and configures the pipeline, and provides the output image or vector data parameters as pointers.
In other cases, the application must handle the I/O (intermediary results for example)
Returns 0 on success, or a non-null integer on error
int otb::Wrapper::Application::ExecuteAndWriteOutput | ( | ) |
Run the application, then write all of the output to disk if they have an associated filename. This is a helper function for wrappers without pipeline support.
Returns 0 on success, or a non-null integer on error
void otb::Wrapper::Application::FreeRessources | ( | ) |
Register all DataObject that are reachable from :
Once registered, the method ReleaseData is called on each one of them.
std::vector<std::string> otb::Wrapper::Application::GetChoiceKeys | ( | std::string const & | paramKey | ) |
std::vector<std::string> otb::Wrapper::Application::GetChoiceNames | ( | std::string const & | paramKey | ) |
Referenced by otb::Wrapper::TrainImagesBase::TrainModel().
std::string otb::Wrapper::Application::GetCLExample | ( | ) |
double otb::Wrapper::Application::GetDefaultParameterDouble | ( | std::string const & | parameter | ) |
float otb::Wrapper::Application::GetDefaultParameterFloat | ( | std::string const & | parameter | ) |
int otb::Wrapper::Application::GetDefaultParameterInt | ( | std::string const & | parameter | ) |
|
virtual |
|
virtual |
DocExampleStructure::Pointer otb::Wrapper::Application::GetDocExample | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
std::string otb::Wrapper::Application::GetExampleComment | ( | unsigned int | id | ) |
unsigned int otb::Wrapper::Application::GetExampleNumberOfParameters | ( | unsigned int | id | ) |
std::string otb::Wrapper::Application::GetExampleParameterKey | ( | unsigned int | exId, |
unsigned int | paramId | ||
) |
std::string otb::Wrapper::Application::GetExampleParameterValue | ( | unsigned int | exId, |
unsigned int | paramId | ||
) |
std::string otb::Wrapper::Application::GetHtmlExample | ( | ) |
ImagePixelType otb::Wrapper::Application::GetImageBasePixelType | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Find out what is the pixel type from an image parameter This function assumes that the underlying object is either an otb::Image or an otb::VectorImage. The optional 'idx' allows accessing InputImageList.
ImageMetadata& otb::Wrapper::Application::GetImageMetadata | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Get/Set the ImageMetadata of the image parameter 'key'. The optional 'idx' allows selecting the image in an InputImageList.
unsigned int otb::Wrapper::Application::GetImageNbBands | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Get the number of bands in the image parameter 'key'. The optional 'idx' allows selecting the image in an InputImageList.
ImageBaseType::PointType otb::Wrapper::Application::GetImageOrigin | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Get the origin of the image parameter 'key'. The optional 'idx' allows to select the image in an InputImageList.
std::string otb::Wrapper::Application::GetImageProjection | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Get the projection of the image parameter 'key'. The optional 'idx' allows to select the image in an InputImageList.
ImageBaseType::RegionType otb::Wrapper::Application::GetImageRequestedRegion | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Get the requested region of the image parameter 'key'. The optional 'idx' allows selecting the image in an InputImageList. It should be assumed that the index of the largest possible region starts at (0,0).
ImageBaseType::SizeType otb::Wrapper::Application::GetImageSize | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Get the size of the image parameter 'key'. The optional 'idx' allows selecting the image in an InputImageList. It corresponds to the size of LargestPossibleRegion
ImageBaseType::SpacingType otb::Wrapper::Application::GetImageSpacing | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Get the spacing of the image parameter 'key'. The optional 'idx' allows selecting the image in an InputImageList. We use the signed spacing convention.
double otb::Wrapper::Application::GetLastExecutionTiming | ( | ) | const |
bool otb::Wrapper::Application::GetListViewSingleSelectionMode | ( | const std::string & | parameter | ) |
True if the parameter is a list view and is in single selection mode
Can be called for types:
otb::Logger* otb::Wrapper::Application::GetLogger | ( | ) | const |
itk::MetaDataDictionary otb::Wrapper::Application::GetMetadataDictionary | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Returns a copy of the metadata dictionary of the image
|
virtual |
|
virtual |
RTTI support
Reimplemented in otb::Wrapper::LearningApplicationBase< TInputValue, TOutputValue >, otb::Wrapper::TrainDimensionalityReductionApplicationBase< TInputValue, TOutputValue >, otb::Wrapper::VectorPrediction< RegressionMode >, otb::Wrapper::CompositeApplication, otb::Wrapper::TrainImagesBase, and otb::Wrapper::TrainVectorBase< TInputValue, TOutputValue >.
unsigned int otb::Wrapper::Application::GetNumberOfElementsInParameterInputImageList | ( | std::string const & | parameter | ) |
Get the number of images in an InputImageList parameter. \in parameter The parameter key
itk::Exception | if parameter is not found or not an InputImageList parameter |
unsigned int otb::Wrapper::Application::GetNumberOfExamples | ( | ) |
std::vector<std::pair<std::string, std::string> > otb::Wrapper::Application::GetOutputParametersSumUp | ( | ) |
Return all parameters which role is Role_Output in a vector of pairs that contains the parameter key and its value.
std::string otb::Wrapper::Application::GetParameterAsString | ( | std::string const & | paramKey | ) |
Parameter* otb::Wrapper::Application::GetParameterByKey | ( | std::string const & | parameter, |
bool | follow = true |
||
) |
Referenced by GetParameterImage(), and SetParameterOutputImage().
const Parameter* otb::Wrapper::Application::GetParameterByKey | ( | std::string const & | parameter, |
bool | follow = true |
||
) | const |
ComplexDoubleImageType* otb::Wrapper::Application::GetParameterComplexDoubleImage | ( | std::string const & | ) |
ComplexDoubleVectorImageType* otb::Wrapper::Application::GetParameterComplexDoubleVectorImage | ( | std::string const & | ) |
ComplexFloatImageType* otb::Wrapper::Application::GetParameterComplexFloatImage | ( | std::string const & | ) |
ComplexFloatVectorImageType* otb::Wrapper::Application::GetParameterComplexFloatVectorImage | ( | std::string const & | ) |
ComplexInt16ImageType* otb::Wrapper::Application::GetParameterComplexInt16Image | ( | std::string const & | ) |
ComplexInt16VectorImageType* otb::Wrapper::Application::GetParameterComplexInt16VectorImage | ( | std::string const & | ) |
ComplexInt32ImageType* otb::Wrapper::Application::GetParameterComplexInt32Image | ( | std::string const & | ) |
ComplexInt32VectorImageType* otb::Wrapper::Application::GetParameterComplexInt32VectorImage | ( | std::string const & | ) |
std::string otb::Wrapper::Application::GetParameterDescription | ( | std::string const & | paramKey | ) |
double otb::Wrapper::Application::GetParameterDouble | ( | std::string const & | parameter | ) | const |
DoubleImageType* otb::Wrapper::Application::GetParameterDoubleImage | ( | std::string const & | ) |
DoubleVectorImageType* otb::Wrapper::Application::GetParameterDoubleVectorImage | ( | std::string const & | ) |
float otb::Wrapper::Application::GetParameterFloat | ( | std::string const & | parameter | ) | const |
FloatImageType* otb::Wrapper::Application::GetParameterFloatImage | ( | std::string const & | ) |
FloatVectorImageType* otb::Wrapper::Application::GetParameterFloatVectorImage | ( | std::string const & | ) |
template OTBApplicationEngine_EXPORT_TEMPLATE ComplexDoubleImageType * otb::Wrapper::Application::GetParameterImage< ComplexDoubleImageType > | ( | std::string const & | parameter | ) |
|
protected |
Long and precise application description .
Definition at line 37 of file otbWrapperApplication.hxx.
References otb::Wrapper::InputImageParameter::GetImage(), and GetParameterByKey().
ImageBaseType* otb::Wrapper::Application::GetParameterImageBase | ( | const std::string & | key, |
unsigned int | idx = 0 |
||
) |
Return the image from parameter 'key' as a base type. The optional 'idx' allows accessing InputImageList.
Works on parameters:
FloatVectorImageListType* otb::Wrapper::Application::GetParameterImageList | ( | std::string const & | parameter | ) |
int otb::Wrapper::Application::GetParameterInt | ( | std::string const & | parameter | ) | const |
Int16ImageType* otb::Wrapper::Application::GetParameterInt16Image | ( | std::string const & | ) |
Int16VectorImageType* otb::Wrapper::Application::GetParameterInt16VectorImage | ( | std::string const & | ) |
Int32ImageType* otb::Wrapper::Application::GetParameterInt32Image | ( | std::string const & | ) |
Int32VectorImageType* otb::Wrapper::Application::GetParameterInt32VectorImage | ( | std::string const & | ) |
ParameterGroup* otb::Wrapper::Application::GetParameterList | ( | ) |
std::string otb::Wrapper::Application::GetParameterName | ( | std::string const & | paramKey | ) |
ImageBaseType* otb::Wrapper::Application::GetParameterOutputImage | ( | std::string const & | parameter | ) |
Get the output image parameter as an ImageBase * instead of writing to disk. Useful to connect pipelines between different application instances. \in parameter The parameter key
itk::Exception | if parameter is not found or not an OutputImageParameter |
ImagePixelType otb::Wrapper::Application::GetParameterOutputImagePixelType | ( | std::string const & | parameter | ) |
Role otb::Wrapper::Application::GetParameterRole | ( | std::string const & | paramKey | ) | const |
Get the role of the parameter
std::vector<std::string> otb::Wrapper::Application::GetParametersKeys | ( | bool | recursive = true | ) |
std::string otb::Wrapper::Application::GetParameterString | ( | std::string const & | parameter | ) | const |
std::vector<std::string> otb::Wrapper::Application::GetParameterStringList | ( | const std::string & | parameter | ) |
ParameterType otb::Wrapper::Application::GetParameterType | ( | std::string const & | paramKey | ) | const |
UInt16ImageType* otb::Wrapper::Application::GetParameterUInt16Image | ( | std::string const & | ) |
UInt16VectorImageType* otb::Wrapper::Application::GetParameterUInt16VectorImage | ( | std::string const & | ) |
UInt32ImageType* otb::Wrapper::Application::GetParameterUInt32Image | ( | std::string const & | ) |
UInt32VectorImageType* otb::Wrapper::Application::GetParameterUInt32VectorImage | ( | std::string const & | ) |
UInt8ImageType* otb::Wrapper::Application::GetParameterUInt8Image | ( | std::string const & | ) |
UInt8RGBAImageType* otb::Wrapper::Application::GetParameterUInt8RGBAImage | ( | std::string const & | ) |
UInt8RGBImageType* otb::Wrapper::Application::GetParameterUInt8RGBImage | ( | std::string const & | ) |
UInt8VectorImageType* otb::Wrapper::Application::GetParameterUInt8VectorImage | ( | std::string const & | ) |
UserLevel otb::Wrapper::Application::GetParameterUserLevel | ( | std::string const & | paramKey | ) | const |
VectorDataType* otb::Wrapper::Application::GetParameterVectorData | ( | std::string const & | parameter | ) |
VectorDataListType* otb::Wrapper::Application::GetParameterVectorDataList | ( | std::string const & | parameter | ) |
std::string otb::Wrapper::Application::GetProgressDescription | ( | ) | const |
itk::ProcessObject* otb::Wrapper::Application::GetProgressSource | ( | ) | const |
|
protected |
Get Items selected in the ListView Parameter
Referenced by otb::Wrapper::TrainImagesBase::TrainModel().
const FieldParameter::TypeFilterType& otb::Wrapper::Application::GetTypeFilter | ( | std::string const & | key | ) | const |
Get list of allowed field types for a FieldParameter
[in] | key | The parameter key (must be a FieldParameter) |
bool otb::Wrapper::Application::HasAutomaticValue | ( | std::string const & | paramKey | ) | const |
bool otb::Wrapper::Application::HasUserValue | ( | std::string const & | paramKey | ) | const |
bool otb::Wrapper::Application::HasValue | ( | std::string const & | paramKey | ) | const |
void otb::Wrapper::Application::Init | ( | ) |
Initialize the application, instantiating the parameter list
bool otb::Wrapper::Application::IsApplicationReady | ( | ) |
Checks if the application is ready to be executed. It checks that there is no missing parameter
bool otb::Wrapper::Application::IsDeprecated | ( | ) |
return whether the application has the "deprecated tag or not
bool otb::Wrapper::Application::IsExecuteDone | ( | ) |
Long and precise application description .
bool otb::Wrapper::Application::IsInitialized | ( | ) | const |
Check if the application has been initialized
bool otb::Wrapper::Application::IsMandatory | ( | std::string const & | paramKey | ) | const |
bool otb::Wrapper::Application::IsMultiWritingEnabled | ( | ) |
Is multiWriting enabled for this application ?
bool otb::Wrapper::Application::IsParameterEnabled | ( | std::string const & | paramKey, |
bool | recurseParents = false |
||
) | const |
bool otb::Wrapper::Application::IsParameterMissing | ( | const std::string & | key | ) | const |
Checks if a parameter 'key' is missing.
A parameter is missing when all the following conditions are true :
void otb::Wrapper::Application::LoadParametersFromXML | ( | const std::string & | filename | ) |
|
protected |
Declare a parameter as NOT mandatory (default state)
Referenced by otb::Wrapper::TrainImagesBase::InitClassification().
|
protected |
Declare a parameter as mandatory
Referenced by otb::Wrapper::TrainImagesBase::InitIO().
|
privatedelete |
Long and precise application description .
void otb::Wrapper::Application::PropagateConnectMode | ( | bool | isMem | ) |
Propagate the connection mode :
unsigned long otb::Wrapper::Application::PropagateRequestedRegion | ( | const std::string & | key, |
ImageBaseType::RegionType | region, | ||
unsigned int | idx = 0 |
||
) |
Set the requested region on the image parameter 'key' and propagate it. The returned value is an estimate of the RAM usage (in Bytes) to process this region. It should be assumed that the index of the largest possible region starts at (0,0). The optional 'idx' allows selecting the image in an InputImageList
void otb::Wrapper::Application::RegisterPipeline | ( | ) |
Register all ProcessObject that are linked to parameters :
Those ProcessObjects are stored in the m_Filters set and are deleted at the end of ExecuteAndWriteOutput (if there are only held by the set) This method can be called just before the end of a DoExecute in a derived class of Application.
void otb::Wrapper::Application::SaveParametersToXML | ( | const std::string & | filename | ) |
void otb::Wrapper::Application::SetDefaultOutputComplexPixelType | ( | std::string const & | parameter, |
ComplexImagePixelType | type | ||
) |
Set a default complex pixel type for an output complex image parameter
[in] | parameter | Name of the output complex image parameter |
[in] | type | Default complex pixel type |
void otb::Wrapper::Application::SetDefaultOutputPixelType | ( | std::string const & | parameter, |
ImagePixelType | type | ||
) |
Set a default pixel type for an output image parameter
[in] | parameter | Name of the output image parameter |
[in] | type | Default pixel type |
void otb::Wrapper::Application::SetDefaultParameterDouble | ( | std::string const & | parameter, |
double | value | ||
) |
void otb::Wrapper::Application::SetDefaultParameterFloat | ( | std::string const & | parameter, |
float | value | ||
) |
void otb::Wrapper::Application::SetDefaultParameterInt | ( | std::string const & | parameter, |
int | value | ||
) |
Referenced by otb::Wrapper::TrainImagesBase::InitSampling().
void otb::Wrapper::Application::SetDescription | ( | const std::string & | ) |
|
virtual |
void otb::Wrapper::Application::SetDocExampleParameterValue | ( | const std::string | key, |
const std::string | value, | ||
unsigned int | exId = 0 |
||
) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void otb::Wrapper::Application::SetExampleComment | ( | const std::string & | comm, |
unsigned int | i | ||
) |
void otb::Wrapper::Application::SetImageMetadata | ( | const ImageMetadata & | imd, |
const std::string & | key, | ||
unsigned int | idx = 0 |
||
) |
Long and precise application description .
void otb::Wrapper::Application::SetListViewSingleSelectionMode | ( | std::string const & | parameter, |
bool | status | ||
) |
Enable single selection mode for list view if status is true (default is false).
Can be called for types:
void otb::Wrapper::Application::SetLogger | ( | otb::Logger * | logger | ) |
Sets the logger instance of the application (use with caution)
void otb::Wrapper::Application::SetMaximumParameterDoubleValue | ( | std::string const & | parameter, |
double | value | ||
) |
void otb::Wrapper::Application::SetMaximumParameterFloatValue | ( | std::string const & | parameter, |
float | value | ||
) |
Referenced by otb::Wrapper::TrainImagesBase::InitSampling().
void otb::Wrapper::Application::SetMaximumParameterIntValue | ( | std::string const & | parameter, |
int | value | ||
) |
void otb::Wrapper::Application::SetMinimumParameterDoubleValue | ( | std::string const & | parameter, |
double | value | ||
) |
void otb::Wrapper::Application::SetMinimumParameterFloatValue | ( | std::string const & | parameter, |
float | value | ||
) |
Referenced by otb::Wrapper::TrainImagesBase::InitSampling().
void otb::Wrapper::Application::SetMinimumParameterIntValue | ( | std::string const & | parameter, |
int | value | ||
) |
|
protectedvirtual |
Enable/Disable multiWriting
|
virtual |
void otb::Wrapper::Application::SetNthParameterInputImageList | ( | std::string const & | parameter, |
const unsigned int & | id, | ||
ImageBaseType * | img | ||
) |
Set the nth image of an InputImageList parameter as an ImageBase pointer instead of reading from file. Useful to connect pipelines between different application instances. \in parameter The parameter key \in id Position at which to set the ImageBase pointer \in img The ImageBase * of the image to add
itk::Exception | if parameter is not found or not an InputImageList parameter or if id is out of bounds |
void otb::Wrapper::Application::SetNthParameterStringList | ( | std::string const & | parameter, |
const unsigned int & | id, | ||
const std::string & | str | ||
) |
Set the nth value of a parameter list as a string.
Can be called for parameter types:
\in parameter The parameter key \in id Position at which to set the ImageBase pointer \in str The string
itk::Exception | if parameter is not found or not an InputImageList parameter or if id is out of bounds |
void otb::Wrapper::Application::SetOfficialDocLink | ( | ) |
void otb::Wrapper::Application::SetParameterDescription | ( | std::string const & | paramKey, |
std::string | dec | ||
) |
void otb::Wrapper::Application::SetParameterDouble | ( | std::string const & | parameter, |
double | value, | ||
bool | hasUserValueFlag = true |
||
) |
void otb::Wrapper::Application::SetParameterFloat | ( | std::string const & | parameter, |
float | value, | ||
bool | hasUserValueFlag = true |
||
) |
Referenced by otb::Wrapper::TrainImagesBase::InitSampling().
void otb::Wrapper::Application::SetParameterImageBase | ( | const std::string & | key, |
ImageBaseType * | img, | ||
unsigned int | idx = 0 |
||
) |
Set the image in parameter 'key' as a base type. The optional 'idx' allows accessing InputImageList.
Works on parameters:
void otb::Wrapper::Application::SetParameterInputImage | ( | std::string const & | parameter, |
ImageBaseType * | inputImage | ||
) |
Set the input image parameter as an ImageBase * instead of filename. Useful to connect pipelines between different application instances. \in parameter The parameter key \in inputImage ImageBase pointer to use as input
itk::Exception | if parameter is not found or not an InputImageParameter |
Referenced by otb::Wrapper::TrainImagesBase::ComputePolygonStatistics(), and otb::Wrapper::TrainImagesBase::SelectAndExtractSamples().
void otb::Wrapper::Application::SetParameterInt | ( | std::string const & | parameter, |
int | value, | ||
bool | hasUserValueFlag = true |
||
) |
|
inline |
Definition at line 738 of file otbWrapperApplication.h.
template OTBApplicationEngine_EXPORT_TEMPLATE void otb::Wrapper::Application::SetParameterOutputImage< FloatVectorImageType > | ( | std::string const & | parameter, |
FloatVectorImageType * | value | ||
) |
|
protected |
Long and precise application description .
Definition at line 56 of file otbWrapperApplication.hxx.
References GetParameterByKey(), and otb::Wrapper::OutputImageParameter::SetValue().
void otb::Wrapper::Application::SetParameterOutputImagePixelType | ( | std::string const & | parameter, |
ImagePixelType | pixelType | ||
) |
void otb::Wrapper::Application::SetParameterOutputVectorData | ( | std::string const & | parameter, |
VectorDataType * | value | ||
) |
|
protected |
Long and precise application description .
void otb::Wrapper::Application::SetParameterString | ( | std::string const & | parameter, |
std::string | value, | ||
bool | hasUserValueFlag = true |
||
) |
void otb::Wrapper::Application::SetParameterStringList | ( | std::string const & | parameter, |
std::vector< std::string > | values, | ||
bool | hasUserValueFlag = true |
||
) |
|
protected |
Long and precise application description .
void otb::Wrapper::Application::SetParameterUserValue | ( | std::string const & | paramKey, |
bool | value | ||
) |
Set HasUserValue flag of parameter with key paramKey Note that when this function is called from DoInit, DoUpdateParameters or DoExecute, it will always set this flag to false, because this is the core behavior of the application.
void otb::Wrapper::Application::SetRasterData | ( | std::string const & | key, |
std::string const & | rasterData | ||
) |
Set raster data name from which we choose the bands for a BandParameter
[in] | key | The parameter key (must be a BandParameter) |
[in] | rasterData | raster data name |
void otb::Wrapper::Application::SetTypeFilter | ( | std::string const & | key, |
FieldParameter::TypeFilterType const & | typeFilter | ||
) |
Set list of allowed field types for a FieldParameter
[in] | key | The parameter key (must be a FieldParameter) |
[in] | typeFilter | List of allowed types |
void otb::Wrapper::Application::SetVectorData | ( | std::string const & | key, |
std::string const & | vectorData | ||
) |
Set vector data name from which we choose the fields for a FieldParameter
[in] | key | The parameter key (must be a FieldParameter) |
[in] | vectorData | vector data name |
Referenced by otb::Wrapper::TrainImagesBase::ShareSamplingParameters().
void otb::Wrapper::Application::Stop | ( | ) |
Request the application to stop its processing
void otb::Wrapper::Application::UpdateParameters | ( | ) |
Update the value of parameters for which no user value has been provided
void otb::Wrapper::Application::WriteOutput | ( | ) |
write all of the output to disk if they have an associated filename. This is a helper function for wrappers without pipeline support.
|
friend |
Long and precise application description .
Definition at line 1038 of file otbWrapperApplication.h.
|
friend |
Declare the class
Definition at line 1037 of file otbWrapperApplication.h.
|
private |
Chrono to measure execution time
Definition at line 1019 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 988 of file otbWrapperApplication.h.
|
private |
Author List. Format : "John Doe, Winnie the Pooh".
Definition at line 1004 of file otbWrapperApplication.h.
|
private |
Doc example structure. Use GetDocExample() to access it
Definition at line 1001 of file otbWrapperApplication.h.
|
private |
Known limitations (threading, invalid pixel type ...) or bugs
Definition at line 1007 of file otbWrapperApplication.h.
|
private |
Doc link application
Definition at line 1016 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 998 of file otbWrapperApplication.h.
|
private |
Related applications
Definition at line 1010 of file otbWrapperApplication.h.
|
private |
Tags that define the application (ex : segmentation, OBIA).
Definition at line 1013 of file otbWrapperApplication.h.
|
private |
Flag to check if Execute has already been called
Definition at line 1025 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 995 of file otbWrapperApplication.h.
|
private |
Flag is true when executing DoInit, DoUpdateParameters or DoExecute
Definition at line 1022 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 990 of file otbWrapperApplication.h.
|
private |
Flag that determine if a multiWriter should be used to write output images
Definition at line 1028 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 987 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 989 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 992 of file otbWrapperApplication.h.
|
private |
Long and precise application description .
Definition at line 993 of file otbWrapperApplication.h.