Converting gammaTRC values from 32 bits tiffs and logluv input images to linear

This commit is contained in:
natureh 510
2013-01-15 19:08:02 +01:00
parent 79a5c501ef
commit 1b41c6a4db
2 changed files with 27 additions and 12 deletions

View File

@@ -166,14 +166,6 @@ int StdImageSource::load (Glib::ustring fname, bool batch) {
embProfile = img->getEmbeddedProfile ();
// For 32 bits floating point images, gamma is forced to linear in embedded ICC profiles
// HOMBRE: Doesn't seem to have any effect
if ( (sFormat&(IIOSF_LOGLUV24|IIOSF_LOGLUV32|IIOSF_FLOAT) ) && embProfile) {
cmsWriteTag(embProfile, cmsSigGreenTRCTag, (void*)Color::linearGammaTRC );
cmsWriteTag(embProfile, cmsSigRedTRCTag, (void*)Color::linearGammaTRC );
cmsWriteTag(embProfile, cmsSigBlueTRCTag, (void*)Color::linearGammaTRC );
}
idata = new ImageData (fname);
if (idata->hasExif()) {
int deg = 0;