I'm trying to implement/convert the daltonize algorithm for correcting images for colour-blind people into ruby.
There are two primary reference implementations written in javascript and python + other implementations in languages/environments I'm not familiar with.
I have virtually no experience with image processing, let alone with VIPS / ruby-vips. I'm wondering how to make the first steps. The documentation seems primarily in C/C++ and very little on the ruby side. It's also extremely detailed. I'm not even sure which basic operations to use. Looks like the lin
function is a good starting point, but I'm not exactly sure how to apply it.
Anybody with some VIPS experience can probably work out the entire algorithm in a few minutes. I wonder if anybody can give me some pointers on where to start. Specifically:
- How to access a single (R/G/B) element?
- Are there better approaches based on the daltonize implementations?