lcms-user Mailing List for Little cms color engine (Page 198)
An ICC-based CMM for color management
Brought to you by:
mm2
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(15) |
Jun
(24) |
Jul
(9) |
Aug
(14) |
Sep
|
Oct
(12) |
Nov
(17) |
Dec
(31) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(34) |
Feb
(7) |
Mar
(7) |
Apr
(16) |
May
(4) |
Jun
(14) |
Jul
(34) |
Aug
(54) |
Sep
(11) |
Oct
(25) |
Nov
(1) |
Dec
(6) |
2003 |
Jan
(27) |
Feb
(54) |
Mar
(23) |
Apr
(68) |
May
(82) |
Jun
(36) |
Jul
(45) |
Aug
(45) |
Sep
(49) |
Oct
(30) |
Nov
(65) |
Dec
(23) |
2004 |
Jan
(52) |
Feb
(52) |
Mar
(35) |
Apr
(38) |
May
(93) |
Jun
(22) |
Jul
(51) |
Aug
(50) |
Sep
(73) |
Oct
(28) |
Nov
(30) |
Dec
(51) |
2005 |
Jan
(22) |
Feb
(79) |
Mar
(38) |
Apr
(51) |
May
(95) |
Jun
(60) |
Jul
(56) |
Aug
(49) |
Sep
(22) |
Oct
(43) |
Nov
(15) |
Dec
(40) |
2006 |
Jan
(51) |
Feb
(31) |
Mar
(37) |
Apr
(25) |
May
(9) |
Jun
(13) |
Jul
(17) |
Aug
(66) |
Sep
(7) |
Oct
(12) |
Nov
(14) |
Dec
(31) |
2007 |
Jan
(18) |
Feb
(9) |
Mar
(22) |
Apr
(18) |
May
(5) |
Jun
(25) |
Jul
(2) |
Aug
(15) |
Sep
(12) |
Oct
(40) |
Nov
(10) |
Dec
(23) |
2008 |
Jan
(21) |
Feb
(56) |
Mar
(12) |
Apr
(23) |
May
(47) |
Jun
(75) |
Jul
(24) |
Aug
(2) |
Sep
(7) |
Oct
(26) |
Nov
(20) |
Dec
(16) |
2009 |
Jan
(14) |
Feb
(1) |
Mar
(29) |
Apr
(54) |
May
(18) |
Jun
(16) |
Jul
(5) |
Aug
(3) |
Sep
(38) |
Oct
(6) |
Nov
(25) |
Dec
(28) |
2010 |
Jan
(11) |
Feb
(26) |
Mar
(2) |
Apr
(10) |
May
(45) |
Jun
(94) |
Jul
(11) |
Aug
(32) |
Sep
(18) |
Oct
(37) |
Nov
(19) |
Dec
(34) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(16) |
Apr
(29) |
May
(17) |
Jun
(18) |
Jul
(7) |
Aug
(21) |
Sep
(10) |
Oct
(7) |
Nov
(15) |
Dec
(6) |
2012 |
Jan
(13) |
Feb
(16) |
Mar
(15) |
Apr
(12) |
May
(15) |
Jun
(31) |
Jul
(22) |
Aug
(15) |
Sep
(46) |
Oct
(21) |
Nov
(15) |
Dec
(33) |
2013 |
Jan
(19) |
Feb
(17) |
Mar
(31) |
Apr
(17) |
May
(27) |
Jun
(24) |
Jul
(26) |
Aug
(11) |
Sep
(9) |
Oct
(22) |
Nov
(14) |
Dec
(16) |
2014 |
Jan
(20) |
Feb
(66) |
Mar
(29) |
Apr
(13) |
May
(9) |
Jun
|
Jul
(11) |
Aug
(21) |
Sep
(15) |
Oct
(5) |
Nov
(5) |
Dec
(10) |
2015 |
Jan
(6) |
Feb
(26) |
Mar
(26) |
Apr
|
May
(9) |
Jun
(5) |
Jul
(5) |
Aug
(11) |
Sep
(8) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
(3) |
Feb
|
Mar
(9) |
Apr
(3) |
May
(16) |
Jun
(26) |
Jul
(32) |
Aug
(27) |
Sep
(9) |
Oct
|
Nov
(4) |
Dec
(10) |
2017 |
Jan
(11) |
Feb
(44) |
Mar
(6) |
Apr
(8) |
May
(1) |
Jun
(2) |
Jul
(34) |
Aug
(28) |
Sep
(3) |
Oct
(9) |
Nov
(3) |
Dec
|
2018 |
Jan
(1) |
Feb
(5) |
Mar
(6) |
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
(6) |
Dec
|
2019 |
Jan
(18) |
Feb
(16) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(3) |
Oct
(10) |
Nov
(1) |
Dec
(3) |
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(17) |
Jun
(23) |
Jul
|
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
(10) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
(8) |
Feb
|
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(13) |
Nov
(12) |
Dec
|
2023 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
|
May
(3) |
Jun
(5) |
Jul
(3) |
Aug
(8) |
Sep
|
Oct
|
Nov
(1) |
Dec
(9) |
2024 |
Jan
(8) |
Feb
|
Mar
(14) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Karl H. K. <kh...@kh...> - 2001-06-12 01:10:39
|
=2E.. and if you really want sourcecode, take a look at http://www.scarse.org - this is a package (for Unix however) to create scanner profiles. It does not use lcms to read or write ICC profiles. Karl Heinz On Mon, Jun 11, 2001 at 05:21:10PM +0200, Mart=ED Maria wrote: > Hi, >=20 > Let me see if I understand the problem.... >=20 > You have an IT/8 target, then you scan this target and > got a image in RGB. Ok right now. Then, the IT/8 sheet > has Lab values for patches ... and you want to > generate a icc profile that characterizes the translation from > your RGB values to Lab values. Is this? So, this is just what > profiler is doing. You give to the profiler the RGB scanned > image, the IT/8 reference sheet and the profiler resturn to you > the icc profile. >=20 > The full process of obtaining a profile from a set of patches is > very complex. I can outline an algorithm for doing so, but > there is a lot of math/color science involved... I guess is not > worth of the effort required to just build one profile. >=20 > If you want to use this profile somehow embedded into scanner > firmware, you need to know in wich RGB space your scanner > is going to work. Assuming sRGB, a transform between > the obtained profile and sRGB profile will give to you the > corrected RGB values. >=20 > Mart=ED. >=20 > ----- Original Message ----- > From: "Trigonix inc." <in...@tr...> > To: "Mart=ED Maria" <ma...@li...> > Sent: Monday, June 11, 2001 3:44 PM > Subject: Re: [Lcms-user] Scanner calibration >=20 >=20 > > Hi, > > I don`t need a software to do the calibration. > > the scanner i =E0 working on is under developement, and we have somme > probleme > > with colors :). > > So i scanned an IT8 target and compare the value (in RGB) a obtained and > the > > value given with the target. > > I know that there is a way to write a program in c++ to generate a prof= ile > > (icc) to do some intepolation and to calibrate the scanner but HOW? > > > > thanks > > > > > > Mart=ED Maria wrote: > > > > > Hi, > > > > > > Building profiles is still a pending subject for little cms, > > > however, KWLee has a free program that does just > > > what you ask for: > > > > > > http://www.littlecms.com/iphoto/download.htm > > > > > > The profiles generated by this tool has been tested and works > > > fine under lcms. > > > > > > Mart=ED. > > > > > > ----- Original Message ----- > > > From: "Trigonix inc." <in...@tr...> > > > To: "Mart=ED Maria" <ma...@li...> > > > Cc: <lcm...@li...> > > > Sent: Monday, June 11, 2001 3:08 PM > > > Subject: [Lcms-user] Scanner calibration > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > how can i use the IT8 to generate an ICM profile to calibrate a > scanner > > > > that I`m working on. > > > > Thanks. > > > > Adil. > > > > > > > > > > > > _______________________________________________ > > > > Lcms-user mailing list > > > > Lcm...@li... > > > > http://lists.sourceforge.net/lists/listinfo/lcms-user > > > > > > > > > > > > -- > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Certifi=E9e ISO9002 =3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Trigonix Inc. > > 80 rue Queen, bureau 101 > > Montreal, QC, CAN H3C 2N5 > > Tel: (514) 874-0443 > > Fax: (514) 874-0339 > > email: in...@tr... > > > > > > > > >=20 >=20 > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > http://lists.sourceforge.net/lists/listinfo/lcms-user --=20 Karl Heinz Kremer kh...@kh... PGP Key at http://www.freecolormanagement.com/download/khk.asc EPSON Sane Backend: http://www.freecolormanagement.com |
From: <ma...@li...> - 2001-06-11 15:20:01
|
Hi, Let me see if I understand the problem.... You have an IT/8 target, then you scan this target and got a image in RGB. Ok right now. Then, the IT/8 sheet has Lab values for patches ... and you want to generate a icc profile that characterizes the translation from your RGB values to Lab values. Is this? So, this is just what profiler is doing. You give to the profiler the RGB scanned image, the IT/8 reference sheet and the profiler resturn to you the icc profile. The full process of obtaining a profile from a set of patches is very complex. I can outline an algorithm for doing so, but there is a lot of math/color science involved... I guess is not worth of the effort required to just build one profile. If you want to use this profile somehow embedded into scanner firmware, you need to know in wich RGB space your scanner is going to work. Assuming sRGB, a transform between the obtained profile and sRGB profile will give to you the corrected RGB values. Martí. ----- Original Message ----- From: "Trigonix inc." <in...@tr...> To: "Martí Maria" <ma...@li...> Sent: Monday, June 11, 2001 3:44 PM Subject: Re: [Lcms-user] Scanner calibration > Hi, > I don`t need a software to do the calibration. > the scanner i à working on is under developement, and we have somme probleme > with colors :). > So i scanned an IT8 target and compare the value (in RGB) a obtained and the > value given with the target. > I know that there is a way to write a program in c++ to generate a profile > (icc) to do some intepolation and to calibrate the scanner but HOW? > > thanks > > > Martí Maria wrote: > > > Hi, > > > > Building profiles is still a pending subject for little cms, > > however, KWLee has a free program that does just > > what you ask for: > > > > http://www.littlecms.com/iphoto/download.htm > > > > The profiles generated by this tool has been tested and works > > fine under lcms. > > > > Martí. > > > > ----- Original Message ----- > > From: "Trigonix inc." <in...@tr...> > > To: "Martí Maria" <ma...@li...> > > Cc: <lcm...@li...> > > Sent: Monday, June 11, 2001 3:08 PM > > Subject: [Lcms-user] Scanner calibration > > > > > > > > > > > > > > > > > Hi, > > > how can i use the IT8 to generate an ICM profile to calibrate a scanner > > > that I`m working on. > > > Thanks. > > > Adil. > > > > > > > > > _______________________________________________ > > > Lcms-user mailing list > > > Lcm...@li... > > > http://lists.sourceforge.net/lists/listinfo/lcms-user > > > > > > > > -- > =============== Certifiée ISO9002 ================ > Trigonix Inc. > 80 rue Queen, bureau 101 > Montreal, QC, CAN H3C 2N5 > Tel: (514) 874-0443 > Fax: (514) 874-0339 > email: in...@tr... > > > > |
From: <ma...@li...> - 2001-06-11 13:26:50
|
Hi, Building profiles is still a pending subject for little cms, however, KWLee has a free program that does just what you ask for: http://www.littlecms.com/iphoto/download.htm The profiles generated by this tool has been tested and works fine under lcms. Martí. ----- Original Message ----- From: "Trigonix inc." <in...@tr...> To: "Martí Maria" <ma...@li...> Cc: <lcm...@li...> Sent: Monday, June 11, 2001 3:08 PM Subject: [Lcms-user] Scanner calibration > > > > > Hi, > how can i use the IT8 to generate an ICM profile to calibrate a scanner > that I`m working on. > Thanks. > Adil. > > > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > http://lists.sourceforge.net/lists/listinfo/lcms-user > > |
From: Trigonix inc. <in...@tr...> - 2001-06-11 13:11:05
|
Hi, how can i use the IT8 to generate an ICM profile to calibrate a scanner that I`m working on. Thanks. Adil. |
From: <ma...@li...> - 2001-06-09 14:43:56
|
Ciao Bernardo, > What can I do to obtain in the OutputBuffer the Lab value? Just use lcmslabi.icm (present on distribution packages) as output = profile. For converting from/to floating point, you have the routines in = lcmsapi.txt, here I reproduce... ---------------------------------- // Convert L to double double L2float(WORD v) { Fixed32 fix32; fix32 =3D (Fixed32) v; return (double) fix32 / 652.800; } // the a/b part double ab2float(WORD v) { Fixed32 fix32; fix32 =3D (Fixed32) v; return ((double) fix32/256.0)-128.0; } --------------------------------------- Then, your code will be something like... (please note I'm using 16 bits = Lab, TYPE_Lab_16) | WORD Output[3] | hOutputProfile =3D cmsOpenProfileFormFile("lcmslabi.icm", "r"); | cmsHTRANSFORM hTransform =3D cmsCreateTrasform (hInputProfile, = TYPE_RGB_8, | = hOutputProfile, TYPE_Lab_16, | = INTENT_PERCEPTUAL, 0) = | ... =20 Translating 1 pixel=20 | cmsDoTransform(hTransform, InputBuffer, OutputBuffer, 1) | L =3D L2Float(Output[0]); | a =3D ab2Float(Output[1]); | b =3D ab2Float(Output[2]); =20 Hope this helps. Mart=ED Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message -----=20 From: "Bernardo Pucci" <cyb...@ti...> To: <in...@li...> Sent: Saturday, June 09, 2001 3:46 PM Subject: How can I ..... > Hi littlecms stuff, > I'm an Italian student and I use the littlecms engine to obtain color = space > conversion. > No problem happen If I trasform an image (RGB buffer) between 2 icc > profiles (INPUT and DISPLAY), but I don't understand how I can obtain = a Lab > buffer from an RGB buffer with the use of an INPUT profile only. > I must have Lab value for metrics size and I use an INPUT (digital > fotocamera) icc profile with color space RGB and connection space Lab. > The problem occurs (segmentation fault) when trasform is create: >=20 > cmsHTRANSFORM hTransform =3D cmsCreate Trasform (hInputProfile, = TYPE_RGB_8, > NULL, TYPE_Lab_8, >=20 > INTENT_PERCEPTUAL, 0); > What can I do to obtain in the OutputBuffer the Lab value? >=20 > I have define: > unsigned char InputBuffer for RGB value > float OutputBuffer for Lab value. >=20 > In hoping for a reply thanks > Pucci Bernardo >=20 >=20 >=20 |
From: <ma...@li...> - 2001-06-01 16:23:08
|
Hi, > BTW: Nice work. Hoping this will solve some of our conversion problems. > > We are attempting to port your package to the VAX. However, there are a > couple of function calls for which I cannot find the function definitions. > > The functions are TIFFGetField and TIFFGetFieldDefaulted. > > Could you tell me where these are defined? Thank you. Regarding TIFFGetField and TIFFGetFieldDefaulted, I assume you are trying to compile the tiff profile applier sample. If so, you need the freely available TIFF file format library "libtiff". You can get this library on: http://www.libtiff.org I recall there is support to VMS as well, check contrib/vms folder. About the port, some users have reported me that the CMM engine is working ok on VMS. Simply pick the right toggles on lcms.h and all should work smoothly. Hope this helps. Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: "Borden, Brian" <bri...@ve...> To: "Marti Maria (Little CMS)" <ma...@li...> Sent: Friday, June 01, 2001 5:01 PM Subject: Porting lcms 107b to VAX > > BTW: Nice work. Hoping this will solve some of our conversion problems. > > We are attempting to port your package to the VAX. However, there are a > couple of function calls for which I cannot find the function definitions. > > The functions are TIFFGetField and TIFFGetFieldDefaulted. > > Could you tell me where these are defined? > > > Also, any hints/tips you could provide to get this rolling would be > greatly appreciated. > > > Thanks, > > Brian Borden > Verizon Directories Corp. > Verizon Place > DFW Airport, TX 75261 > (972) 453-7628 > > |
From: <ma...@li...> - 2001-05-26 08:23:56
|
Hi, >#pragma pack() is not valid on the sgi. What sort of alignment were you >after? pack(0)? Yep, that is! The idea is, lcms.h does need byte-alignment. This don't mean your whole application does need to be byte-aligned, only lcms.h. On end of lcms.h pack() is supposed to restore original alignment.Then, each compiler implements this sort of thing differently. Some does use pack(0), some pack() and others are using arcane #pragma. If you can obtain somehow byte alignment on lcms.h, all will work fine ... hopefully! :) Regards, Martí. |
From: Robert M. <eg...@ce...> - 2001-05-25 19:15:14
|
USE_C 1 USE_TRILINEAR 1 NON_WINDOWS 1 USE_INT64 1 #pragma pack() is not valid on the sgi. What sort of alignment were you after? pack(0)? Actually after more testing last night. -O0 works -O1 works -O2 does not work -O3 does not work -O1 and -O2 should do the same thing with math optimizations. I'll keep digging. Mart=ED Maria wrote: >=20 > Hi, >=20 > Do you have NON_WINDOWS defined? > Assuming that, could you detail the compiler & settings > you are using? I'm specially interested on alignment > & optimization degree. >=20 > I'm unable to check directly USE_BIG_ENDIAN, but > seemed to work on other users. >=20 > Regards, > Mart=ED. >=20 > ----- Original Message ----- > From: "Robert Minsk" <eg...@ce...> > To: <lcm...@li...> > Sent: Thursday, May 24, 2001 10:30 PM > Subject: [Lcms-user] Test fail on sgi with 1.07m >=20 > > On the Sgi I have USE_BIG_ENDIAN defined. > > > > When I run testcms with USE_C > > > > little cms testbed. ver 1.2 build May 24 2001 13:28:13 > > > > Testing fixed point: 2.8848960205 =3D 2.8848 > > 0.437499269828536 =3D 0.4375 > > Testing fixed scaling...Ok! > > Testing linear interpolation ...Ok! 1600000 tics > > Testing descending tables (linear interpolation) ...Ok! > > Emulating sRGB from primaries & White point: > > > > sRGB final matrix is: > > [ 0.436066 0.385147 0.143066 ] > > [ 0.222488 0.716873 0.060608 ] > > [ 0.013916 0.097076 0.714096 ] > > > > lcms calculated matrix is: > > [ 0.436066 0.385114 0.143105 ] > > [ 0.222493 0.716923 0.060627 ] > > [ 0.0139346 0.0970567 0.714108 ] > > > > Testing CIELab conversion: > > 1=3DIEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.ie= c.ch > > 2=3DsRGB ColorSpace Conversion Profile > > 00:Coarse error: In=3D(0,202,f9f9) Out1=3D(0,-128,-16.6055) > > Out2=3D(0,-128,-34.3438) > > > > When I run testcms with USE_FLOAT > > little cms testbed. ver 1.2 build May 24 2001 13:29:37 > > > > Testing fixed point: 2.8848960205 =3D 2.8848 > > 0.437499269828536 =3D 0.4375 > > Testing fixed scaling...Ok! > > Testing linear interpolation ...Ok! 1690000 tics > > Testing descending tables (linear interpolation) ...Ok! > > Testing 3D interpolation...Ok! > > Emulating sRGB from primaries & White point: > > > > sRGB final matrix is: > > [ 0.436066 0.385147 0.143066 ] > > [ 0.222488 0.716873 0.060608 ] > > [ 0.013916 0.097076 0.714096 ] > > > > lcms calculated matrix is: > > [ 0.436066 0.385114 0.143105 ] > > [ 0.222493 0.716923 0.060627 ] > > [ 0.0139346 0.0970567 0.714108 ] > > > > Testing CIELab conversion: > > 1=3DIEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.ie= c.ch > > 2=3DsRGB ColorSpace Conversion Profile > > Ok!. Out of encodeable representation=3D0 > > > > Error Induced by the CMM due to roundoff (dE) > > Testing little cms Relative L*a*b* identity profile: > > 00:Coarse error! : In=3D(0,0,c0c) Out=3D(c0b,0,0) > > -- > > Robert Minsk Centropolis Effects, LLC. > > eg...@ce... 10950 Washington Blvd., Studi= o B > > Culver City, Ca. 90232-4025 > > > > _______________________________________________ > > Lcms-user mailing list > > Lcm...@li... > > http://lists.sourceforge.net/lists/listinfo/lcms-user > > > > >=20 > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > http://lists.sourceforge.net/lists/listinfo/lcms-user -- Robert Minsk Centropolis Effects, LLC. eg...@ce... 10950 Washington Blvd., Studio B Culver City, Ca. 90232-4025 |
From: <ma...@li...> - 2001-05-25 08:53:41
|
Hi, Do you have NON_WINDOWS defined? Assuming that, could you detail the compiler & settings you are using? I'm specially interested on alignment & optimization degree. I'm unable to check directly USE_BIG_ENDIAN, but seemed to work on other users. Regards, Martí. ----- Original Message ----- From: "Robert Minsk" <eg...@ce...> To: <lcm...@li...> Sent: Thursday, May 24, 2001 10:30 PM Subject: [Lcms-user] Test fail on sgi with 1.07m > On the Sgi I have USE_BIG_ENDIAN defined. > > When I run testcms with USE_C > > little cms testbed. ver 1.2 build May 24 2001 13:28:13 > > Testing fixed point: 2.8848960205 = 2.8848 > 0.437499269828536 = 0.4375 > Testing fixed scaling...Ok! > Testing linear interpolation ...Ok! 1600000 tics > Testing descending tables (linear interpolation) ...Ok! > Emulating sRGB from primaries & White point: > > sRGB final matrix is: > [ 0.436066 0.385147 0.143066 ] > [ 0.222488 0.716873 0.060608 ] > [ 0.013916 0.097076 0.714096 ] > > lcms calculated matrix is: > [ 0.436066 0.385114 0.143105 ] > [ 0.222493 0.716923 0.060627 ] > [ 0.0139346 0.0970567 0.714108 ] > > Testing CIELab conversion: > 1=IEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.iec.ch > 2=sRGB ColorSpace Conversion Profile > 00:Coarse error: In=(0,202,f9f9) Out1=(0,-128,-16.6055) > Out2=(0,-128,-34.3438) > > When I run testcms with USE_FLOAT > little cms testbed. ver 1.2 build May 24 2001 13:29:37 > > Testing fixed point: 2.8848960205 = 2.8848 > 0.437499269828536 = 0.4375 > Testing fixed scaling...Ok! > Testing linear interpolation ...Ok! 1690000 tics > Testing descending tables (linear interpolation) ...Ok! > Testing 3D interpolation...Ok! > Emulating sRGB from primaries & White point: > > sRGB final matrix is: > [ 0.436066 0.385147 0.143066 ] > [ 0.222488 0.716873 0.060608 ] > [ 0.013916 0.097076 0.714096 ] > > lcms calculated matrix is: > [ 0.436066 0.385114 0.143105 ] > [ 0.222493 0.716923 0.060627 ] > [ 0.0139346 0.0970567 0.714108 ] > > Testing CIELab conversion: > 1=IEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.iec.ch > 2=sRGB ColorSpace Conversion Profile > Ok!. Out of encodeable representation=0 > > Error Induced by the CMM due to roundoff (dE) > Testing little cms Relative L*a*b* identity profile: > 00:Coarse error! : In=(0,0,c0c) Out=(c0b,0,0) > -- > Robert Minsk Centropolis Effects, LLC. > eg...@ce... 10950 Washington Blvd., Studio B > Culver City, Ca. 90232-4025 > > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > http://lists.sourceforge.net/lists/listinfo/lcms-user > > |
From: Robert M. <eg...@ce...> - 2001-05-24 20:33:58
|
On the Sgi I have USE_BIG_ENDIAN defined. When I run testcms with USE_C little cms testbed. ver 1.2 build May 24 2001 13:28:13 Testing fixed point: 2.8848960205 = 2.8848 0.437499269828536 = 0.4375 Testing fixed scaling...Ok! Testing linear interpolation ...Ok! 1600000 tics Testing descending tables (linear interpolation) ...Ok! Emulating sRGB from primaries & White point: sRGB final matrix is: [ 0.436066 0.385147 0.143066 ] [ 0.222488 0.716873 0.060608 ] [ 0.013916 0.097076 0.714096 ] lcms calculated matrix is: [ 0.436066 0.385114 0.143105 ] [ 0.222493 0.716923 0.060627 ] [ 0.0139346 0.0970567 0.714108 ] Testing CIELab conversion: 1=IEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.iec.ch 2=sRGB ColorSpace Conversion Profile 00:Coarse error: In=(0,202,f9f9) Out1=(0,-128,-16.6055) Out2=(0,-128,-34.3438) When I run testcms with USE_FLOAT little cms testbed. ver 1.2 build May 24 2001 13:29:37 Testing fixed point: 2.8848960205 = 2.8848 0.437499269828536 = 0.4375 Testing fixed scaling...Ok! Testing linear interpolation ...Ok! 1690000 tics Testing descending tables (linear interpolation) ...Ok! Testing 3D interpolation...Ok! Emulating sRGB from primaries & White point: sRGB final matrix is: [ 0.436066 0.385147 0.143066 ] [ 0.222488 0.716873 0.060608 ] [ 0.013916 0.097076 0.714096 ] lcms calculated matrix is: [ 0.436066 0.385114 0.143105 ] [ 0.222493 0.716923 0.060627 ] [ 0.0139346 0.0970567 0.714108 ] Testing CIELab conversion: 1=IEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.iec.ch 2=sRGB ColorSpace Conversion Profile Ok!. Out of encodeable representation=0 Error Induced by the CMM due to roundoff (dE) Testing little cms Relative L*a*b* identity profile: 00:Coarse error! : In=(0,0,c0c) Out=(c0b,0,0) -- Robert Minsk Centropolis Effects, LLC. eg...@ce... 10950 Washington Blvd., Studio B Culver City, Ca. 90232-4025 |
From: <ma...@li...> - 2001-05-24 08:32:27
|
Hi, > Great program. Have you ever considered putting up a message board. Thank you. Not really a message board, but a mailing list already exists. http://lists.sourceforge.net/lists/listinfo/lcms-user Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: "Eads, Jesse" <JE...@co...> To: <in...@li...> Sent: Wednesday, May 23, 2001 9:58 PM Subject: Question > Great program. Have you ever considered putting up a message board. > > Regards, > > Jesse > > |
From: <ma...@li...> - 2001-05-19 09:14:43
|
Hi, > I think what I would like to do is build some type of profile that=20 > describes the BBitmap class. Mabey just assume the Gamma and white=20 > point values (educated gess :P) Yep. Then, virtual profile is just what you need. You still need = primaries,=20 so Rec709 would be fine as default. > My main goal is monitor profile (which I assume can be made similar to = > the Create_sRGB_Profile() but use a User Set Gamma and whitePoint) Yes, you can also use virtual profile for this. And with Rev 1.07 you = can also save this into an .icm file. Using virtual profiles on both sides of = transform does speed up a lot the transform times.=20 For saving a virtual profile into a .icm file, just use=20 _cmsSaveProfile(cmsHPROFILE hProfile, const char* FileName) You can also use that ones for adding information before saving _cmsAddTextTag(hProfile, icSigProfileDescriptionTag, = Description); _cmsAddTextTag(hProfile, icSigCopyrightTag, Copyright); _cmsAddTextTag(hProfile, icSigDeviceMfgDescTag, Manufacturer); _cmsAddTextTag(hProfile, icSigDeviceModelDescTag, Model); The hProfile is the handle you have created with cmsCreateRGBProfile() Those funtions are new in 1.07, and experimental. Hence the "_" at = begining. But are working fine to me right now.=20 > How do I tell the profile about the bit ordering. You have predefined descriptors for specify the type. For example TYPE_RGB_8 : This is RGB of 8 bits per component TYPE_RGBA_8: This is RGB of 8 bits per component, plus alpha Note that the transform can be used to convert between formats, i.e., I = can give TYPE_BGR_16 (48 bits, swapped B, R) on input and TYPE_RGB_8 on output, and the CMM will translate between formats as well. There are a LOT of = formats, see the tutorial for a list of supported ones. About the file endianess, don't worry, lcms does handle it = transparently. All=20 icc profiles are stored in big endian notation. Here your swab() is = important ;) > Oh, and no problem posting to the list .. .I was thinking about = joining=20 > it. Still looking at differant CMSs though someone droped me a link = to=20 > Argyll today .. gess I should at least check it out :) Yep, the nice thing is you can use icc profiles generated by Argyll with lcms, Graeme's code is more on profile generation side, while lcms is=20 more on transformation speed. Regards, Mart=ED. ----- Original Message -----=20 From: "YNOP" <jt...@en...> To: <ma...@li...> Sent: Friday, May 18, 2001 9:13 PM Subject: Re: lcms=20 > I think what I would like to do is build some type of profile that=20 > describes the BBitmap class. Mabey just assume the Gamma and white=20 > point values (educated gess :P) >=20 > My main goal is monitor profile (which I assume can be made similar to = > the Create_sRGB_Profile() but use a User Set Gamma and whitePoint) >=20 > /* linear color space (little endian is the default) */=20 > B_RGB32 =3D 0x0008, /* B[7:0] G[7:0] =20 > R[7:0] -[7:0] */=20 > B_RGBA32 =3D 0x2008, /* B[7:0] G[7:0] =20 > R[7:0] A[7:0] =20 >=20 > Here is the dev for the color space that BBitmap class uses. How = would=20 > i go about building a Profile now that I have this data. How do I = tell=20 > the profile about the bit ordering. >=20 > Oh, and no problem posting to the list .. .I was thinking about = joining=20 > it. Still looking at differant CMSs though someone droped me a link = to=20 > Argyll today .. gess I should at least check it out :) >=20 > Thanks again for all your help and takeing time out to answer = questions >=20 >=20 > YNOP=20 > yn...@ac... > http://www.?.com > ---------------------------------------------------------- > Too much, too easy, it's lethal. Some, not too easy, the parasite is=20 > tolerated. > - Jean-Louis Gassee, Be, Inc.=20 >=20 >=20 > ----------------------------------- > This message was sent with the demo version of Postmaster, a BeOS mail = client. > For more information, please visit http://kennyc.com/postmaster >=20 >=20 >=20 |
From: <ma...@li...> - 2001-05-18 08:24:22
|
Hi, Thank you. I will add your changes to main sources > I no doubt have many other questions about usege. My main one is how to > go from a internal format (BBitmap class) to pass though the CMS. > Seeing as Translate takes in two profiles. Do I need to make a virtual > profile for the bitmap class? Questions are welcome ;). I'm taking the freedom to CC: this into the mailing list, since these are frequent questions. Hope this is Ok to you. The problem here is in what colorspace are supposed to be this internal format. If you know the primaries, white point and gamma curve of these bitmaps, then a virtual profile is quite adequate. But most times, you know nothing but the RGB data. In Windows, there is a "standard" default colorspace, assumed by most hardware manufacturers (sRGB) I'm not shure this would apply to Be as well. You can use the included "sRGB Color space profile.icm" or this function, that builds sRGB without any file: ---------------------------------------------------------------------------- --- >8 cut cmsHPROFILE Create_sRGB_Profile(void) { cmsCIExyY D65; cmsCIExyYTRIPLE Rec709Primaries = { {0.6400, 0.3300, 1.0}, {0.3000, 0.6000, 1.0}, {0.1500, 0.0600, 1.0} }; LPGAMMATABLE Gamma24[3]; cmsHPROFILE hsRGB; cmsWhitePointFromTemp(6504, &D65); Gamma24[0] = Gamma24[1] = Gamma24[2] = cmsBuildGamma(256, 2.4); hsRGB = cmsCreateRGBProfile(&D65, &Rec709Primaries, Gamma24); cmsFreeGamma(Gamma24[0]); return hsRGB; } ---------------------------------------------------------------------------- --- >8 cut Another valid approach, is to consider that these bitmaps are not characterized ant then, color management doesn't make sense on them. You can still use the formatting features of lcms by using cmsFLAGS_NULLTRANFORM. This inhibits any color management. >Hey, I was wondering if lcms is thread safe and all. Thought I would >make sure befor I go to far .. Yes. lcms is thread safe on USE_C and USE_FLOAT implementations. The USE_ASSEMBLY implementation is not, but this latter is only available on windows. And I'm thinking about to strip that one, since the gain of speed is not so big on modern machines. Regards, Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: "YNOP" <jt...@en...> To: <ma...@li...> Sent: Thursday, May 17, 2001 9:48 PM Subject: Re: lcms > >About your #ifdef... I would like to incorporate in main sources... > >Could I ask the lines you have added? Seems very interesting. > > the only changes I made to the src are this: > > File cmsio1.c I added the below code. There may be a better place to up > this. There probalby is also a better way to test is the swab function > exists .. but this works .. so no big deal. > > #ifdef __BEOS__ > /*static char *sccsid = "from: @(#)swab.c 5.10 (Berkeley) > 3/6/91";*/ > void > swab(from, to, len) > const void *from; > void *to; > size_t len; > > register unsigned long temp; > register int n; > register char *fp, *tp; > > n = (len >> 1) + 1; > fp = (char *)from; > tp = (char *)to; > #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp > /* round to multiple of 8 */ > while ((--n) & 07) > STEP; > n >>= 3; > while (--n >= 0) > STEP; STEP; STEP; STEP; > STEP; STEP; STEP; STEP; > } > } > #endif > > > > the only other changes I made were in the testbed dir, I got rid of the > Make file because it didn't work, missing Include of lcms.h or something > .. > > Also your install.gcc script does not work on be due to the lack of > /usr/ directory and such. > > I no doubt have many other questions about usege. My main one is how to > go from a internal format (BBitmap class) to pass though the CMS. > Seeing as Translate takes in two profiles. Do I need to make a virtual > profile for the bitmap class? > > Well I will mess with it some more ... thanks for your help ... > > > > YNOP > yn...@ac... > http://www.?.com > ---------------------------------------------------------- > Too much, too easy, it's lethal. Some, not too easy, the parasite is > tolerated. > - Jean-Louis Gassee, Be, Inc. > > > ----------------------------------- > This message was sent with the demo version of Postmaster, a BeOS mail client. > For more information, please visit http://kennyc.com/postmaster > > > |
From: <ma...@li...> - 2001-05-17 19:13:41
|
Hi, Great! Never mind lcms could be ported to BeOS too :) About your #ifdef... I would like to incorporate in main sources... Could I ask the lines you have added? Seems very interesting. Thankx Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: "YNOP" <jt...@en...> To: <in...@li...> Sent: Thursday, May 17, 2001 8:10 PM Subject: lcms > After looking around at several cm systems most people pointed here. > I am designing a Pro Image Editing package for BeOS and was in need of a > good cms. > > I have downlaaded and compile the lib and testbed, (both seem to work > fine) > > however the swab() function seem not to exist on Be So I just #ifdefed > it into cmsio1.c and all seems to be good again. > > thanks for all the work you guys have done, looks good. > > testbed output > ---------- > little cms testbed. ver 1.2 build May 17 2001 12:39:00 > > Testing fixed point: 2.8848960205 = 2.8848 > 0.437499269828536 = 0.4375 > Testing fixed scaling...Ok! > Testing linear interpolation ...Ok! 2228 tics > Testing descending tables (linear interpolation) ...Ok! > Emulating sRGB from primaries & White point: > > sRGB final matrix is: > [ 0.436066 0.385147 0.143066 ] > [ 0.222488 0.716873 0.060608 ] > [ 0.013916 0.097076 0.714096 ] > > lcms calculated matrix is: > [ 0.436066 0.385114 0.143105 ] > [ 0.222493 0.716923 0.060627 ] > [ 0.0139346 0.0970567 0.714108 ] > > Testing CIELab conversion: > 1=IEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.iec.ch > 2=sRGB ColorSpace Conversion Profile > Ok!. Out of encodeable representation=0 > > Error Induced by the CMM due to roundoff (dE) > Testing little cms Relative L*a*b* identity profile: > dE : mean=0.00386782, SD=0.531602, max=0.00676582 : 1197 tics, 1.197 > sec. > Testing preview > dE : mean=0.00386782, SD=0.531602, max=0.00676582 : 1222 tics, 1.222 > sec. > > Success. > > > > > > > YNOP > yn...@ac... > http://www.?.com > ---------------------------------------------------------- > Too much, too easy, it's lethal. Some, not too easy, the parasite is > tolerated. > - Jean-Louis Gassee, Be, Inc. > > > ----------------------------------- > This message was sent with the demo version of Postmaster, a BeOS mail client. > For more information, please visit http://kennyc.com/postmaster > > > |
From: <Pet...@cc...> - 2001-05-16 16:24:39
|
Was a long day for me :) didn't even see the makefile !!! yikes = worked just fine = = thanks, = -pete ______________________________ Reply Separator __________________________= _______ Subject: Re: [Lcms-user] tests fail Author: =3D?iso-8859-1?Q?Mart=3DED_Maria?=3D <ma...@li...> at In= ternet Date: 5/16/2001 10:21 AM Hi, = These errors are reported on linking phase, = seems like math lib (libm) is somehow missing... = The .gcc script is really very dumb, and intended = only as an example on how to compile. Anyway, = AFAIK, there are working ports to Solaris, a = quick seach on keywords "liblcms solaris" could = point you to any of these ports. = Another way could be to try the makefile... = Mart=ED. = = = ----- Original Message ----- From: "Pete Lancashire" <Pet...@cc...> = To: <Lcm...@li...> Sent: Wednesday, May 16, 2001 3:41 AM = Subject: [Lcms-user] tests fail = = > > > running Solaris x86 Version 8 = > > All the latest GNU tools > > gcc version 2.95.3 20010315 (release) = > > First install.gcc does not have any execute permissions set = > > Errors ... > > Building testbed... > + cd testbed > + gcc -g -O2 testcms.c /usr/lib/liblcms.a -o testcms > /var/tmp/ccUYyNBH.o: In function `TestLinearInterpolation': > /usr/local/src/lcms-1.07/testbed/testcms.c:361: undefined referenc= e = to > `floor' > /var/tmp/ccUYyNBH.o: In function `VecDist': > /usr/local/src/lcms-1.07/testbed/testcms.c:572: undefined referenc= e = to > `sqrt' > /var/tmp/ccUYyNBH.o: In function `Std': > /usr/local/src/lcms-1.07/testbed/testcms.c:590: undefined referenc= e = to > `sqrt' > /usr/lib/liblcms.a(cmsio1.o): In function `cmsIsLinear': > /usr/local/src/lcms-1.07/src/cmsio1.c:556: undefined reference to = > `floor' > /usr/lib/liblcms.a(cmsmtrx.o): In function `VEC3scaleAndCut': > /usr/local/src/lcms-1.07/src/cmsmtrx.c:707: undefined reference to= = > `floor' > /usr/local/src/lcms-1.07/src/cmsmtrx.c:708: undefined reference to= = > `floor' > /usr/local/src/lcms-1.07/src/cmsmtrx.c:709: undefined reference to= = > `floor' > /usr/lib/liblcms.a(cmsxform.o): In function `QuantizeVal': > /usr/local/src/lcms-1.07/src/cmsxform.c:720: undefined reference t= o = > `floor' > /usr/lib/liblcms.a(cmsxform.o):/usr/local/src/lcms-1.07/src/cmsxform.c = > :1067: more undefined references to `floor' follow > /usr/lib/liblcms.a(cmsgamma.o): In function `FGamma': > /usr/local/src/lcms-1.07/src/cmsgamma.c:61: undefined reference to= = > `pow' > /usr/lib/liblcms.a(cmsgamma.o): In function `cmsBuildGamma': > /usr/local/src/lcms-1.07/src/cmsgamma.c:145: undefined reference t= o = > `floor' > collect2: ld returned 1 exit status = > > _______________________________________________ = > Lcms-user mailing list > Lcm...@li... > http://lists.sourceforge.net/lists/listinfo/lcms-user = > > = = _______________________________________________ = Lcms-user mailing list Lcm...@li... http://lists.sourceforge.net/lists/listinfo/lcms-user |
From: <ma...@li...> - 2001-05-16 08:19:44
|
Hi, These errors are reported on linking phase, seems like math lib (libm) is somehow missing... The .gcc script is really very dumb, and intended only as an example on how to compile. Anyway, AFAIK, there are working ports to Solaris, a quick seach on keywords "liblcms solaris" could point you to any of these ports. Another way could be to try the makefile... Martí. ----- Original Message ----- From: "Pete Lancashire" <Pet...@cc...> To: <Lcm...@li...> Sent: Wednesday, May 16, 2001 3:41 AM Subject: [Lcms-user] tests fail > > > running Solaris x86 Version 8 > > All the latest GNU tools > > gcc version 2.95.3 20010315 (release) > > First install.gcc does not have any execute permissions set > > Errors ... > > Building testbed... > + cd testbed > + gcc -g -O2 testcms.c /usr/lib/liblcms.a -o testcms > /var/tmp/ccUYyNBH.o: In function `TestLinearInterpolation': > /usr/local/src/lcms-1.07/testbed/testcms.c:361: undefined reference to > `floor' > /var/tmp/ccUYyNBH.o: In function `VecDist': > /usr/local/src/lcms-1.07/testbed/testcms.c:572: undefined reference to > `sqrt' > /var/tmp/ccUYyNBH.o: In function `Std': > /usr/local/src/lcms-1.07/testbed/testcms.c:590: undefined reference to > `sqrt' > /usr/lib/liblcms.a(cmsio1.o): In function `cmsIsLinear': > /usr/local/src/lcms-1.07/src/cmsio1.c:556: undefined reference to > `floor' > /usr/lib/liblcms.a(cmsmtrx.o): In function `VEC3scaleAndCut': > /usr/local/src/lcms-1.07/src/cmsmtrx.c:707: undefined reference to > `floor' > /usr/local/src/lcms-1.07/src/cmsmtrx.c:708: undefined reference to > `floor' > /usr/local/src/lcms-1.07/src/cmsmtrx.c:709: undefined reference to > `floor' > /usr/lib/liblcms.a(cmsxform.o): In function `QuantizeVal': > /usr/local/src/lcms-1.07/src/cmsxform.c:720: undefined reference to > `floor' > /usr/lib/liblcms.a(cmsxform.o):/usr/local/src/lcms-1.07/src/cmsxform.c > :1067: more undefined references to `floor' follow > /usr/lib/liblcms.a(cmsgamma.o): In function `FGamma': > /usr/local/src/lcms-1.07/src/cmsgamma.c:61: undefined reference to > `pow' > /usr/lib/liblcms.a(cmsgamma.o): In function `cmsBuildGamma': > /usr/local/src/lcms-1.07/src/cmsgamma.c:145: undefined reference to > `floor' > collect2: ld returned 1 exit status > > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > http://lists.sourceforge.net/lists/listinfo/lcms-user > > |
From: <Pet...@cc...> - 2001-05-15 23:46:33
|
running Solaris x86 Version 8 All the latest GNU tools gcc version 2.95.3 20010315 (release) First install.gcc does not have any execute permissions set Errors ... Building testbed... + cd testbed + gcc -g -O2 testcms.c /usr/lib/liblcms.a -o testcms /var/tmp/ccUYyNBH.o: In function `TestLinearInterpolation': /usr/local/src/lcms-1.07/testbed/testcms.c:361: undefined reference to `floor' /var/tmp/ccUYyNBH.o: In function `VecDist': /usr/local/src/lcms-1.07/testbed/testcms.c:572: undefined reference to `sqrt' /var/tmp/ccUYyNBH.o: In function `Std': /usr/local/src/lcms-1.07/testbed/testcms.c:590: undefined reference to `sqrt' /usr/lib/liblcms.a(cmsio1.o): In function `cmsIsLinear': /usr/local/src/lcms-1.07/src/cmsio1.c:556: undefined reference to `floor' /usr/lib/liblcms.a(cmsmtrx.o): In function `VEC3scaleAndCut': /usr/local/src/lcms-1.07/src/cmsmtrx.c:707: undefined reference to `floor' /usr/local/src/lcms-1.07/src/cmsmtrx.c:708: undefined reference to `floor' /usr/local/src/lcms-1.07/src/cmsmtrx.c:709: undefined reference to `floor' /usr/lib/liblcms.a(cmsxform.o): In function `QuantizeVal': /usr/local/src/lcms-1.07/src/cmsxform.c:720: undefined reference to `floor' /usr/lib/liblcms.a(cmsxform.o):/usr/local/src/lcms-1.07/src/cmsxform.c :1067: more undefined references to `floor' follow /usr/lib/liblcms.a(cmsgamma.o): In function `FGamma': /usr/local/src/lcms-1.07/src/cmsgamma.c:61: undefined reference to `pow' /usr/lib/liblcms.a(cmsgamma.o): In function `cmsBuildGamma': /usr/local/src/lcms-1.07/src/cmsgamma.c:145: undefined reference to `floor' collect2: ld returned 1 exit status |
From: <ma...@li...> - 2001-05-08 17:35:33
|
Hi, > will there be a version of little cms for the macintosh in the future? I have not tested directly, but some people have managed to compile actual 1.07 version on Mac, and seems it works fine. They used Metrowerks, but I guess it would be easy to use any other compiler.. just edit lcms.h and assure to select NON_WINDOWS and USE_BIG_ENDIAN. Of course Mac does have ColorSync, but if you deal with a cross platform project... ;) Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: "Kai Funck" <fu...@fu...> To: <ma...@li...> Sent: Tuesday, May 08, 2001 6:19 PM Subject: cms for Mac > Hallo, > > will there be a version of little cms for the macintosh in the future? > Wishes, Kai > -- > > ------------------------- > Funck Kommunikationsdesign > Kai Funck (Dipl.-Des.) > Geisselstr. 71 - 73 > 50823 Köln > Tel. (0221) 5 62 58 -38 > ISDN Leo -39 > Fax. -40 > mobil 0170 - 2 33 63 72 > www.funck.de > fu...@fu... > > |
From: <ma...@li...> - 2001-05-03 08:51:00
|
Hi, > Is there a way to determine a list of profiles available? so that I can then > determine which of those would be most appropriate? Well, this is hardly OS-dependent. Since I guess you are using Windows, I must tell Widows is a mess when doing so. Profiles are in a directory, but this directory does vary on depending on wich version of Windows you are using. Win95 & 98 -> windows\system\color W2K -> winnt\system32\spool\drivers\color ME -> windows\system32\spool\drivers\color NT 4 -> There is no color dir, since NT4 doesn't support profiles There is a API function called "GetColorDirectory" that returns such location, but this function is not available on NT4 & Win95. Of course you can ignore the whole thing and use your own directory for storing your profiles. I am using this latter. About how to select appropiate profiles, there is a complex example of User Interface (the one the demo is using) in file lcmui.c, in src\ui dir of distribution package. I didn't document this since is windows specific, but I guess it can be handful to you. Regards, Martí Maria The little cms project http://www.littlecms.com ma...@li... |
From: <ma...@li...> - 2001-05-03 08:36:20
|
Hi, > Marti, > One more question. I'm trying to figure out the proper coding for > TYPE_XYZ_16. I'm taking Kodak Q60 data and trying to feed the XYZ = values to > LCMS, but I don't seem to have the magnitude quite right. >=20 > For example, on my Q60 color chart, white (Dmin) is XYZ: 77.49, 80.31, = 69.06 >=20 > What is LCMS expecting to see for these XYZ values? For example, the = Y value > is 80.31. I know that LCMS expects to see a word (16 bit number), but = what is > the value for 80.31? I've tried these equations and neither seem to = give the > right result: lcms does expect values between 0 and 1.99996. The function for convert = from floating point to fixed point is: WORD XYZ2Fix(double d) { return (WORD) ((Fixed32) (DOUBLE_TO_FIXED(d) >> 1)); } In Delphi this is something like (round(x * 65536.0)) shr 1 XYZ does operate on 1.15 fixed point, so, doing * 65536 does convert to=20 15.16 and the shift right does convert to 1.15. About the 80.31, well, what happens is that IT8 does use "absolute" = values.=20 Just divide by 100 before passing to this function. Taking your data, 80.31 -> Divide by 10 -> 0.8031 -> Apply XYZ2Fix -> 26316 Besides, If you plan to use XYZ, be shure to include = cmsFLAGS_NOTPRECALC in the "flags" parameter of cmsCreateTransform(). This is needed since = trilinear interpolation could give slightly wrong numbers... XYZ does operate on = gamma 1.0, and the gamut is so big that interpolation would need twice as points as = it is currently=20 using. Regards, Mart=ED Maria The little cms project http://www.littlecms.com ma...@li... |
From: <ma...@li...> - 2001-05-02 09:15:15
|
Hi, Well, if the TIFF has embedded profile (has TIFFTAG_ICCPROFILE), then this is the profile. If not, there is no way to know the exact profile, but then you can limit the valid profiles for the TIFF colorspace, RGB, CMYK, CIELab... lcms has a function to get colorspace of icc profile, cmsGetColorSpace(). The demo does show a list of valid profiles based on TIFF colorspace. Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: "Kevin" <ke...@pl...> To: "Martí Maria" <ma...@li...> Sent: Wednesday, May 02, 2001 3:39 AM Subject: RE: windows demo > How does the sample determine appropriate icm profiles to use for a > particular image? > |
From: <ma...@li...> - 2001-04-30 08:28:24
|
Testing, 1, 2, 3 |
From: <ma...@li...> - 2001-04-28 15:14:35
|
Welcome to the little cms mailing list. I wish to thank these guys of SourceForge for the nice support they are given to open source projects. I look forward this mailing list will be of use to all we. Feel free to post any questions/suggestions and even criticisms. Martí Maria The little cms project http://www.littlecms.com ma...@li... |