Skip to content
Snippets Groups Projects
Commit 42374098 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

STYLE: removing trailing spaces

parent 4c0ac1d4
Branches
Tags
No related merge requests found
......@@ -12,28 +12,28 @@
int main(int argc, char* argv[] )
{
// Parse command line parameters
typedef otb::CommandLineArgumentParser ParserType;
typedef otb::CommandLineArgumentParser ParserType;
ParserType::Pointer parser = ParserType::New();
parser->SetProgramDescription("Concatenate n images in a multiband image");
parser->AddOutputImage();
parser->AddOption("--InputImagesList","Images list to concatenate","-il",argc-4,true);
typedef otb::CommandLineArgumentParseResult ParserResultType;
ParserResultType::Pointer parseResult = ParserResultType::New();
try
{
parser->ParseCommandLine(argc,argv,parseResult);
}
catch( itk::ExceptionObject & err )
{
std::string descriptionException = err.GetDescription();
if(descriptionException.find("ParseCommandLine(): Help Parser") != std::string::npos)
catch( itk::ExceptionObject & err )
{
std::string descriptionException = err.GetDescription();
if(descriptionException.find("ParseCommandLine(): Help Parser") != std::string::npos)
{
return EXIT_SUCCESS;
}
if(descriptionException.find("ParseCommandLine(): Version Parser") != std::string::npos)
if(descriptionException.find("ParseCommandLine(): Version Parser") != std::string::npos)
{
return EXIT_SUCCESS;
}
......@@ -44,14 +44,14 @@ int main(int argc, char* argv[] )
std::cout << "Concat of " << NbImages << " images into a multi-band image " <<
std::endl;
typedef unsigned short int PixelType;
const unsigned int Dimension = 2;
typedef otb::Image< PixelType, Dimension > InputImageType;
typedef otb::ImageFileReader< InputImageType > ImageReaderType;
typedef otb::ObjectList< ImageReaderType > ReaderListType;
ReaderListType::Pointer readerList = ReaderListType::New();
......@@ -72,9 +72,9 @@ int main(int argc, char* argv[] )
imageReader->UpdateOutputInformation();
imageList->PushBack( imageReader->GetOutput() );
readerList->PushBack( imageReader );
}
typedef otb::VectorImage< PixelType, Dimension > VectorImageType;
......@@ -93,9 +93,9 @@ int main(int argc, char* argv[] )
imageWriter->SetFileName(parseResult->GetOutputImage().c_str());
unsigned long size = (10000 * 10000 * sizeof(PixelType)) / NbImages;
std::cout<<"Streaming size: "<<size<<std::endl;
imageWriter->SetBufferMemorySize(size);
......@@ -103,8 +103,8 @@ int main(int argc, char* argv[] )
imageWriter->SetInput( iL2VI->GetOutput() );
imageWriter->Update();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment