Home Products Download Order Contacts

comp.graphics.algorithms

Subject: Re: color modification



Kroboto wrote:

> The problem is that the saturation and brightness differences between S
> and D may be significant, so a linear mapping of saturation and/or
> brightness will not give good values for the Dh colors.

Why would you even want to touch the saturation and brightness? Just
replace the hue of eligible pixles by one from the vicinity of D, and
that's that.

But beware: if you do anything like that to an antialiased image that
contains any features of colour S composited on a background that's
not colourless, you'll get artefacts. Nastier ones than aliasing,
possibly. E.g. if the background is not completely white and all
objects well separated from each other, antialiasing will also
interpolate hue, so it'll move some of the border pixels out of your
Sh region, so they will keep their original colour.

So, just doing this quick'n'dirty is possible, but if all you have is
an already antialiased image, it's too late to do it well. You would
need the input data of the antialiasing algorithm to work with.

--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

Reply


View All Messages in comp.graphics.algorithms

path:
color modification =>

Replies:
Re: color modification

Copyright 2006 WatermarkFactory.com. All Rights Reserved.