C# 클래스 StandardizedDiffuseAlbedoMaps.CameraCalibrationDatabase

This class hosts the camera calibration database
파일 보기 프로젝트 열기: Patapom/GodComplex 1 사용 예제들

공개 메소드들

메소드 설명
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