News for hackers. Stuff that matters.
Re:Image Processing 101 by leni536 on Friday March 11, 2016 @02:36AM (#11265233)
I know that this is an introduction, but I wish there was a warning about the use of improper color spaces for different tasks (like using sRGB or any nonlinear colorspace for downscaling images, blurring or Phong shading). A warning about the existence of different colorspaces and their different use cases would be enough in an introductionary write up. It's still an issue in most of today's software [1].

Like open this image in your browser or in your favorite image viewer and scale it down to 50%: http://www.4p8.com/eric.brasseur/gamma-1.0-or-2.2.png

[1] http://www.4p8.com/eric.brasseur/gamma.html

Re:Image Processing 101 by vanderZwan on Friday March 11, 2016 @07:35AM (#11266213)
So I just spent half an hour googling for libraries that could help with this. Chroma.js seems to be a pretty nice option for dealing with this issue in a web context:

http://gka.github.io/chroma.js/

The person behind is has some nice blog posts on color generation too:

https://vis4.net/color/

The only issue that I see is that the library is focused on translating data to colours. The problems with blurring and downscaling that you mentioned go the other way: the colours are the data.