Skip to content
Snippets Groups Projects
Commit 20bf85db authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: improve image list

parent 0702eae4
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,10 @@ ParameterType Application::GetParameterType(std::string paramKey) const
{
type = ParameterType_InputImage;
}
else if (dynamic_cast<const InputImageListParameter*>(param))
{
type = ParameterType_InputImageList;
}
else if (dynamic_cast<const InputComplexImageParameter*>(param))
{
type = ParameterType_InputComplexImage;
......
......@@ -22,7 +22,6 @@
#include "otbWrapperParameter.h"
#include "otbObjectList.h"
#include "otbImageList.h"
namespace otb
{
......@@ -155,7 +154,7 @@ public:
{
if(m_ImageList->Size() == 0)
{
itkExceptionMacro(<< "No image in the stack.");
return false;
}
return m_ImageList->GetNthElement(0).IsNotNull();
......
......@@ -44,6 +44,7 @@ typedef enum
ParameterType_InputComplexImage,
ParameterType_InputVectorData,
ParameterType_OutputImage,
ParameterType_OutputImageList,
ParameterType_OutputVectorData,
ParameterType_Radius,
ParameterType_Group,
......
......@@ -184,7 +184,7 @@ CommandLineLauncher::BeforeExecute()
{
if ( this->LoadParameters() != OKPARAM )
{
std::cerr<<"ERROR: troubles loading parameter, please check your line argument..."<<std::endl;
std::cerr<<"ERROR: Troubles loading parameter, please check your line argument..."<<std::endl;
// Force to reload the application, the LoadParameters can change wrong values
this->LoadApplication();
this->DisplayHelp();
......@@ -194,7 +194,7 @@ CommandLineLauncher::BeforeExecute()
}
catch(itk::ExceptionObject& err)
{
std::cerr<<"ERROR: troubles in parameter setting, please check your line argument..."<<std::endl;
std::cerr<<"ERROR: Troubles in parameter setting, please check your line argument..."<<std::endl;
std::cerr<<err.GetDescription()<<std::endl;
// Force to reload the application, the LoadParameters can change wrong values
this->LoadApplication();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment