List Info

Thread: Transforming colors with A2B1 table




Transforming colors with A2B1 table
user name
2007-03-04 16:30:16
Hi,
I'm witting a code to obtain the gamut from an output RGB
profile. I'm 
planning to use the A2B1 table (dev->pcs), as the gamut
tag often is not 
a reliable source of gamut information. Looking at the
littlecms API, I 
have two alternatives to scan the A2B1 table:
   1) create a transformation
   2) "navigate" in the profile LUTs.

To create a transformation using the RGB output profile as
INPUT, in 
order to use the A2B1 table. Is it possible ?

If not, how can I scan the LUT ? It's only create a LUT from
the A2B1 
tables using cmsReadICCLut ? I checked the profile and the
only tags 
available are the A2Bx and B2Ax (x = 0, 1, 2) tables and
there's no 1d LUTs.

Best regards,
Lorenzo



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: Transforming colors with A2B1 table
user name
2007-03-05 05:22:04
Lorenzo,

there are various aproaches to scan along the gamut border.

First of all the AToB1Tag and BToA1Tag's should contain
relyable 
information about the real shape of a device, as they shall
contain the 
closest match to the colour measurements by definition.
Other tables are 
allowed to leave precision and work more artistic. Of course
the 
measurement itself can be more precise. Some profiles
include it.

As the CMM is responsible for handling the gamut, it can be
used itself to 
show it. lcms has the cmsFLAGS_NOTPRECALC option for highest
precision. 
Otherwise you have to do the low level stuff yourself like
handling 
various CLUT types or matrix profiles.

For accessing the curves, matrices and 3D luts with lcms you
may look at 
the _lcms_LUT_struc in lcms.h . All what remains is to count
channels 
and positions.


1. approach (osX ColorSync utility, fallback in ICC Examin)
create a Lab boundary net
collabse to the device colours (BToA1Tag)
convert back to Lab by the AToB1Tag ... done
2. approach (argyll - hopefully correct)
scan the extreme values (RGB/CMYK...) and walk to white and
black point
create a net from the obtained values
3. approach (?)
search for a good position to start
send beams into all directions
scan for valid conversions and holes
trace holes and borders down to a acceptable resolution
render the point cloud to a mesh

1. is the most quick but is not as precise
2. needs somewhat longer
3. not tested myself


kind regards
Kai-Uwe Behrmann
--
development for color management 
www.behrmann.name + www.oyranos.org + www.cinepaint.org


Am 04.03.07, 19:30 -0300 schrieb Lorenzo Ridolfi:

> Hi,
> I'm witting a code to obtain the gamut from an output
RGB profile. I'm 
> planning to use the A2B1 table (dev->pcs), as the
gamut tag often is not 
> a reliable source of gamut information. Looking at the
littlecms API, I 
> have two alternatives to scan the A2B1 table:
>    1) create a transformation
>    2) "navigate" in the profile LUTs.
> 
> To create a transformation using the RGB output profile
as INPUT, in 
> order to use the A2B1 table. Is it possible ?
> 
> If not, how can I scan the LUT ? It's only create a LUT
from the A2B1 
> tables using cmsReadICCLut ? I checked the profile and
the only tags 
> available are the A2Bx and B2Ax (x = 0, 1, 2) tables
and there's no 1d LUTs.
> 
> Best regards,
> Lorenzo
> 
> 

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: Transforming colors with A2B1 table
user name
2007-03-05 05:15:06
Kai-Uwe Behrmann wrote:
> As the CMM is responsible for handling the gamut, it
can be used itself to 
> show it. lcms has the cmsFLAGS_NOTPRECALC option for
highest precision. 
> Otherwise you have to do the low level stuff yourself
like handling 
> various CLUT types or matrix profiles.
>
> For accessing the curves, matrices and 3D luts with
lcms you may look at 
> the _lcms_LUT_struc in lcms.h . All what remains is to
count channels 
> and positions.
>   
Is it possible to open an output profile as input in a
transformation 
using littlecms ? As I'm plan to scan the B2A1 table, the
output profile 
will be the first one in my workflow and I'll use the
internal Lab 
profile as the second one..
>
> 1. approach (osX ColorSync utility, fallback in ICC
Examin)
> create a Lab boundary net
> collabse to the device colours (BToA1Tag)
> convert back to Lab by the AToB1Tag ... done
> 2. approach (argyll - hopefully correct)
> scan the extreme values (RGB/CMYK...) and walk to white
and black point
> create a net from the obtained values
>   

This is the approach I'm planning to use. That's why I
choose the B2A1, 
the dev->pcs colorimetric table, to scan the extreme RGB
values and get 
the related Lab values.
.
> 3. approach (?)
> search for a good position to start
> send beams into all directions
> scan for valid conversions and holes
> trace holes and borders down to a acceptable
resolution
> render the point cloud to a mesh
>
> 1. is the most quick but is not as precise
> 2. needs somewhat longer
> 3. not tested myself
>   


Thank you,
Lorenzo



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: Transforming colors with A2B1 table
user name
2007-03-05 06:35:51
Am 05.03.07, 08:15 -0300 schrieb Lorenzo Ridolfi:

> Is it possible to open an output profile as input in a
transformation 
> using littlecms ? As I'm plan to scan the B2A1 table,
the output profile 
> will be the first one in my workflow and I'll use the
internal Lab 
> profile as the second one..

Yes, of course. Make shure each link fits the other, when it
connects to 
form a chain. The options to select the correct tables are
the rendering 
intent (relative col. / 1 in your case) and the colour types
for in- and 
output (TYPE_LAB_16 TYPE_CMYK_16 ...). PCS fits PCS and a
colour space 
should usualy fit to the same colourspace to go once
further. 
... and of course, the precision decelerates with more
links.


Sometimes a profile comes with just one direction in its
tables. Then 
possibly you can't go back. I saw some scanner profiles like
this.

kind regards
Kai-Uwe Behrmann
--
development for color management 
www.behrmann.name + www.oyranos.org + www.cinepaint.org


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: Transforming colors with A2B1 table
country flaguser name
Germany
2007-03-05 12:03:47
-------- Original-Nachricht --------
Datum: Mon, 5 Mar 2007 13:35:51 +0100 (CET)
Von: Kai-Uwe Behrmann <ku.bgmx.de>
An: Lorenzo Ridolfi <lorenzomail.com>
CC: Lcms Liste <lcms-userlists.sourceforge.net>
Betreff: Re: [Lcms-user] Transforming colors with A2B1
table

> Sometimes a profile comes with just one direction in
its tables. Then 
> possibly you can't go back. I saw some scanner profiles
like this.

Input profiles generally support only the device -> PCS
(A2B) direction.

Regards,
Gerhard

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen:
www.gmx.net/de/go/mailfooter/promail-out

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: Transforming colors with A2B1 table
user name
2007-03-05 15:56:19
Am 05.03.07, 19:03 +0100 schrieb "Gerhard
Fürnkranz":

> Von: Kai-Uwe Behrmann <ku.bgmx.de>
> 
> > Sometimes a profile comes with just one direction
in its tables. Then 
> > possibly you can't go back. I saw some scanner
profiles like this.
> 
> Input profiles generally support only the device ->
PCS (A2B) direction.
 
Good, they must contain A2B0. Nethertheless, all other
tables are allowed. 


regards
Kai-Uwe Behrmann
--
development for color management 
www.behrmann.name + www.oyranos.org + www.cinepaint.org
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lcms-user mailing list
Lcms-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )