C# Класс StandardizedDiffuseAlbedoMaps.CameraCalibrationDatabase

This class hosts the camera calibration database
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Calibrate ( ImageUtility _xyY ) : ImageUtility.float3

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à!

CalibrateWithSpatialCorrection ( float _U, float _V, ImageUtility _xyY ) : ImageUtility.float3

Calibrates a raw luminance value with spatial luminance correction

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

GetSpatialLuminanceCorrectionFactor ( float _U, float _V ) : float

Uses the white reference image to retrieve the luminance factor to apply based on the position in the image

IsPreparedFor ( float _ISOSpeed, float _ShutterSpeed, float _Aperture ) : bool

Tells if the database is prepared and can be used for processing colors of an image with the specified shot infos

PrepareCalibrationFor ( ImageUtility _Image ) : void

Prepares the interpolated calibration table to process the pixels in an image shot with the specified shot infos

PrepareCalibrationFor ( float _ISOSpeed, float _ShutterSpeed, float _Aperture ) : void

Prepares the interpolated calibration table to process the pixels in an image shot with the specified shot infos

Приватные методы

Метод Описание
FindStartNode ( float _EV_ISOSpeed, float _EV_ShutterSpeed, float _EV_Aperture ) : GridNode

Finds the first grid node whose ISO, shutter speed and aperture values are immediately inferior to the ones provided

Описание методов

Calibrate() публичный Метод

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 ( ImageUtility _xyY ) : ImageUtility.float3
_xyY ImageUtility The uncalibrated value
Результат ImageUtility.float3

CalibrateWithSpatialCorrection() публичный Метод

Calibrates a raw luminance value with spatial luminance correction
Typically, you start from a RAW XYZ value that you convert to xyY, pass it to this method and replace it into your orignal xyY, convert back to XYZ and voilà!
public CalibrateWithSpatialCorrection ( float _U, float _V, ImageUtility _xyY ) : ImageUtility.float3
_U float The U coordinate in the image (U=X/Width)
_V float The V coordinate in the image (V=Y/Height)
_xyY ImageUtility
Результат ImageUtility.float3

GetSpatialLuminanceCorrectionFactor() публичный Метод

Uses the white reference image to retrieve the luminance factor to apply based on the position in the image
public GetSpatialLuminanceCorrectionFactor ( float _U, float _V ) : float
_U float The U coordinate in the image (U=X/Width)
_V float The V coordinate in the image (V=Y/Height)
Результат float

IsPreparedFor() публичный Метод

Tells if the database is prepared and can be used for processing colors of an image with the specified shot infos
public IsPreparedFor ( float _ISOSpeed, float _ShutterSpeed, float _Aperture ) : bool
_ISOSpeed float
_ShutterSpeed float
_Aperture float
Результат bool

PrepareCalibrationFor() публичный Метод

Prepares the interpolated calibration table to process the pixels in an image shot with the specified shot infos
public PrepareCalibrationFor ( ImageUtility _Image ) : void
_Image ImageUtility
Результат void

PrepareCalibrationFor() публичный Метод

Prepares the interpolated calibration table to process the pixels in an image shot with the specified shot infos
public PrepareCalibrationFor ( float _ISOSpeed, float _ShutterSpeed, float _Aperture ) : void
_ISOSpeed float
_ShutterSpeed float
_Aperture float
Результат void