diff --git a/Applications/Utils/otbDEMConvert.cxx b/Applications/Utils/otbDEMConvert.cxx index 07cd63889e65e6730a63933f8938da8b621ff51d..af07ee3ac3805f844be855ff953433246e1300a1 100644 --- a/Applications/Utils/otbDEMConvert.cxx +++ b/Applications/Utils/otbDEMConvert.cxx @@ -104,7 +104,7 @@ void DoExecute() paramOut->SetValue(inImage); // Set the output pixel type - itk::ImageIOBase::Pointer imageIO = ImageIOFactory::CreateImageIO( GetParameterString("in").c_str(), + ImageIOBase::Pointer imageIO = ImageIOFactory::CreateImageIO( GetParameterString("in").c_str(), ImageIOFactory::ReadMode); std::string componentTypeInfo(imageIO->GetComponentTypeInfo().name()); if( componentTypeInfo == typeid(unsigned char).name())