All Projects → mapbox → rio-hist

mapbox / rio-hist

Licence: other
Histogram matching plugin for rasterio

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to rio-hist

rio-pansharpen
pansharpening landsat scenes
Stars: ✭ 42 (-40.85%)
Mutual labels:  satellite, imagery, rasterio
rio-rgbify
Encoded arbitrary bit depth rasters in psuedo base-256
Stars: ✭ 62 (-12.68%)
Mutual labels:  satellite, imagery, rasterio
rio-toa
Top Of Atmosphere (TOA) calculations for Landsat 8
Stars: ✭ 38 (-46.48%)
Mutual labels:  satellite, imagery, rasterio
rio-glui
Explore CloudOptimized geotiff on your browser using Mapbox GL JS
Stars: ✭ 47 (-33.8%)
Mutual labels:  satellite, imagery, rasterio
supermercado
Supercharger for mercantile
Stars: ✭ 100 (+40.85%)
Mutual labels:  satellite, imagery
untiler
Stitch image tiles into larger composite TIFs
Stars: ✭ 35 (-50.7%)
Mutual labels:  satellite, imagery
sentinel-tiler
A serverless Sentinel-2 tiles server using AWS Lambda
Stars: ✭ 59 (-16.9%)
Mutual labels:  satellite, imagery
grib-doctor
Utilities for handling quirks of weather data grib files.
Stars: ✭ 20 (-71.83%)
Mutual labels:  satellite, imagery
pxm-manifest-specification
File specification for PXM (Pixel Monster)
Stars: ✭ 14 (-80.28%)
Mutual labels:  satellite, imagery
snuggs
Snuggs are s-expressions for Numpy
Stars: ✭ 15 (-78.87%)
Mutual labels:  satellite, imagery
satproc
🛰️ Python library and CLI tools for processing geospatial imagery for ML
Stars: ✭ 27 (-61.97%)
Mutual labels:  satellite, rasterio
imagery
Slack app to upload shared images to Imgur to save space and share easily
Stars: ✭ 29 (-59.15%)
Mutual labels:  imagery
georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (+136.62%)
Mutual labels:  satellite
goestools
📡 LRIT demodulator from weather satellite GEO-KOMPSAT-2A (GK-2A).
Stars: ✭ 23 (-67.61%)
Mutual labels:  satellite
miq-RedHat-Satellite6
ManageIQ Automate Domain for integrating with Red Hat Satellite 6 developed by Red Hat Consulting.
Stars: ✭ 17 (-76.06%)
Mutual labels:  satellite
Rnightlights
R package to extract data from satellite nightlights.
Stars: ✭ 45 (-36.62%)
Mutual labels:  satellite
go-satellite
Calculate orbital information of satellites in GoLang.
Stars: ✭ 55 (-22.54%)
Mutual labels:  satellite
Attitude-Control-Model
Model to simulate the dynamics of the Satellites motion during orbit undergoing passive magnetic control.
Stars: ✭ 21 (-70.42%)
Mutual labels:  satellite
cesium-satellites
View the orbit of satellites in a Cesium viewer, derived from a two line element list
Stars: ✭ 45 (-36.62%)
Mutual labels:  satellite
Picosat Horus
Desenvolvimento e produção de um picossatélite para realizações de medições atmosféricas e envio de telemetria por RF.
Stars: ✭ 26 (-63.38%)
Mutual labels:  satellite

Build Status Coverage Status

rio-hist

Histogram matching plugin for rasterio.

Provides a CLI and python module for adjusting colors based on histogram matching in a variety of colorspaces.

Example

We have a source image that we want to alter. We have a reference image with a histogram that we like. The goal is to adjust the values of the source image so that its histogram matches that of the reference.

The matching directly in the default RGB colorspace does not always give the best results. So for this example, we'll adjust based on the Lightness and Chroma in LCH colorspace.

$ rio hist -c LCH -b 1,2 --plot source.tif reference.tif output.tif

This will give us a new output.tif that matches the histogram of reference. And the --plot option also allows us to see some diagnostic plots to inspect the results and the cumulative distribution functions of the matching process.

CLI docs

$ rio hist --help
Usage: rio hist [OPTIONS] SRC_PATH REF_PATH DST_PATH

  Color correction by histogram matching

Options:
  -c, --color-space [RGB|LCH|LAB|Lab|LUV|XYZ]
                                  Colorspace
  -b, --bands TEXT                comma-separated list of bands to match
                                  (default 1,2,3)
  -m, --match-proportion FLOAT    Interpolate values between source and
                                  reference histogram. 1.0 (default) is full
                                  match, 0.0 is no match
  --plot                          create a <basename>_plot.png with diagnostic
                                  plots
  -v, --verbose
  --co NAME=VALUE                 Driver specific creation options.See the
                                  documentation for the selected output driver
                                  for more information.
  --help                          Show this message and exit.

Python docs

rio_hist.match.histogram_match is the main entry point and operates on a single band.

rio_hist.utils has some interesting functions that may be useful in other contexts.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].