Reply to comment

More details:

In LibRaw::unpack() call, color.maximum is set according to metadata (for DNG and other formats with maximum value in metadata) and/or to camera default if no metadata present.
Also, color.channel_maximum[] is set by *real* image data (real maximum in given channel).

The LibRaw::subtract_black() call recalculates channel_maximum[] for entire image and adjusts color.maximum by common black level.

The subtract_black() is called on postprocessing stage, or may be called by LibRaw user.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Images can be added to this post.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.