From 42374098dd9bd941b89f5e9e378028259356ecf5 Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Sat, 6 Dec 2008 23:12:19 +0800 Subject: [PATCH] STYLE: removing trailing spaces --- Utils/otbConcatenateImages.cxx | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Utils/otbConcatenateImages.cxx b/Utils/otbConcatenateImages.cxx index d19a995612..65617d4fba 100755 --- a/Utils/otbConcatenateImages.cxx +++ b/Utils/otbConcatenateImages.cxx @@ -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; } -- GitLab