diff --git a/Modules/Applications/AppImageUtils/app/otbReadImageInfo.cxx b/Modules/Applications/AppImageUtils/app/otbReadImageInfo.cxx index a1c1b49047cf6b9f6be18b9e6652019b9fea7219..1760c7a33167526cae758d7fbe8c482948358338 100644 --- a/Modules/Applications/AppImageUtils/app/otbReadImageInfo.cxx +++ b/Modules/Applications/AppImageUtils/app/otbReadImageInfo.cxx @@ -264,12 +264,33 @@ private: //Get number of bands SetParameterInt("numberbands", inImage->GetNumberOfComponentsPerPixel()); ossOutput << "\tNumber of bands : " << GetParameterInt("numberbands") << std::endl; + std::vector<bool> noDataValueAvailable; + itk::ExposeMetaData<std::vector<bool> >(inImage->GetMetaDataDictionary(),MetaDataKey::NoDataValueAvailable,noDataValueAvailable); + + std::vector<double> noDataValues; + itk::ExposeMetaData<std::vector<double> >(inImage->GetMetaDataDictionary(),MetaDataKey::NoDataValue,noDataValues); + + + + ossOutput<<"\tNo data flags :"; + + for(unsigned int b = 0;b< inImage->GetNumberOfComponentsPerPixel();++b) + { + ossOutput<<"\n\t\tBand "<<b+1<<": "; + + if(noDataValueAvailable[b]) + ossOutput<<noDataValues[b]; + else + ossOutput<<"No"; + } + + ossOutput<<std::endl; //Get image size SetParameterInt("indexx", inImage->GetLargestPossibleRegion().GetIndex()[0]); SetParameterInt("indexy", inImage->GetLargestPossibleRegion().GetIndex()[1]); - ossOutput << "\tStart index : [" << GetParameterInt("indexx") << "," << GetParameterInt("indexy") << "]" << std::endl; + ossOutput << "\tStart index : [" << GetParameterInt("indexx") << "," << GetParameterInt("indexy") << "]" << std::endl; //Get image size SetParameterInt("sizex", inImage->GetLargestPossibleRegion().GetSize()[0]);