Article View: adobe.postscript.programming
Article #1350Re: rgb <--> ycc
From: Gernot Hoffmann
Date: Sun, 26 Jan 2003 12:16
Date: Sun, 26 Jan 2003 12:16
29 lines
1776 bytes
1776 bytes
If the user has an RGB space "u" and he wants to apply the YCrCb conversion with NTSC "n" primaries then has to transform twice: XYZ = Cxu * RGBu RGBn = Cnx * XYZ YCbCr= Cyr * RGBn All these published transformations are indeed based on predefined RGB spaces. We don�t know what the OP really wants, and YCrCb is just an assumption, because I don�t know any YCC. I had also mentioned the JPEG application. Here the RGB values are decoded as they were encoded (with minor errors, because of the quantization). In this case the sender has to take care, that he uses sRGB as source space, unless he tells the receiver the working space (embedded or explicit profile). What I want to say: NTSC has no meaning in this context, it�s just an intermediate mathematical coordinate system. There is not even a gamma correction - simply raw image data are used. My calculation examples show clearly, how the specific RGB spaces are defined (sorry, it�s in the code, but this prevents any typing error). Best regards --Gernot Hoffmann
Technical Details
Message-ID:
<1de78788.4@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de78788.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10c61a,351a1b1b12c74780 X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2003-01-26 04:37:29 PST From: "Gernot Hoffmann" <hoffmann@fho-emden.de> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.postscript.programming Subject: Re: rgb <--> ycc Message-ID: <1de78788.4@WebX.la2eafNXanI> Date: Sun, 26 Jan 2003 04:16:11 -0800 References: <1de78788.-1@WebX.la2eafNXanI> Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit