STIRA  0.1
Public Member Functions | Public Attributes | List of all members
stira::imagedata::ProfileData Class Reference

class to manage data in a color profile Basically consists of a color LookUp Table (CLUT) between a device space (A) and an independant space (B) This independant space is usually L*a*b*. In a profile, we usually have two tables: in A2B, the values in the A space are on a regular grid and the corresponding B values usually aren't; in the B2A, the values in the B space are on a regular grid and the corresponding A values usually aren't More...

#include <ProfileData.h>

Public Member Functions

 ProfileData ()
 constructor
 
 ~ProfileData ()
 destructor
 
int GetSizeA2B ()
 gets the number of entries in the A2B CLUT
 
lut_entry_t GetA2BEntry (int k)
 gets entry number k from the A2B CLUT More...
 
cmyk_t GetA2BEntryCmyk (int k)
 gets the CMYK component from entry number k from the A2B CLUT More...
 
lab_t GetA2BEntryLab (int k)
 gets the L*a*b* component from entry number k from the A2B CLUT More...
 
void AddA2BEntry (lut_entry_t entry)
 adds entry to the A2B CLUT More...
 
void SetA2BEntryCmyk (int k, cmyk_t cmyk)
 replaces the CMYK values in A2B entry k by the new CMYK values More...
 
void SetA2BEntryLab (int k, lab_t lab)
 replaces the L*a*b* values in A2B entry k by the new L*a*b* values More...
 
int GetSizeB2A ()
 gets the number of entries in the B2A CLUT
 
lut_entry_t GetB2AEntry (int k)
 gets entry number k from the B2A CLUT More...
 
cmyk_t GetB2AEntryCmyk (int k)
 gets the CMYK component from entry number k from the B2A CLUT More...
 
lab_t GetB2AEntryLab (int k)
 gets the L*a*b* component from entry number k from the A2B CLUT More...
 
void AddB2AEntry (lut_entry_t entry)
 adds entry to the B2A CLUT More...
 
void SetB2AEntryCmyk (int k, cmyk_t cmyk)
 replaces the CMYK values in B2A entry k by the new CMYK values More...
 
void SetB2AEntryLab (int k, lab_t lab)
 replaces the L*a*b* values in B2A entry k by the new L*a*b* values More...
 

Public Attributes

std::vector< lut_entry_tA2B
 the A2B conversion LUT
 
std::vector< lut_entry_tB2A
 the B2A conversion LUT
 

Detailed Description

class to manage data in a color profile Basically consists of a color LookUp Table (CLUT) between a device space (A) and an independant space (B) This independant space is usually L*a*b*. In a profile, we usually have two tables: in A2B, the values in the A space are on a regular grid and the corresponding B values usually aren't; in the B2A, the values in the B space are on a regular grid and the corresponding A values usually aren't

Member Function Documentation

void stira::imagedata::ProfileData::AddA2BEntry ( lut_entry_t  entry)

adds entry to the A2B CLUT

Parameters
entrynew entry to append at end of CLUT

References A2B.

Referenced by stira::imagedata::ProfileCorrect::InterpolateSamplesToGrid().

void stira::imagedata::ProfileData::AddB2AEntry ( lut_entry_t  entry)

adds entry to the B2A CLUT

Parameters
entrynew entry to append at end of CLUT

References B2A.

lut_entry_t stira::imagedata::ProfileData::GetA2BEntry ( int  k)

gets entry number k from the A2B CLUT

Parameters
knumber of entry to retrieve

References A2B.

cmyk_t stira::imagedata::ProfileData::GetA2BEntryCmyk ( int  k)

gets the CMYK component from entry number k from the A2B CLUT

Parameters
knumber of entry of which we wish to retrieve the CMYK values

References A2B.

lab_t stira::imagedata::ProfileData::GetA2BEntryLab ( int  k)

gets the L*a*b* component from entry number k from the A2B CLUT

Parameters
knumber of entry of which we wish to retrieve the L*a*b* values

References A2B.

lut_entry_t stira::imagedata::ProfileData::GetB2AEntry ( int  k)

gets entry number k from the B2A CLUT

Parameters
knumber of entry to retrieve

References B2A.

cmyk_t stira::imagedata::ProfileData::GetB2AEntryCmyk ( int  k)

gets the CMYK component from entry number k from the B2A CLUT

Parameters
knumber of entry of which we wish to retrieve the CMYK values

References B2A.

lab_t stira::imagedata::ProfileData::GetB2AEntryLab ( int  k)

gets the L*a*b* component from entry number k from the A2B CLUT

Parameters
knumber of entry of which we wish to retrieve the L*a*b* values

References B2A.

void stira::imagedata::ProfileData::SetA2BEntryCmyk ( int  k,
cmyk_t  cmyk 
)

replaces the CMYK values in A2B entry k by the new CMYK values

Parameters
knumber of entry to modify
cmyknew CMYK values

References A2B.

void stira::imagedata::ProfileData::SetA2BEntryLab ( int  k,
lab_t  lab 
)

replaces the L*a*b* values in A2B entry k by the new L*a*b* values

Parameters
knumber of entry to modify
labnew L*a*b* values

References A2B.

void stira::imagedata::ProfileData::SetB2AEntryCmyk ( int  k,
cmyk_t  cmyk 
)

replaces the CMYK values in B2A entry k by the new CMYK values

Parameters
knumber of entry to modify
cmyknew CMYK values

References B2A.

void stira::imagedata::ProfileData::SetB2AEntryLab ( int  k,
lab_t  lab 
)

replaces the L*a*b* values in B2A entry k by the new L*a*b* values

Parameters
knumber of entry to modify
labnew L*a*b* values

References B2A.


The documentation for this class was generated from the following files: