mojodna / marblecutter

Dynamic tiling of raster data for OpenAerialMap + others
Other
121 stars 25 forks source link

Dynamic color correction #71

Closed mojodna closed 6 years ago

mojodna commented 7 years ago

Required for raw Landsat 8 imagery, facilitates runtime changes to color profiles for individual source images - based on metadata, heuristics, + capabilities provided by sat-utils / landsat-util and rio-color.

mojodna commented 6 years ago

Done using percentiles.py, which extracts values at 2nd, 5th, 95th, and 98th percentile for use as { values: { <band>: { min: <min>, max: <max> } } }.

This implements simplistic rescaling of values to within the desired range rather than more advanced color correction.

nvkelso commented 6 years ago

This is working good enough to close. Followup work is probably needed, but let's open new tickets around specific problems.