diff --git a/CMakeLists.txt b/CMakeLists.txt index a4c8cfceb6..0338b14feb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1589,7 +1589,7 @@ if(WITH_OPENEXR OR HAVE_OPENEXR) endif() if(WITH_GDAL OR HAVE_GDAL) - status(" GDAL:" HAVE_GDAL THEN "YES (${GDAL_LIBRARY})" ELSE "NO") + status(" GDAL:" HAVE_GDAL THEN "${GDAL_LIBRARY} (ver ${GDAL_VERSION})" ELSE "NO") endif() if(WITH_GDCM OR HAVE_GDCM) diff --git a/modules/imgcodecs/src/grfmt_gdal.cpp b/modules/imgcodecs/src/grfmt_gdal.cpp index 2c09d3b62f..ec7f70a925 100644 --- a/modules/imgcodecs/src/grfmt_gdal.cpp +++ b/modules/imgcodecs/src/grfmt_gdal.cpp @@ -239,7 +239,7 @@ void write_pixel( const double& pixelValue, else if( image.depth() == CV_32S ){ image.ptr(row)[col] = Vec3i(newValue,newValue,newValue); } else if( image.depth() == CV_32F ){ image.ptr(row)[col] = Vec3f(newValue,newValue,newValue); } else if( image.depth() == CV_64F ){ image.ptr(row)[col] = Vec3d(newValue,newValue,newValue); } - else{ throw std::runtime_error("Unknown image depth, gdal:1, img: 3"); } + else{ throw std::runtime_error("Unknown image depth, gdal:1, img: 3"); } } // input: 3 channel, output: 1 channel