1

So I was thinking about a method that would allow me to essentially get the same resolution as a 3 meter DEM but with the size of a 30 meter DEM. As most GIS people know, 3 meter DEMs tend to be rather large and slow to process.

What I want to do is "merge" or "resample" non-contiguous cells that have similar elevations. Say we have a grid that is 10x10 which gives us 100 total cells. If I wanted to cut the resolution in half I would have 50 cells. What I want to do is combine cells with that are not necessarily neighbors but those that have similar elevations. I understand a lot of the common tools used with DEMs would require new algorithms but that would come later. The whole idea is keeping with the resolution more or less the same but with fewer cells. Is there a method that resamples cells by the closest value rather than by the nearest neighbor. Big Data!

  • 1
    Please update your post/tags to include the software you are using. – Aaron Oct 27 '16 at 5:34
  • I suppose that such merged pixels are not supported by any traditional raster image format which are based on having a fixed grid of rows and columns. There are tools like gdal.org/gdal_polygonize.html which build polygons from raster data and merge pixels just as you described but then you must continue with vector tools. BTW. wouldn't half resolution in your example yield 5x5=25 cells? – user30184 Oct 27 '16 at 6:36
1

What you define looks very similar to the concept of superpixel segmentation: grouping similar contiguous pixels together based on a regular grid (but yielding irregular grid cells). If you are looking for a specific algorithm, I recommend the use of SLIC, which works very well and can be used for big data processing.

  • Do you know how to save an image with such clever, irregular cells to some file format? – user30184 Oct 27 '16 at 6:39
  • Nothing "magic" unfortunately, it depends on your purpose : After computing the mean value inside each superpixels, you can work with one point for each superpixel to run an analysis, or convert it to vector polygons, or keep a raster format at initial resolution (your compression rate will be improved) or at a coarser resolution (due to systematic seeding, it will match well) – radouxju Oct 27 '16 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.