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

experimental class to interpolate CLUTS in ICC color profiles from measured or estimated values More...

#include <ProfileCorrect.h>

Public Member Functions

 ProfileCorrect (ProfileData *pInputProfile, int nrGridPoints)
 constructor More...
 
 ~ProfileCorrect ()
 constructor
 
ProfileDataInterpolateSamplesToGrid ()
 Interpolates the given list with samples (measured ort modeled) to a regular grid.
 
bool FindInList (vector< lut_entry_t > myTable, cmyk_t cmykEntry, lut_entry_t &foundEntry)
 Finds in a list the entry with given cmyk value. More...
 
compare_neighbor_entry_t FindClosestGridPoint (vector< lut_entry_t > myTable, lab_t gridLabValue)
 Finds in a list the entry with the smallest color difference (delta E 2000) with gridLabValue. More...
 
vector< compare_neighbor_entry_tFindNearestNeighbors (vector< lut_entry_t > dataTable, lut_entry_t myEntry)
 Finds in a list the entry with given cmyk value. More...
 

Detailed Description

experimental class to interpolate CLUTS in ICC color profiles from measured or estimated values

Constructor & Destructor Documentation

stira::imagedata::ProfileCorrect::ProfileCorrect ( ProfileData pInputProfile,
int  nrGridPoints 
)

constructor

Parameters
pInputProfileinput table of CLUT entries to interpolate
nrGridPointsnumber of

Member Function Documentation

compare_neighbor_entry_t stira::imagedata::ProfileCorrect::FindClosestGridPoint ( vector< lut_entry_t myTable,
lab_t  gridLabValue 
)

Finds in a list the entry with the smallest color difference (delta E 2000) with gridLabValue.

Parameters
myTablethe table to search
gridLabValuethe reference L*a*b* color to compare with

References stira::imagedata::lab_t::a, stira::imagedata::lab_t::b, stira::imagedata::compare_neighbor_entry_t::dE, stira::imagedata::TransformColorSpace::DeltaE2000(), stira::imagedata::compare_neighbor_entry_t::entry, and stira::imagedata::lab_t::l.

bool stira::imagedata::ProfileCorrect::FindInList ( vector< lut_entry_t myTable,
cmyk_t  cmykEntry,
lut_entry_t foundEntry 
)

Finds in a list the entry with given cmyk value.

Parameters
myTablethe table to search
cmykEntrythe cmyk value to find in the list
foundEntrythe found entry as output

References stira::imagedata::cmyk_t::c, stira::imagedata::cmyk_t::k, stira::imagedata::cmyk_t::m, and stira::imagedata::cmyk_t::y.

vector< compare_neighbor_entry_t > stira::imagedata::ProfileCorrect::FindNearestNeighbors ( vector< lut_entry_t dataTable,
lut_entry_t  myEntry 
)

Finds in a list the entry with given cmyk value.

Parameters
dataTablethe table to search
myEntrythe entry for which to find its nearest neighbors in the list

References stira::imagedata::lab_t::a, stira::imagedata::lab_t::b, stira::imagedata::compare_neighbor_entry_t::dE, stira::imagedata::TransformColorSpace::DeltaE2000(), stira::imagedata::compare_neighbor_entry_t::entry, stira::imagedata::lab_t::l, and stira::imagedata::lut_entry_t::lab.


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