Comments (1)
Thinking through what this will take...
- We can just drop nodata in the reference when we convert to 1D, no info lost there
- We have to keep track of the masked value's index, delete it from the values and counts arrays before cdf. Then after the target values have been interpolated we need to re-introduce the fill value at that index, recreate the array and re-mask by position
- We need to ensure that we're writitng masked rasters with nodata values
- Histogram and cdf plots need to also consider mask
- the hard one colorspace conversions (forward and backward) need to retain the mask. This means that we'll need to save the mask and reapply it at various steps. There's some uncertainty as to how this will work - real data might become a nodata value in a given colorspace so the mask will need to be applied by position, not value.
- This is going to add a bit of complexity to the code. Maybe we need to detect the case automatically and make the logic conditional?
from rio-hist.
Related Issues (16)
- Compare to other histogram matching algorithms, benchmark HOT 1
- Which color spaces are useful for histogram matching? HOT 9
- RGBA and masked rasters
- Drop HSV
- Non-exact histogram matching HOT 2
- Match multiple references HOT 7
- How to matching the histogram
- LCH space and 16-bit to 8-bit match HOT 1
- Attribute Error HOT 4
- Regarding creation_options HOT 3
- Update for rasterio 1.0-1.1
- 1.0b1 release HOT 1
- 1.0.0 release HOT 2
- For different reference image?
- MemoryError while running on large images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rio-hist.