diff --git a/maps4fs/generator/dem.py b/maps4fs/generator/dem.py index c519378..a7d1552 100644 --- a/maps4fs/generator/dem.py +++ b/maps4fs/generator/dem.py @@ -235,9 +235,8 @@ def colored_preview(self) -> str: dem_data = cv2.imread(self._dem_path, cv2.IMREAD_GRAYSCALE) # Normalize the DEM data to the range [0, 255] - # dem_data_normalized = cv2.normalize(dem_data, None, 0, 255, cv2.NORM_MINMAX) - - dem_data_colored = cv2.applyColorMap(dem_data, cv2.COLORMAP_JET) + dem_data_normalized = cv2.normalize(dem_data, None, 0, 255, cv2.NORM_MINMAX) + dem_data_colored = cv2.applyColorMap(dem_data_normalized, cv2.COLORMAP_JET) cv2.imwrite(colored_dem_path, dem_data_colored) return colored_dem_path