How load DEM image (hgt format)

asked 2017-09-20 03:00:13 -0500

procton gravatar image

updated 2017-09-20 07:43:03 -0500

I am trying to convert the great tutorial Reading Geospatial Raster files with GDAL from Open CV C++ to Open CV Java API.

My problem: when I load DEM file using: Mat dem = Imgcodecs.imread(demFile.htg, Imgcodecs.IMREAD_LOAD_GDAL | Imgcodecs.IMREAD_ANYDEPTH);

I found that dem.type() is not equal to CV_16SC1 as expected but equal to CV_8U.

Is this a problem? Anyone has some experience with DEM with OpenCV ? Thanks

edit retag flag offensive close merge delete