dng_color_spec Class Reference

#include <dng_color_spec.h>

List of all members.


Public Member Functions

 dng_color_spec (const dng_negative &negative, const dng_camera_profile *profile)
uint32 Channels () const
void SetWhiteXY (const dng_xy_coord &white)
const dng_xy_coord & WhiteXY () const
const dng_vector & CameraWhite () const
const dng_matrix & CameraToPCS () const
dng_xy_coord NeutralToXY (const dng_vector &neutral)

Detailed Description

Color transform taking into account white point and camera calibration and individual calibration from DNG negative.

Constructor & Destructor Documentation


Member Function Documentation

const dng_matrix & dng_color_spec::CameraToPCS (  )  const

Getter for camera to Profile Connection Space color transform.

Return values:
A transform that takes into account all camera calibration transforms and white point.

References DNG_ASSERT.

const dng_vector & dng_color_spec::CameraWhite (  )  const

Return white point in camera native color coordinates.

Return values:
A dng_vector with components ranging from 0.0 to 1.0 that is normalized such that one component is equal to 1.0 .

References DNG_ASSERT.

uint32 dng_color_spec::Channels (  )  const [inline]

Number of channels used for this color transform. Three for most cameras.

dng_xy_coord dng_color_spec::NeutralToXY ( const dng_vector &  neutral  ) 

Return the XY value to use for SetWhiteXY for a given camera color space coordinate as the white point.

Parameters:
neutral A camera color space value to use for white point. Components range from 0.0 to 1.0 and should be normalized such that the largest value is 1.0 .
Return values:
White point in XY space that makes neutral map to this XY value as closely as possible.

void dng_color_spec::SetWhiteXY ( const dng_xy_coord &  white  ) 

Setter for white point. Value is as XY colorspace coordinate.

Parameters:
white White point to set as an XY value.

const dng_xy_coord & dng_color_spec::WhiteXY (  )  const

Getter for white point. Value is as XY colorspace coordinate.

Return values:
XY value of white point.

References DNG_ASSERT.


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

Copyright © 2006-2009 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google