color matching for pattern


color matching for pattern
#1
Sometimes I am also looking for new possibilities for creating pattern.

One of the challenges I am faced is to reduce the colours used in that pattern. This is mainly necessary because most (if not all) pictures are antialiased and therefore we do not have sharp edges that we can work with, if we try to automatic the generation of pattern in ldraw file format.

I tried it so far with an algorithm from bitsticker project:
Code:
''' Identify the most similar color in the palette to a specified color based
    ''' on Cartesian distance between RGB colorspace points. Derived from libgd's
    ''' gdImageColorClosestAlpha function (in gd.c).
    ''' Code taken from project "bitsticker" at [url=http://anoved.net/files/bitsticker/bitsticker.txt]http://anoved.net/files/bitsticker/bitsticker.txt[/url])
But the result is not what I was looking for, as you may get strange matches if you only work with this algorithm.

I remembered that Tim some time ago argued that the colors are not recognised by the eye in the same way (blue different than red etc.). So I searched on the internet for calculation of color differences.

I found a source for many color related stuff at:
http://www.brucelindbloom.com/index.html...eCalc.html

Sadly I did not get yet a key idea from that information. But I could read that the algorithm I used so far is known to be not good.

Maybe some can read and understand that, so he can tell me how to calculate the color differences better. This should lead to a better color matching in automatically created pattern.

I think this is a good task for 2014 Smile
Reply
« Next Oldest | Next Newest »



Messages In This Thread
color matching for pattern - by Michael Heidemann - 2014-01-01, 20:48
Re: color matching for pattern - by Tim Gould - 2014-01-01, 21:25
Re: color matching for pattern - by Tim Gould - 2014-01-01, 22:32
Re: color matching for pattern - by Tim Gould - 2014-01-02, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)