Re: Colorsync-users Digest, Vol 5, Issue 292
Re: Colorsync-users Digest, Vol 5, Issue 292
- Subject: Re: Colorsync-users Digest, Vol 5, Issue 292
- From: Eric Chan <email@hidden>
- Date: Wed, 10 Sep 2008 16:39:04 -0700 (PDT)
> I have a small piece of software that computes
> matrices on the fly. Each image file from my
> Phase back has a different matrix associated
> corresponding to a different illuminant.
> How can I get ACR or Lightroom to accept
> these matrices ? If they were profiles I could
> just embed them in the file ...
This entry on the DNG Profile FAQ provides sample code:
http://labs.adobe.com/wiki/index.php/DNG_Profiles_FAQ#SampleCode
More specifically, here is how you could set your own matrix values:
#include "dng_camera_profile.h"
#include "dng_file_stream.h"
#include "dng_image_writer.h"
//
// Read a profile in from disk
//
dng_file_stream inStream ("MyProfile.dcp");
dng_camera_profile profile;
profile.ParseExtended (inStream);
//
// Stick your own matrix values in here ...
//
profile.SetColorMatrix1 (dng_matrix_3by3 (1.0, 0.0, 0.0,
0.0, 1.0, 0.0,
0.0, 0.0, 1.0));
profile.SetColorMatrix2 (dng_matrix_3by3 (1.0, 0.0, 0.0,
0.0, 1.0, 0.0,
0.0, 0.0, 1.0));
//
// Write the modified camera profile out to disk
//
dng_file_stream outStream ("MyModifiedProfile.dcp", true);
tiff_dng_extended_color_profile writer (profile);
writer.Put (outStream);
outStream.Flush ();
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden