Kai-Uwe -
Am Samstag, 18. Mai 2013 12:40:40 UTC+2 schrieb beku:
> Can you describe more specifically what you expected and
> what changed in which version of lcms.
In fact, I can't.
My assumptions of the blending process are ridiculously naive:
p' = t * p0 + (1 - t) * p1, 0 <= t <= 1.
where the ps are some relevant characteristics of pixels 0 and 1 to be
blended, e.g. some luminance measure. Obviously, this equation can
return values for p' that are outside a color space for a specific
profile or even for an entire color space; think of p0 and p1 being
very close to the shell. The Enblend/Enfuse code in question juggles
with three: RGB, JCh, and Lab. And suddenly you're not in Kansas
anymore.
In version 2.x LCMS introduced the "Unbounded CMM" (see,
e.g. http://www.littlecms.com/CIC18_UnboundedCMM.pdf), where the
library itself does not take care anymore to keep all values inside
the color spaces, but instead lets the user decide what to do with
"outsiders". Enblend/Enfuse has picked up that idea and both programs
work on unbounded values as long as possible. That way, the users get
most out of their input images (I'm talking about CIECAM mode only).
Finally, we have to catch all renegades and find a representation for
them _inside_ the RGB-cube defined by the input profile (per
definitionem our output profile).
Here we go to great lengths to pick a projection that minimizes the
deltaE of the unbounded renegade and the final in-cube image (see e.g.
"fixmath.h", method ConvertJCHPyramidToVectorFunctor::operator()).
During the process we evaluate the color space conversion formulas
outside of a regular color space (for the renegades) and barely inside
for the final pixel values. I presume that not all formulas of LCMS
are numerically stable or even defined -- think of the notorious
pow(3) -- for all these values. Furthermore, I can imagine that the
code of the formulas changes from time to time, "Unbounded CMM" being
a relatively new feature. Maybe it returns exactly the same results
for inside-color-space pixels, but not necessarily for outside pixels
and we get hosed from time to time. Just my thoughts, could be wrong,
nothing ex cathedra.
> So it might be more easy to fill a bug report and get proper
> attention?
I have never called LittleCMS's behavior a "bug", as neither I
am aware of a mandatory specification, nor am I sure that Enblend/Enfuse
don't go over the top and LCMS simply gives.
Cheers,
Chris
--
--
You received this message because you are subscribed to the Google Groups
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.