 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka <ano### [at] anonymous org> wrote:
> I had thought about a gamma of 2.2 (to closely match sRGB), or the
> File_Gammma INI setting (so that previously rendered images will be read
> in properly). But you're making a point there, too.
It would also automatically fix the current problem with image maps
without the user having to specify anything in the scene file itself.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
To make life easier that's the libpng call for getting the
sRGB chunk information. For the sole purpose of gamma correction you can
safely ignore the value that is returned as sRGB_intent.
int sRGB_intent;
if (png_get_sRGB(png_ptr, png_inf, &sRGB_intent) != 0)
{
/* sRGB chunk is present, so we can ignore any gAMA chunk */
[,,,]
}
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive schrieb:
> I really do not see why not simply respecting the W3C/PNG recommendation
> as every contemporary browser (meanwhile even including IE) and every
> not totally brain-dead image viewer does.
Um - misunderstanding here:
The default gamma for input files would be intended to kick in *only*
for files where no gamma information is to be had (or where
sophisticated gamma / color profile handling hasn't been implemented yet).
For PNG files, the gAMA chunk information would still take precedence.
(And as for sRGB chunks, if I'm asked the only legitimate reason to
continue ignoring them is lack of the manpower needed to implement the
proper handling; the same goes for full-fledged color profiles, by the way.)
To override the decoding gamma for files with explicit gamma information
or a fixed gamma, the user would have to explicitly specify a decoding
gamma on a per-file basis.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp schrieb:
> It would also automatically fix the current problem with image maps
> without the user having to specify anything in the scene file itself.
What current problem?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive schrieb:
>> This is actually a problem I see with most of POV-Ray's file input
>> code, as data is typically stored no wider than 8 bits per channel
>> unless the encoded data is wider already.
>
> I completely agree and actually for exactly this reason I did recommend
> the conversion from JPEG to 16-bps PNG files to overcome the current
> problems with image maps.
BTW, does the jpeglib provide a way to get the raw YCrCb data out of JPG
files and do all the color math on floats?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka <ano### [at] anonymous org> wrote:
> Warp schrieb:
> > It would also automatically fix the current problem with image maps
> > without the user having to specify anything in the scene file itself.
> What current problem?
I can't believe you have already forgotten the superlong thread about
the subject. Are you honestly saying that you can't remember what the
problem with input images in POV-Ray 3.7 currently are? Really?
Anyways, in short, if the input image has no gamma information, and the
user has not specified any assumed gamma for that particular input image,
then if POV-Ray used an assumed gamma equivalent to File_Gamma (or perhaps
Display_Gamma), there would be no need for this:
http://bugs.povray.org/task/10
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> BTW, does the jpeglib provide a way to get the raw YCrCb data out of JPG
> files and do all the color math on floats?
Code fragment:
FILE *File;
struct jpeg_decompress_struct cinfo;
jpeg_create_decompress(&cinfo);
jpeg_stdio_src(&cinfo, File);
if (jpeg_read_header(&cinfo, TRUE) == 1)
{
/*
thats it, this will force jpeglib to return
unconverted YCbCr (or only Y for JCS_GRAYSCALE):
*/
cinfo.out_color_space = cinfo.jpeg_color_space;
/*
now the decompression stuff
*/
[...]
}
But note, the jpeg_color_space is defined as
typedef enum {
JCS_UNKNOWN, /* error/unspecified */
JCS_GRAYSCALE, /* monochrome */
JCS_RGB, /* red/green/blue */
JCS_YCbCr, /* Y/Cb/Cr (also known as YUV) */
JCS_CMYK, /* C/M/Y/K */
JCS_YCCK /* Y/Cb/Cr/K */
} J_COLOR_SPACE;
where JCS_RGB, JCS_CMYK are only used for the transformation and will
*never* appear within cinfo.jpeg_color_space.
If cinfo.jpeg_color_space is JCS_UNKNOWN reject the file, could be anything.
If cinfo.jpeg_color_space is JCS_GRAYSCALE only one component (Y) is
used and stored, the most simple case.
The most common case is off course cinfo.jpeg_color_space is JCS_YCbCr.
And my recommendation would be to reject JCS_CMYK because without color
management and the usage of the ICC profile that usually accompanies
such a file there is NO transformation to rgb possible.
To see how the YCbCr -> RGB transformation is done within jpeglib have a
look at jdcolor.c"
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive wrote:
> And my recommendation would be to reject JCS_CMYK because...
Err, this should be "...reject JCS_YCCK..."
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Um - misunderstanding here:
>
> The default gamma for input files would be intended to kick in *only*
> for files where no gamma information is to be had (or where
> sophisticated gamma / color profile handling hasn't been implemented yet).
>
to cite myself:
"If no gAMA chunk and no sRGB chunk is present the PNG/W3C
recommendation says to handle the file in the same way is if a sRGB
chunk were present."
So for PNG the gamma is always defined!
Or did I miss something else in the discussion?
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive wrote:
>
> did I forget something, GIF? not much to say there but usually gamma
> corrected in between 1.4 and 2.4 - its a matter of guessing again.
>
Oops. it seems I'm a bit biased against GIF so to be fair there is also
the usual W3C recommendation to assume GIF to be in sRGB but I have an
old GIF collection since good old Compuserve days that are obviously not.
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive <"ive### [at] lilysoft org"> wrote:
> Ive wrote:
>
> > And my recommendation would be to reject JCS_CMYK because...
>
> Err, this should be "...reject JCS_YCCK..."
>
> -Ive
From what I'm reading elsewhere, Y/Cr/Cb/K can be folded down to Y/Cr/Cb by just
subtracting K from Y. (Yes, this means you'd need to potentially support a
negative luma component in the process of generating the colors at any given
spot... but shouldn't the internal calculation not have an issue with that
anyway, given that negative channel values can crop up in OpenEXR files
already?)
Am I reading stuff from people who are grossly misinformed?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive schrieb:
> Or did I miss something else in the discussion?
No, I did - I had only skimmed over the information you provided, and
missed that detail then.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp schrieb:
>>> It would also automatically fix the current problem with image maps
>>> without the user having to specify anything in the scene file itself.
>
>> What current problem?
>
> I can't believe you have already forgotten the superlong thread about
> the subject. Are you honestly saying that you can't remember what the
> problem with input images in POV-Ray 3.7 currently are? Really?
Sorry, I misread your message to read "height fields" instead of "image
maps".
Looks like I seriously needed to get some sleep...
(Speaking of height fields: After having dug through the code, I can
state with confidence that for height fields, even PNG files are always
read in as encoded, without taking the gAMA chunk into account, so at
least for those you don't need to "amputate" the gAMA chunk.)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MDenham schrieb:
> Ive <"ive### [at] lilysoft org"> wrote:
>> Ive wrote:
>>
>>> And my recommendation would be to reject JCS_CMYK because...
>> Err, this should be "...reject JCS_YCCK..."
>>
>> -Ive
> From what I'm reading elsewhere, Y/Cr/Cb/K can be folded down to Y/Cr/Cb by just
> subtracting K from Y. (Yes, this means you'd need to potentially support a
> negative luma component in the process of generating the colors at any given
> spot... but shouldn't the internal calculation not have an issue with that
> anyway, given that negative channel values can crop up in OpenEXR files
> already?)
>
> Am I reading stuff from people who are grossly misinformed?
Don't know, but the first google result I found on "YCCK" gave this
information:
"There are a number of issues here. The K channel is an extension of the
Y channel. The question is what is the nature of the the CMYK data?
Is it linear in percent dot? If that is the case, the image you see
should be negative. If the CODEC unfolded the data and reversed it you
have to check if it has also applied gamma correction. If it has, then
you need to apply a gamma 2.2 to the Y and K channels, sum them, and
then apply a gamma .45 to the resultant sum. This is only an
approximation."
So apparently the YCCK color space is to CMYK what YCbCr is to RGB.
Given that CMYK has something to do with how much ink should be printed
of which color, which is subject to various conditions such as how much
bleeding occurs in the paper and all such things, I guess this "just
subtract K from Y" is more of a kludge than a proper handling.
BTW, I presume that out_color_space will default to JCS_CMYK for such
files; in that case, POV-Ray will reject those files anyway at present.
Ive, would it be a solution for such cases (but only those) to override
the out_color_space with JCS_RGB, and have the library do the whole job
(at the cost of precision)?
As for negative color components, POV-Ray does appear to handle these in
some sane fashion in *most* cases, but - as it appears to me - not all.
In particular, I recently saw some indication that shadows cast by
semi-transparent stuff needs to be revisited on this issue.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive, do you happen to know anything about IFF?
(Maybe "not worth bothering about because it is definitely long obsolete
by now"?)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MDenham wrote:
> From what I'm reading elsewhere, Y/Cr/Cb/K can be folded down to Y/Cr/Cb by just
> subtracting K from Y. (Yes, this means you'd need to potentially support a
> negative luma component in the process of generating the colors at any given
> spot... but shouldn't the internal calculation not have an issue with that
> anyway, given that negative channel values can crop up in OpenEXR files
> already?)
>
You are confusing things here. Negative luminance is just impossible
while having one or two negative RGB components (with at least one
positive) is perfectly valid and is indeed needed to describe colors out
of the gamut of the current RGB color system. In practice this means
e.g. colors that are not displayable on your CRT/LCD monitor but do
exist in the real world. Usually such colors are highly saturated
'neon'-colors.
The transformation from YCCK to RGB would require 2 steps.
First transform from Y/Cb/Cr to CMY in the same way as the YCbCr -> RGB
conversion is done (but actually you will get CMY values if
jpeg_color_space is JCS_YCCK ) either by using a set of pre-build lookup
tables like libjpeg does for speed reasons or by actually calculating
the transformation in place.
Leave the K untouched and you get CMYK.
But the transformation from CMYK (being a color separation) to RGB is
impossible without also knowing the used CMYK color space definition as
defined e.g. within an ICC profile. POV-Ray does currently not support
such color profiles.
And I know that there exists this simple 'formula' for converting CMYK
to RGB but believe me, this 'formula' should have never existed in the
first place. It once even found its way into the wikipedia article about
CMYK that was a mess at this time anyway and it was quite some fighting
involved to remove it. This happened a few years ago and meanwhile the
article is a quite good one. So if you are interested you may want to
look at the CMYK to RGB conversion section there for more details.
> Am I reading stuff from people who are grossly misinformed?
Might be ;)
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Ive, do you happen to know anything about IFF?
>
> (Maybe "not worth bothering about because it is definitely long obsolete
> by now"?)
Besides some sweet memories, an Amigo 500 was the fist machine I did use
POV-Ray with, I do also remember that I have a format specification
somewhere but as this might even be on some old 3.5" disk chances are
not very good that I will ever find it again.
But I do remember that the IFF/ILBM format was tailored to tightly fit
the Amiga hardware so I would be surprised if there was anything else
used as the actual system gamma of an Amiga. But I do not remember what
this might have been.
But while thinking about it, as the format was later even used on Atari
and Mac systems I might even be mistaken in this respect.
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Ive, would it be a solution for such cases (but only those) to override
> the out_color_space with JCS_RGB, and have the library do the whole job
> (at the cost of precision)?
>
No. Libjpeg does not support a YCCK -> RGB transformation and it does
not support CMYK -> RGB transformation. So if the jpeg_color_space is
JCS_YCCK you can either get JCS_YCCK or JCS_CMYK from the library and
have to deal with color separations for yourself anyway.
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive schrieb:
> No. Libjpeg does not support a YCCK -> RGB transformation and it does
> not support CMYK -> RGB transformation. So if the jpeg_color_space is
> JCS_YCCK you can either get JCS_YCCK or JCS_CMYK from the library and
> have to deal with color separations for yourself anyway.
No thanks - not for starters at least :-)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive <"ive### [at] lilysoft org"> wrote:
> MDenham wrote:
>
> > From what I'm reading elsewhere, Y/Cr/Cb/K can be folded down to Y/Cr/Cb by just
> > subtracting K from Y. (Yes, this means you'd need to potentially support a
> > negative luma component in the process of generating the colors at any given
> > spot... but shouldn't the internal calculation not have an issue with that
> > anyway, given that negative channel values can crop up in OpenEXR files
> > already?)
> >
>
> You are confusing things here. Negative luminance is just impossible
> while having one or two negative RGB components (with at least one
> positive) is perfectly valid and is indeed needed to describe colors out
> of the gamut of the current RGB color system.
Eh, negative luminance + positive Cr/Cb = <+,-,+> potentially (forgive the
massively bastardized variation on standard color syntax ;-D) - and negatives
on green are, from looking at normal "RGB vs. real coloring" gamut diagrams,
probably the most common colors that exist but aren't displayable. Also, the
engine already handles "impossible" colors (components all negative,
hypersaturated colors that extend outside the gamut in the opposite direction,
&c.) so it's not like that's necessarily an issue other than the obvious "it'll
look weird and may not behave entirely correctly".
> In practice this means
> e.g. colors that are not displayable on your CRT/LCD monitor but do
> exist in the real world. Usually such colors are highly saturated
> 'neon'-colors.
>
> The transformation from YCCK to RGB would require 2 steps.
> First transform from Y/Cb/Cr to CMY in the same way as the YCbCr -> RGB
> conversion is done (but actually you will get CMY values if
> jpeg_color_space is JCS_YCCK ) either by using a set of pre-build lookup
> tables like libjpeg does for speed reasons or by actually calculating
> the transformation in place.
> Leave the K untouched and you get CMYK.
> But the transformation from CMYK (being a color separation) to RGB is
> impossible without also knowing the used CMYK color space definition as
> defined e.g. within an ICC profile. POV-Ray does currently not support
> such color profiles.
> And I know that there exists this simple 'formula' for converting CMYK
> to RGB but believe me, this 'formula' should have never existed in the
> first place. It once even found its way into the wikipedia article about
> CMYK that was a mess at this time anyway and it was quite some fighting
> involved to remove it. This happened a few years ago and meanwhile the
> article is a quite good one. So if you are interested you may want to
> look at the CMYK to RGB conversion section there for more details.
Isn't the "formula" for CMYK->RGB essentially specific to an "ideal" ICC
profile? If so... *goes off to figure out a good syntax for true spectral
lighting and pigmenting, which is probably more in the realm of additions to
4.0 or later but would allow for "true" conversions both ways as well as other,
odder effects*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MDenham schrieb:
> *goes off to figure out a good syntax for true spectral
> lighting and pigmenting, which is probably more in the realm of additions to
> 4.0 or later but would allow for "true" conversions both ways as well as other,
> odder effects*
Yeah, that would be something nice to have.
Including fluorescence, please :-)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MDenham wrote:
> Eh, negative luminance + positive Cr/Cb = <+,-,+> potentially (forgive the
> massively bastardized variation on standard color syntax ;-D) - and negatives
> on green are, from looking at normal "RGB vs. real coloring" gamut diagrams,
> probably the most common colors that exist but aren't displayable. Also, the
> engine already handles "impossible" colors (components all negative,
> hypersaturated colors that extend outside the gamut in the opposite direction,
> &c.) so it's not like that's necessarily an issue other than the obvious "it'll
> look weird and may not behave entirely correctly".
>
Jpeg's YCbCr is a 1:1 adaption of the European standard tv signal
encoding (CCIR/ITU Rec. 601 IIRC) with the advantage that you can just
drop the CbCr part. This did make people happy who couldn't afford a
color tv. Sending a signal with negative Y would have made people quite
unhappy 'cause you just imploded their brand new tv set ;)
Seriously, jpeglib uses a strict range checking anyway (to avoid such
issues as the DCT compression might introduce some noise) and YCbCr is
just not *designed* to represent anything outside the gamut of a tv
monitor from this time. Thats not as bad as it sounds because, if I'm
not mistaken, this gamut was even defined wider than the currently
accepted sRGB gamut.
> Isn't the "formula" for CMYK->RGB essentially specific to an "ideal" ICC
> profile?
An "ideal" CMYK ICC profile is somehow meaningless and does not exist.
Therefor such a 'formula' cannot exist and this was from the very
beginning my point ;)
What we have is a bunch of numerous international standards within the
printing business and an ICC profile is used to make clear to what
standard the CMYK separation does refer, tells something about the
intended ink set, raster... and *a lot* more things.
> *goes off to figure out a good syntax for true spectral
> lighting and pigmenting, which is probably more in the realm of additions to
> 4.0 or later but would allow for "true" conversions both ways as well as other,
> odder effects*
>
This is of course also something I would like to have, but as I'm not so
patient I'll wait with such things until computing power evolves much
more...
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Christian Froeschlin
Subject: Re: Gamma in POV-Ray 3.6 vs. 3.7
Date: 13 Sep 2009 17:09:34
Message: <4aad5f8e@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Ive wrote:
> I do also remember that I have a format specification
> somewhere but as this might even be on some old 3.5" disk chances are
> not very good that I will ever find it again.
http://www.wotsit.org/list.asp?al=I
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive schrieb:
> To make life easier that's the libpng call for getting the
> sRGB chunk information. For the sole purpose of gamma correction you can
> safely ignore the value that is returned as sRGB_intent.
How about just checking for "png_inf->valid & PNG_INFO_sRGB"? Shouldn't
that do the same job?
Another thing: The sRGB spec speaks of aiming to achieve an overall
viewing gamma of 1.125; am I however correct in assuming that decoding
sRGB-encoded material according to the sRGB decoding function will
nonetheless reconstruct the /linear/ data?
Otherwise, if sRGB-encoded data was expected to already account for that
desired viewing gamma, for raytracing purposes it would theoretically
have to be compensated for, both when decoding and encoding.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> How about just checking for "png_inf->valid & PNG_INFO_sRGB"? Shouldn't
> that do the same job?
>
You are aware that you are breaking the poor mans idea of encapsulation
by directly accessing the fields from png_inf ;)
And it's by no means time critical, so why not just use the API call?
> Another thing: The sRGB spec speaks of aiming to achieve an overall
> viewing gamma of 1.125; am I however correct in assuming that decoding
> sRGB-encoded material according to the sRGB decoding function will
> nonetheless reconstruct the /linear/ data?
>
The sRGB viewing gamma of 1.125 is just another (poor mans) attempt of
taking the environment illumination of some typical pc user into
account. There are much more complicated attemps from the ICC and I
really think we do not need to care about this.
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> How about just checking for "png_inf->valid & PNG_INFO_sRGB"? Shouldn't
> that do the same job?
>
You are aware that you are breaking the poor mans idea of encapsulation
by directly accessing the fields from png_inf ;)
And it's by no means time critical, so why not just use the API call?
> Another thing: The sRGB spec speaks of aiming to achieve an overall
> viewing gamma of 1.125; am I however correct in assuming that decoding
> sRGB-encoded material according to the sRGB decoding function will
> nonetheless reconstruct the /linear/ data?
>
The sRGB viewing gamma of 1.125 is just another (poor mans) attempt of
taking the environment illumination of some typical pc user into
account. There are much more complicated attemps from the ICC and I
really think we do not need to care about this.
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive schrieb:
> You are aware that you are breaking the poor mans idea of encapsulation
> by directly accessing the fields from png_inf ;)
>
> And it's by no means time critical, so why not just use the API call?
Because POV-Ray currently uses the same construct to check for presence
of a gAMA chunk?
No other reason.
> The sRGB viewing gamma of 1.125 is just another (poor mans) attempt of
> taking the environment illumination of some typical pc user into
> account. There are much more complicated attemps from the ICC and I
> really think we do not need to care about this.
So, in other words, it is indeed just a recommendation for viewing
software? Something like, "guys, this encoding scheme makes sure you can
reconstruct the linear data - we suggest however you don't just
compensate for actual hardware gamma, but also for viewing environment;
if in doubt, we suggest trying to achieve those 1.125". Did I get that
right?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Le_Forgeron wrote:
> color srgb <1.8,0.5,0.5,0.5>
Ugly. When I see four components, I already have my mind trained to expect
the first three are RGB and the fourth is transparency (which kind of
transparency depends on whether it's rgbf or rgbt).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Of course if the user has not specified an assumed gamma for the input
> image either, then the default should probably be Display_gamma (ie. so
> that the image will look in POV-Ray the same it looks when viewed with
> some image viewing program).
Wouldn't this cause the scene to render differently on different computers,
in a way that cannot be easily corrected afterwards? (if the entire image
has wrong gamma, it can be corrected, but if a single texture image_map has
wrong gamma, you can't easily fix it by postprocessing the output image)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Yeah, that would be something nice to have.
>
> Including fluorescence, please :-)
That would be neat to have... But, how to implement? How would you
convert from an rgb-specified color to a spectrally specified color?
fluorescence would be quite fun to have. Impractical, but fun to play with.
At least with spectral colors and lights you could simulate metameric
failure.
--
~Mike
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Hey, get real: You need to press the "shift" key for quite a host of
> things, I guess. As a German, for instance, I need to press "shift" to
> get a multiplication asterisk, dividing slash, opening or closing
> parentheses, quotes etc,
And for all nouns too, right? :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Mike Raiford schrieb:
> That would be neat to have... But, how to implement? How would you
> convert from an rgb-specified color to a spectrally specified color?
Oh, I guess that shouldn't be too difficult: Just multiply each color
component with the spectral output of some standard phosphor for that
color - et voila. It would boil down to an 3xN matrix multiplication.
Generating the output image should be just as easy: Using an Nx3 matrix
based on the CIE tristimulus curves would give the color in XYZ color
space. From there it's just another 3x3 matrix multiplication to csRGB.
Consequently, there must also exist some Nx3 matrix to take us directly
to sRGB.)
Of course, to make any /real/ use of this feature, there would neet to
be an additional color syntax to have more control over a color's spectrum.
> fluorescence would be quite fun to have. Impractical, but fun to play with.
>
> At least with spectral colors and lights you could simulate metameric
> failure.
Whatever that may be...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Because POV-Ray currently uses the same construct to check for presence
> of a gAMA chunk?
>
> No other reason.
>
Ah, OK then.
> So, in other words, it is indeed just a recommendation for viewing
> software? Something like, "guys, this encoding scheme makes sure you can
> reconstruct the linear data - we suggest however you don't just
> compensate for actual hardware gamma, but also for viewing environment;
> if in doubt, we suggest trying to achieve those 1.125". Did I get that
> right?
Yes sir. But it might be the reason why the beta from the sRGB transfer
function was chosen the way it is, but this is also something we do not
need to care about.
Note to myself: reread the sRGB specs.
Answer from myself: has to wait 'till tomorrow.
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Le 14/09/2009 19:53, Mike Raiford nous fit lire :
> clipka wrote:
>
>> Yeah, that would be something nice to have.
>>
>> Including fluorescence, please :-)
>
> That would be neat to have... But, how to implement? How would you
> convert from an rgb-specified color to a spectrally specified color?
>
> fluorescence would be quite fun to have. Impractical, but fun to play with.
>
You would need to separate real spectrum (color of light) from
transformation matrix (square matrix) (color of pigments).
If using more than one color space (light using spectrum, some pigments
using rgb... ) you need an internal adaptation to convert the matrix
into the dimension/base of the light-ray. You need one anyway at the
camera to return to rgb. (linear or gamma corrected...) (well, not rgb
per se, but whatever the image format would be using... usually rgb so far)
Currently, we have pigment on diagonal matrix (Or r'= (I(p)).r )
(r=ray, p=pigment, I=Identity matrix). Not a big difference, just r'=p.r
with p [n,n], r[1,n] instead.
The basic trick is to propagate on the color/base of the light source.
Merging lights is another part of the fun, you either propagate the
light color as a collection of lights color until the camera (applying
the weights along the ray progression), optionnaly optimising each
color-spectrum system (only 1 spectral component, only 1 rgb, only one
cmyb... ) to reduce the stack size. Or you convert all to an internal
comprehensive base without loss (if such beast can exist ?)
The camera/file writing endpoints just convert that collections of
partial ray-color into the expected component system.
Wondering, is ambient light (global setting) in rgb or just gray ?
> At least with spectral colors and lights you could simulate metameric
> failure.
>
See you had already the answer: spectral light is a 1-D vector, spectral
color is a 2-D vector,aka matrix (usually only the main diagonal is
used, but frequency converter, bichromism... ). You knew it needed two
different concepts/objects.
In fact the reflection's colour is a matrix, and the refraction's colour
is another. (Today, refraction = coef*reflection ... known as filter)
Transmit should remains a single number, right ?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez schrieb:
>> Hey, get real: You need to press the "shift" key for quite a host of
>> things, I guess. As a German, for instance, I need to press "shift" to
>> get a multiplication asterisk, dividing slash, opening or closing
>> parentheses, quotes etc,
>
> And for all nouns too, right? :)
Which makes me think - isn't it remarkable that the most common word in
the English language that is capitalized happens to be a particularly
egoistic one?
In the German language, on the other hand, it happens to be the
respectful variant of the 2nd person pronouns that stand out capitalized
over all their kin ;-)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Le_Forgeron schrieb:
> In fact the reflection's colour is a matrix, and the refraction's colour
> is another. (Today, refraction = coef*reflection ... known as filter)
> Transmit should remains a single number, right ?
Are you sure about this?
For diffuse reflection you're right: That one would need a matrix, to
account for fluorescence effects. The material absorbs light, and
re-emits the energy of it at a different wavelength in random
directions. But do there exist any (practically relevant) effects where
a photon loses or gains energy without being scattered quite randomly?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Mike Raiford schrieb:
>> That would be neat to have... But, how to implement? How would you
>> convert from an rgb-specified color to a spectrally specified color?
>
> Oh, I guess that shouldn't be too difficult: Just multiply each color
> component with the spectral output of some standard phosphor for that
> color - et voila. It would boil down to an 3xN matrix multiplication.
>
> Generating the output image should be just as easy: Using an Nx3 matrix
> based on the CIE tristimulus curves would give the color in XYZ color
> space. From there it's just another 3x3 matrix multiplication to csRGB.
> Consequently, there must also exist some Nx3 matrix to take us directly
> to sRGB.)
>
> Of course, to make any /real/ use of this feature, there would neet to
> be an additional color syntax to have more control over a color's spectrum.
>
You would definitely want a way to define the observer and the pigments.
One thing you would need to be careful of is colors defined simply by
RGB would be susceptible to metameric failure under light sources that
have strong lines in their spectrum (see below)
>> fluorescence would be quite fun to have. Impractical, but fun to play
>> with.
>>
>> At least with spectral colors and lights you could simulate metameric
>> failure.
>
> Whatever that may be...
http://en.wikipedia.org/wiki/Metamerism_%28color%29
--
~Mike
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ive schrieb:
> What I have to add are a few notes about file-format gamma handling:
...
> did I forget something, GIF? not much to say there but usually gamma
> corrected in between 1.4 and 2.4 - its a matter of guessing again.
How about TIFF? Not that it would probably matter much, if the support
is as broken as you say, but still...
Would it be a safe bet to presume sRGB for those as well?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Le 14/09/2009 20:38, clipka nous fit lire :
> Le_Forgeron schrieb:
>> In fact the reflection's colour is a matrix, and the refraction's colour
>> is another. (Today, refraction = coef*reflection ... known as filter)
>> Transmit should remains a single number, right ?
>
> Are you sure about this?
Today, reflection is just a 1D-vector (3 components: R,G,B), and docs says:
The 4th component, called filter, specifies the amount of filtered
transparency of a substance. Some real-world examples of filtered
transparency are stained glass windows or tinted cellophane. The light
passing through such objects is tinted by the appropriate color as the
material selectively absorbs some frequencies of light while allowing
others to pass through. The color of the object is subtracted from the
light passing through so this is called subtractive transparency.
The 5th component, called transmit, specifies the amount of non-filtered
light that is transmitted through a surface. Some real-world examples of
non-filtered transparency are thin see-through cloth, fine mesh netting
and dust on a surface. In these examples, all frequencies of light are
allowed to pass through tiny holes in the surface. Although the amount
of light passing through is diminished, the color of the light passing
through is unchanged.
### end of citation
I would expect transmit to not suffer ior, whereas filter to do. [see
later **]
For filter handling, look at source/backend/render/trace.cpp, circa line
928 : the filtering accumulator get added with the product of single
filter by surface colour (vector rgb). If it was independent, it would
use a different information instead of multiplying for that.
(and it might be more memory consuming, but saving 3 "*" each
ray/intersection, but that would not matter i guess)
at least, it looks like ambient finish can be colored, sort of a good
news for me.
** : it seems that whatever, filter or transmit, both get ior in play,
as a single ray is shot (line 963, trace.cpp again). Which somehow is
not what I would expect from my reading of the docs.
Transmit is refracted, unfiltered;
Filter is refracted, filtered by layer colour (!?)
Reflected colour is special (according to metallic reflection and such
fancy), but basically has far more control (ambient, diffuse, reflection...)
The fishy thing here seems to be that the same colour for reflection is
used for refraction/filter.
I might wish for a second Transmit, straight line for incoming rays, for
at least semi-refracting objects (real see-thru when ior come into play)
>
> For diffuse reflection you're right: That one would need a matrix, to
> account for fluorescence effects. The material absorbs light, and
> re-emits the energy of it at a different wavelength in random
> directions. But do there exist any (practically relevant) effects where
> a photon loses or gains energy without being scattered quite randomly?
The notion of diffuse refraction (sort of) could be a perturbation of
the normal, or some integration of a sampled cone...
For straight refraction, I know at least of laser-protection filter.
And whether a laser-beam is obtained from excitation of peripheral
(reflection) or of internal (refraction)
For the SDL, at least it would allow a refraction on a black reflecting
glass.
Now, the real question might be to modelise the refraction at the
surface, or in the media only ? Should the surface_color*filter be
dropped for an additional refracted transmit (bis, sort of) ?
Should we continue to fake a "filtering" (the actual refraction) ?
And should we bother for pleochroism ? what about birefringence ?
(from wikipedia, handle with care: Cotton (Gossypium hirsutum) fiber is
birefringent because of high levels of cellulosic material in the
fiber's secondary cell wall.
If Cotton is not everywhere... )
Maybe that's a part for media, not pigment.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> How about TIFF? Not that it would probably matter much, if the support
> is as broken as you say, but still...
>
> Would it be a safe bet to presume sRGB for those as well?
Given the facts that the used RGBA-interface from libtif applies a
simple gamma correction of 2.2 before returning the RGBA 8bit values
when the original image data did use color formats like L*a*b or Luv
(linear ones) and most of the libtif code dates back to times long
before sRGB was even specified I would vote for just an inverse 2.2
correction. Should be at least close for almost 90% of randomly selected
TIFF's.
TIFF has for 'everything' some tags but does not have some simple gamma
tag like PNG. Instead it has tags that would contain complete LUT's for
each color channel. But the RGBA-interface ignores those anyway. And
most contemporary TIFF's rely on embedded ICC profiles and this is also
not supported when using this interface.
-Ive
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Le_Forgeron schrieb:
>> The 4th component, called filter, specifies the amount of filtered
>> transparency of a substance. Some real-world examples of filtered
>> transparency are stained glass windows or tinted cellophane.
>> ...
>> The 5th component, called transmit, specifies the amount of non-filtered
>> light that is transmitted through a surface. Some real-world examples of
>> non-filtered transparency are thin see-through cloth, fine mesh netting
>> and dust on a surface.
>> ...
>
> I would expect transmit to not suffer ior, whereas filter to do. [see
> later **]
Not really: The see-through cloth and similar stuff mental picture of
what transmit actually does only work well when dealing with sufaces
only - in that case the question whether transmit suffers ior is moot.
Actually, filter doesn't suffer ior either: It is the light attenuated
by them that suffers refraction.
> For filter handling, look at source/backend/render/trace.cpp, circa line
> 928 :
Hold it! --
Don't look at the code if you want to find out how things *should* be
modeled :-P
You know why both filter and transmit are there?
Because a single coefficient is not enough to describe transparency.
Now Gues why that is?
Because strictly speaking it would require *three* coefficients: Red,
blue and green transparency :-P
With those three, you could do everything filter and transmit do right
now - plus some.
And when going for spectral math, it would require as many coefficients
as there are wavelengths: Each could be attenuated differently.
> The fishy thing here seems to be that the same colour for reflection is
> used for refraction/filter.
Not really: Normally, when transparency is involved, you get
straightforward "white" reflection. This is different when metallic
materials are involved, but those are not transparent - unless there are
small holes in it, in which case the transparent color is "white" (as
modelled by transmit).
(There are a few exceptions to this, but as far as I know those are
rare. iridescence is such an effect.)
> I might wish for a second Transmit, straight line for incoming rays, for
> at least semi-refracting objects (real see-thru when ior come into play)
What real-world effect would that model?
>> But do there exist any (practically relevant) effects where
>> a photon loses or gains energy without being scattered quite randomly?
>
> The notion of diffuse refraction (sort of) could be a perturbation of
> the normal, or some integration of a sampled cone...
That has nothing to do with my question.
There's also no such thing as diffuse refraction - there is only diffuse
transparency, caused by either (a) as you say pertubations of the
normal, or (b) volumetric scattering in the material.
> For straight refraction, I know at least of laser-protection filter.
>
> And whether a laser-beam is obtained from excitation of peripheral
> (reflection) or of internal (refraction)
I have no idea what you're saying here.
> For the SDL, at least it would allow a refraction on a black reflecting
> glass.
??
> Now, the real question might be to modelise the refraction at the
> surface, or in the media only ?
Refraction only occurs at surfaces.
Do you perhaps mean attenuation of refracted light? For that, POV-Ray
provides both the "filter" color, as well as the interior fading. The
one would be suitable to model coatings made of semi-transparent
material, while the other would model large volumes of semi-transparent
material.
> And should we bother for pleochroism ? what about birefringence ?
A bit of peochroism would be neat. Some 6 instead of 3 color channels
would be a start. Plus a UV channel of course.
> (from wikipedia, handle with care: Cotton (Gossypium hirsutum) fiber is
> birefringent because of high levels of cellulosic material in the
> fiber's secondary cell wall.
>
> If Cotton is not everywhere... )
As it is typically used in fibrous form, the birefringence effect is of
no importance whatsoever at the scales of usual scenes.
> Maybe that's a part for media, not pigment.
Birefringence is definitively neither a media nor pigment thing, but a
straightforward interior thing, and would have to join ranks with ior
and dispersion (as a matter of fact it's a difference in ior depending
on polarization with respect to the "optical axis" of the (AFAIK
necessarily) crystalline material).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka <ano### [at] anonymous org> wrote:
> You know why both filter and transmit are there?
>
> Because a single coefficient is not enough to describe transparency.
>
> Now Gues why that is?
>
> Because strictly speaking it would require *three* coefficients: Red,
> blue and green transparency :-P
>
> With those three, you could do everything filter and transmit do right
> now - plus some.
>
> And when going for spectral math, it would require as many coefficients
> as there are wavelengths: Each could be attenuated differently.
This makes a good case for actually stripping filter and transmit out of the SDL
entirely (or at least deprecating them) and throwing in a separate
"transparency" keyword under pigments.
....especially if we _are_ going to have spectral coloring/lighting. (For the
time being, I'm leaning towards an implementation that's strictly peak/width
pairs. It'd be extended later, but it's at least a start towards a "good"
system for this.)
> > For the SDL, at least it would allow a refraction on a black reflecting
> > glass.
>
> ??
Obsidian, at present, is one of the more pain-in-the-neck RL substances to
model. I assume this is what he's trying to get at, but I could be wrong.
> > And should we bother for pleochroism ? what about birefringence ?
>
> A bit of p[l]eochroism would be neat. Some 6 instead of 3 color channels
> would be a start. Plus a UV channel of course.
Pleochroism pretty well falls under the requests for an AOI pigment pattern,
doesn't it? :-D
> > Maybe that's a part for media, not pigment.
>
> Birefringence is definitively neither a media nor pigment thing, but a
> straightforward interior thing, and would have to join ranks with ior
> and dispersion (as a matter of fact it's a difference in ior depending
> on polarization with respect to the "optical axis" of the (AFAIK
> necessarily) crystalline material).
Dispersion is an ugly hack at present, just like iridescence. :-D (Technically
it should be implemented as the spectral variant of ior... yet another thing on
The List (tm) for this.) Birefringence seems like it'd require an extension to
ior as well (similar to the current two-value reflection form - specify an axis
of anisotropy and a second ior), though maybe I'm loading a bit much on the ior
keyword now...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MDenham schrieb:
> This makes a good case for actually stripping filter and transmit out of the SDL
> entirely (or at least deprecating them) and throwing in a separate
> "transparency" keyword under pigments.
Indeed - though it might be more correct to re-use the "transmit"
keyword for that purpose.
> ....especially if we _are_ going to have spectral coloring/lighting. (For the
> time being, I'm leaning towards an implementation that's strictly peak/width
> pairs. It'd be extended later, but it's at least a start towards a "good"
> system for this.)
For the time being, I guess we'll have to do with RGB for quite a while
still :-)
> Obsidian, at present, is one of the more pain-in-the-neck RL substances to
> model. I assume this is what he's trying to get at, but I could be wrong.
It appears to me that this would be due to the blackness not being a
surface effect at all, and would need subsurface scattering or (probably
more efficient in this case) media to be modelled properly.
>>> And should we bother for pleochroism ? what about birefringence ?
>> A bit of p[l]eochroism would be neat. Some 6 instead of 3 color channels
>> would be a start. Plus a UV channel of course.
>
> Pleochroism pretty well falls under the requests for an AOI pigment pattern,
> doesn't it? :-D
Yes, that would probably be an alternative in some semi-rare cases.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
>> Maybe that's a part for media, not pigment.
>
> Birefringence is definitively neither a media nor pigment thing, but a
> straightforward interior thing, and would have to join ranks with ior
> and dispersion (as a matter of fact it's a difference in ior depending
> on polarization with respect to the "optical axis" of the (AFAIK
> necessarily) crystalline material).
How hard would it be to implement birefringence ...? Seems like it could
easily be faked
Syntax would be trivial:
ior 1.5, 1.7 //(birefringent material)
You don't really need to care about the polarization of light, since
light in POVRay doesn't have polarity anyway.
I would imagine tracing a second ray at a different IOR would be rather
simple to add.
--
~Mike
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Mike Raiford <"m[raiford]!at"@gmail.com> wrote:
> clipka wrote:
>
> >> Maybe that's a part for media, not pigment.
> >
> > Birefringence is definitively neither a media nor pigment thing, but a
> > straightforward interior thing, and would have to join ranks with ior
> > and dispersion (as a matter of fact it's a difference in ior depending
> > on polarization with respect to the "optical axis" of the (AFAIK
> > necessarily) crystalline material).
>
> How hard would it be to implement birefringence ...? Seems like it could
> easily be faked
>
> Syntax would be trivial:
>
> ior 1.5, 1.7 //(birefringent material)
>
> You don't really need to care about the polarization of light, since
> light in POVRay doesn't have polarity anyway.
>
> I would imagine tracing a second ray at a different IOR would be rather
> simple to add.
The problem is that you still need to know two other pieces of information:
1) the axis of anisotropy
2) the "ordinary" axis
It turns into a useful (though limited) form of the otherwise not-gonna-happen
"variable ior" request thanks to this. (Generalized variable ior isn't going
to happen for reasons that are mentioned in the documentation, such as
"pockets" of high IOR - or even not-so-high IOR - having potentially
pathological behavior. You'd need to switch to a solely
rays-start-at-light-sources approach - photons, only slower - to make this even
slightly viable, and that kind of rewrite probably isn't worth it. [If it turns
out that it's necessary for a "good" spectral system, then we may have issues.
:-D])
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MDenham wrote:
>
> 1) the axis of anisotropy
> 2) the "ordinary" axis
>
> It turns into a useful (though limited) form of the otherwise not-gonna-happen
> "variable ior" request thanks to this. (Generalized variable ior isn't going
> to happen for reasons that are mentioned in the documentation, such as
> "pockets" of high IOR - or even not-so-high IOR - having potentially
> pathological behavior. You'd need to switch to a solely
> rays-start-at-light-sources approach - photons, only slower - to make this even
> slightly viable, and that kind of rewrite probably isn't worth it. [If it turns
> out that it's necessary for a "good" spectral system, then we may have issues.
> :-D])
>
Ah, and here I was thinking it was just as simple as tracing a second
refraction ray.
Bummer.
--
~Mike
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez a écrit :
> clipka wrote:
>> Hey, get real: You need to press the "shift" key for quite a host of
>> things, I guess. As a German, for instance, I need to press "shift" to
>> get a multiplication asterisk, dividing slash, opening or closing
>> parentheses, quotes etc,
>
> And for all nouns too, right? :)
>
On my side, all the followings need two keys:
{}[]<>«»¤|€ (alt-char +...)
\!@#$%?&*()_ (Shift +...)
My Alt Char key is worn smooth...
Alain
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Le_Forgeron a écrit :
>
> Wondering, is ambient light (global setting) in rgb or just gray ?
>
It's a full rgb value. Whenever you provide only a single float
(ambient_lights 1), it get's promoted to a color vector (ambient_lights
<1, 1, 1>)
Setting "ambient_lights <1, 0.2, 5>" is perfectly valid.
Alain
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Mike Raiford a écrit :
> clipka wrote:
>
>>> Maybe that's a part for media, not pigment.
>>
>> Birefringence is definitively neither a media nor pigment thing, but a
>> straightforward interior thing, and would have to join ranks with ior
>> and dispersion (as a matter of fact it's a difference in ior depending
>> on polarization with respect to the "optical axis" of the (AFAIK
>> necessarily) crystalline material).
>
> How hard would it be to implement birefringence ...? Seems like it could
> easily be faked
>
> Syntax would be trivial:
>
> ior 1.5, 1.7 //(birefringent material)
>
> You don't really need to care about the polarization of light, since
> light in POVRay doesn't have polarity anyway.
>
> I would imagine tracing a second ray at a different IOR would be rather
> simple to add.
>
In addition of the second ior, you also need an axis or "direction".
If you take a sphere of birefringent material and make it turn, the
difference in refractions changes. It also changes depending on the
distance from the view axis.
There is a plane where both iors are the same and an axis where they are
the most different, usualy. They are frequently perpendicular, but I
think that there are cases where the axis is not normal to the plane...
I think that you "may" attempt to simulate it. Some experimentation in
view. Some layering and/or averaging would be required.
Alain
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Alain <aze### [at] qwerty org> wrote:
> Mike Raiford a écrit :
> > clipka wrote:
> >
> >>> Maybe that's a part for media, not pigment.
> >>
> >> Birefringence is definitively neither a media nor pigment thing, but a
> >> straightforward interior thing, and would have to join ranks with ior
> >> and dispersion (as a matter of fact it's a difference in ior depending
> >> on polarization with respect to the "optical axis" of the (AFAIK
> >> necessarily) crystalline material).
> >
> > How hard would it be to implement birefringence ...? Seems like it could
> > easily be faked
> >
> > Syntax would be trivial:
> >
> > ior 1.5, 1.7 //(birefringent material)
> >
> > You don't really need to care about the polarization of light, since
> > light in POVRay doesn't have polarity anyway.
> >
> > I would imagine tracing a second ray at a different IOR would be rather
> > simple to add.
> >
> In addition of the second ior, you also need an axis or "direction".
> If you take a sphere of birefringent material and make it turn, the
> difference in refractions changes. It also changes depending on the
> distance from the view axis.
> There is a plane where both iors are the same and an axis where they are
> the most different, usualy. They are frequently perpendicular, but I
> think that there are cases where the axis is not normal to the plane...
If the "axis" isn't normal to the plane, you're working with something with at
least two axes of anisotropy. (This would be a _much_ harder case to work with.
Uniaxial birefringence is probably doable; trying to write it to handle two or
more axes will result in programmers chasing you with hatchets. :-D)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |