Comments (4)
@vmagnin
I have added a Lagrange interpolation function to the Colormap class in a branch. It is recommended to use it for lower orders (i.e., not many control colors) due to the presence of Runge's phenomenon.
from forcolormap.
I fixed a bug within the interpolation functions. Now, it ensures that the results are between 0 and 255.
Take a look at this example: I applied interpolation to the bam10 colormap (first colormap) to generate 256 levels using both Bezier (second colormap) and Lagrange (third colormap) methods. The original bam256 is displayed as the last one:
The results are not identical, and I did not expect them to be. Both interpolation functions are useful for creating custom colormaps rather than achieving exact matches.
from forcolormap.
The results are not identical, and I did not expect them to be. Both interpolation functions are useful for creating custom colormaps rather than achieving exact matches.
Yes, very close, although by switching between two tabs I can see that in the last one the green is darker at the right extremity.
from forcolormap.
Maybe 10 colors are not sufficient. It might be more accurate if additional colors are employed.
from forcolormap.
Related Issues (20)
- Add more tests HOT 1
- Error in the pkg-config libdir variable (CMake) HOT 3
- Using ForColormap as a shared library fails HOT 12
- Using ForColormap as a static library fails HOT 6
- Adding an uninstall target to CMake HOT 12
- "bamako" scientific colormaps should not be in the Diverging category HOT 3
- Fix Broken Link to Cubehelix Colormap in README HOT 2
- Add check() Procedure HOT 3
- Colormap_info: Include all available colormaps HOT 1
- Example: Create a `modify` example for the `shift()` method HOT 1
- Create a simple documentation generated with FORD. HOT 1
- CI: Integrate fpm tests
- CI: Integrate FORD documentation HOT 1
- Wrong number of levels for the categorical colormaps
- The subroutine test_colormap() is duplicated in several examples
- access='append' is a GNU extension
- In MSYS2/Windows, CMake encounters problems with the ForImage dependency HOT 1
- Unused dummy argument ‘check_zmax’ HOT 2
- Add Support lut File Format HOT 3
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 forcolormap.