Color Zooming - best of both worlds
josiahseaman opened this issue · comments
Help Needed: If there's a color lover who wants to take this on, I'd be glad for a pull request.
Natural colors are best close up, high contrast colors are best zoomed out.
Closest layer is natural colors, copy the source file, swap out the color index in raw png file for high contrast given to deep zoom.
Even better, Deepzoom - override "resize" function to calculate sqrt of squares. This is probably prohibitively slow, but it'd look nice.
See "Why Computer Color is Broken" for an explanation.
Color calculations could also be done in "Lab" space to create the correct perceptual average and eliminate much of the Moire effect.
https://www.codeproject.com/Articles/19045/Manipulating-colors-in-NET-Part
https://en.wikipedia.org/wiki/Lab_color_space#Approximate_formulas_for_Ka_and_Kb