refactoring of DEM computation to align detection and generation
THe computation of dem in generation is not the same as in detection, and not as good as in detection. We need to refactor the extraction of image patch (_get_window() of rasterio.py module) to use the detection one (get_stacked_window_collection() function of CollectionDatasetReader in image.py module.