satproc.postprocess namespace
Submodules
satproc.postprocess.generalize module
satproc.postprocess.polygonize module
- satproc.postprocess.polygonize.apply_threshold(src, dst, value=None, *, threshold)[source]
Output source values (probabilities) instead of simply a binary mask
Make sure nodata=0, so that gdal_polygonize step ignores pixels under threshold.
satproc.postprocess.smooth module
- satproc.postprocess.smooth.build_bounds_index(image_files)[source]
Returns bounds of merged images and builds an R-Tree index
- satproc.postprocess.smooth.generate_spline_window_chips(*, image_paths, output_dir, power=2)[source]
Interpolates all images using a squared spline window
- satproc.postprocess.smooth.merge_chips(images_files, *, win_bounds)[source]
Merge by taking mean between overlapping images
- satproc.postprocess.smooth.sliding_windows(size, whole=False, step_size=None, *, width, height)[source]
Slide a window of +size+ by moving it +step_size+ pixels
- satproc.postprocess.smooth.smooth_stitch(*, input_dir, output_dir, power=1.5, temp_dir=None)[source]
Takes input directory of overlapping chips, and generates a new directory of non-overlapping chips with smooth edges.
- satproc.postprocess.smooth.spline_window(window_size, power=2)[source]
Squared spline window function: https://www.wolframalpha.com/input/?i=y%3Dx**2,+y%3D-(x-2)**2+%2B2,+y%3D(x-4)**2,+from+y+%3D+0+to+2