Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a colormap 'import' function #10

Open
Mangara opened this issue Feb 7, 2018 · 1 comment
Open

Create a colormap 'import' function #10

Mangara opened this issue Feb 7, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@Mangara
Copy link
Owner

Mangara commented Feb 7, 2018

This takes a list of colors and finds the best fitting colormap in our model.

@Mangara Mangara added the enhancement New feature or request label Feb 7, 2018
@Mangara
Copy link
Owner Author

Mangara commented Feb 25, 2018

Implementation ideas:

  • Given color points and order, fit spline to this
  • Points define a curve in LAB space
  • Preprocess this to get a curve with monotonic lightness: longest increasing subsequence?
  • Have a method that, given the points and a number of control points, finds the best quadratic spline to approximate these points
  • Binary search for the spline with the smallest number of control points that has reasonable error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant