Commit 4152c6cc authored by Christophe Palmann's avatar Christophe Palmann

BandMathX: style typo

parent 4021ba31
......@@ -122,7 +122,7 @@ private:
"#F expo 1.1\n"
"#M kernel1 { 0.1 , 0.2 , 0.3 ; 0.4 , 0.5 , 0.6 ; 0.7 , 0.8 , 0.9 ; 1 , 1.1 , 1.2 ; 1.3 , 1.4 , 1.5 }\n"
"\nAs we can see, #I/#F allows the definition of an integer/float constant, whereas #M allows the definition of a vector/matrix.\n"
"In the latter case, elements of a row must be separated by comma, and rows must be separated by semicolons.\n"
"In the latter case, elements of a row must be separated by commas, and rows must be separated by semicolons.\n"
"It is also possible to define expressions within the same txt file, with the pattern #E expr; they will be added to the list of expressions to be applied. For instance:\n\n"
"#E conv(kernel1,im1b1N3x5) ; im2b1^expo\n"
"\n- The 'outcontext' parameter allows to save user's constants and expressions (context).\n"
......@@ -215,13 +215,13 @@ private:
}
if ( (HasUserValue("incontext")) && (IsParameterEnabled("incontext")) )
m_Filter->importContext(GetParameterString("incontext"));
m_Filter->ImportContext(GetParameterString("incontext"));
// Set the output image
SetParameterOutputImage("out", m_Filter->GetOutput());
if ( (HasUserValue("outcontext")) && (IsParameterEnabled("outcontext")) )
m_Filter->exportContext(GetParameterString("outcontext"));
m_Filter->ExportContext(GetParameterString("outcontext"));
}
BandMathImageFilterType::Pointer m_Filter;
......
......@@ -125,10 +125,10 @@ public:
void SetConstant(const std::string& name, double value);
/** Export constants and expressions to a given filename */
void exportContext(const std::string& filename);
void ExportContext(const std::string& filename);
/** Import constants and expressions from a given filename */
void importContext(const std::string& filename);
void ImportContext(const std::string& filename);
/** Return the variable names */
std::vector<std::string> GetVarNames() const;
......
......@@ -296,7 +296,7 @@ void BandMathImageFilterX<TImage>
template< typename TImage >
void BandMathImageFilterX<TImage>
::exportContext(const std::string& filename)
::ExportContext(const std::string& filename)
{
std::vector< std::string > vectI,vectF,vectM, vectFinal;
......@@ -368,7 +368,7 @@ void BandMathImageFilterX<TImage>
template< typename TImage >
void BandMathImageFilterX<TImage>
::importContext(const std::string& filename)
::ImportContext(const std::string& filename)
{
std::ifstream importFile(filename.c_str(), std::ios::in);
......
......@@ -275,7 +275,7 @@ int otbBandMathImageFilterXConv( int itkNotUsed(argc), char* argv [])
//filter->SetMatrix("kernel1","{ 0.1 , 0.2 , 0.3; 0.4 , 0.5 , 0.6; 0.7 , 0.8 , 0.9; 1.0 , 1.1 , 1.2; 1.3 , 1.4 , 1.5 }");
//filter->SetVariable("expo",expo);
//filter->SetExpression("conv(kernel1,imageAb1N3x5,imageAb2N3x5); im2b1^1.1; vcos(canal3); mean(imageAb2N3x3); var(imageAb2N3x3); median(imageAb2N3x3)");
filter->importContext(inputFilename); //Equivalent to three commands above
filter->ImportContext(inputFilename); //Equivalent to three commands above
filter->Update();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment