C# Class StandardizedDiffuseAlbedoMaps.CameraCalibration

Show file Open project: Patapom/GodComplex Class Usage Examples

Public Properties

Property Type Description
m_CameraShotInfos CameraShotInfo
m_ReferenceImageHeight int
m_ReferenceImageName string
m_ReferenceImageWidth int
m_Reflectance02 Probe
m_Reflectance10 Probe
m_Reflectance20 Probe
m_Reflectance50 Probe
m_Reflectance75 Probe
m_Reflectance99 Probe
m_Reflectances Probe[]
m_Thumbnail ].byte[

Public Methods

Method Description
Calibrate ( float _Luminance ) : float

Calibrates a raw luminance value

Typically, you start from a RAW XYZ value that you convert to xyY, pass the Y to this method and replace it into your orignal xyY, convert back to XYZ and voilĂ !

CameraCalibration ( ) : System
CreateThumbnail ( ImageUtility _Image ) : void

Creates an embeddable thumbnail of the reference image

Load ( System _FileName ) : void

Loads the calibration data from an XML file

Save ( System _FileName ) : void

Saves the calibration data to an XML file

UpdateAllLuminances ( ) : void

Fills unavailable probes' measured luminances by interpolating from available probes' values and computes the "normalized" luminances that are rescaled between 2% (min reflectance probe) and 99% (max reflectance probe)

Method Details

Calibrate() public method

Calibrates a raw luminance value
Typically, you start from a RAW XYZ value that you convert to xyY, pass the Y to this method and replace it into your orignal xyY, convert back to XYZ and voilĂ !
public Calibrate ( float _Luminance ) : float
_Luminance float The uncalibrated luminance value
return float

CameraCalibration() public method

public CameraCalibration ( ) : System
return System

CreateThumbnail() public method

Creates an embeddable thumbnail of the reference image
public CreateThumbnail ( ImageUtility _Image ) : void
_Image ImageUtility
return void

Load() public method

Loads the calibration data from an XML file
public Load ( System _FileName ) : void
_FileName System
return void

Save() public method

Saves the calibration data to an XML file
public Save ( System _FileName ) : void
_FileName System
return void

UpdateAllLuminances() public method

Fills unavailable probes' measured luminances by interpolating from available probes' values and computes the "normalized" luminances that are rescaled between 2% (min reflectance probe) and 99% (max reflectance probe)
public UpdateAllLuminances ( ) : void
return void

Property Details

m_CameraShotInfos public property

public CameraShotInfo m_CameraShotInfos
return CameraShotInfo

m_ReferenceImageHeight public property

public int m_ReferenceImageHeight
return int

m_ReferenceImageName public property

public string m_ReferenceImageName
return string

m_ReferenceImageWidth public property

public int m_ReferenceImageWidth
return int

m_Reflectance02 public property

public Probe m_Reflectance02
return Probe

m_Reflectance10 public property

public Probe m_Reflectance10
return Probe

m_Reflectance20 public property

public Probe m_Reflectance20
return Probe

m_Reflectance50 public property

public Probe m_Reflectance50
return Probe

m_Reflectance75 public property

public Probe m_Reflectance75
return Probe

m_Reflectance99 public property

public Probe m_Reflectance99
return Probe

m_Reflectances public property

public Probe[] m_Reflectances
return Probe[]

m_Thumbnail public property

public byte[,] m_Thumbnail
return ].byte[