C# Class StandardizedDiffuseAlbedoMaps.Form1

Show file Open project: Patapom/GodComplex

Public Methods

Method Description
Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnLoad ( EventArgs e ) : void

Private Methods

Method Description
CommitImageToCurrentCalibration ( ) : void

Commit image data to camera calibration Must be called as soon as the current image is used to feed data to the camera calibration

GetRegKey ( string _Key, string _Default ) : string
GetRegKeyFloat ( string _Key, float _Default ) : float
GetRegKeyInt ( string _Key, float _Default ) : int
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IntegrateLuminance ( float _X, float _Y, float _Radius, ImageUtility &_MinXYZ, ImageUtility &_MaxXYZ, float &_PercentOfBlackValues, float &_PercentOfSaturatedValues ) : ImageUtility.float3

Integrates the luminance of the pixels in a given circle selected by the user

IntegrateLuminance ( CameraCalibration _Probe, ImageUtility _Center, float _Radius ) : void

Integrates luminance for the provided probe by sampling luminances in the provided disc

LoadWhiteReferenceImage ( System _FileName, bool _AlertIfFailed ) : void

Loads the white reference image file

LoadWhiteReflectanceFile ( System _FileName, bool _AlertIfFailed ) : void

Loads the white reflectance reference from a file

MessageBox ( string _Text ) : DialogResult
MessageBox ( string _Text, Exception _e ) : DialogResult
MessageBox ( string _Text, MessageBoxButtons _Buttons ) : DialogResult
MessageBox ( string _Text, MessageBoxButtons _Buttons, MessageBoxIcon _Icon ) : DialogResult
MessageBox ( string _Text, MessageBoxIcon _Icon ) : DialogResult
PrepareDatabase ( ) : bool

Prepares the database for calibration with current image shot infos

PrepareDatabase ( bool _AlertIfFailed ) : bool
RebuildImage ( ) : void

Rebuilds and assigns the bitmap for the output panel from the loaded image

ReloadDatabase ( ) : void

Rebuilds the database by reloading all the files present in the provided database directory

SetRegKey ( string _Key, string _Value ) : void
StartCalibrationPicking ( CameraCalibration _Probe ) : void
StartColorPicking ( int _CustomSwatchIndex ) : void
UpdateUIFromCalibration ( ) : void
UpdateWhiteReferenceImageUI ( ) : void
UpdateWhiteReflectanceUI ( ) : void
buttonCalibrate02_Click ( object sender, EventArgs e ) : void
buttonCalibrate10_Click ( object sender, EventArgs e ) : void
buttonCalibrate20_Click ( object sender, EventArgs e ) : void
buttonCalibrate50_Click ( object sender, EventArgs e ) : void
buttonCalibrate75_Click ( object sender, EventArgs e ) : void
buttonCalibrate99_Click ( object sender, EventArgs e ) : void
buttonCapture_Click ( object sender, EventArgs e ) : void
buttonCropTool_Click ( object sender, EventArgs e ) : void
buttonLoadCalibration_Click ( object sender, EventArgs e ) : void
buttonLoadImage_Click ( object sender, EventArgs e ) : void
buttonLoadWhiteRefImage_Click ( object sender, EventArgs e ) : void
buttonLoadWhiteReflectanceReference_Click ( object sender, EventArgs e ) : void
buttonPickWhiteRefImage_Click ( object sender, EventArgs e ) : void
buttonPickWhiteReflectance_Click ( object sender, EventArgs e ) : void
buttonReCalibrate_Click ( object sender, EventArgs e ) : void
buttonResetCrop_Click ( object sender, EventArgs e ) : void
buttonResetWhiteRefImage_Click ( object sender, EventArgs e ) : void
buttonResetWhiteReflectance_Click ( object sender, EventArgs e ) : void
buttonSafeBorder_Click ( object sender, EventArgs e ) : void
buttonSaveCalibratedImage_Click ( object sender, EventArgs e ) : void
buttonSaveCalibration_Click ( object sender, EventArgs e ) : void
buttonSaveWhiteRefImage_Click ( object sender, EventArgs e ) : void
buttonSaveWhiteReflectanceReference_Click ( object sender, EventArgs e ) : void
buttonSetupDatabaseFolder_Click ( object sender, EventArgs e ) : void
buttonWhiteRefTest1_Click ( object sender, EventArgs e ) : void
buttonWhiteRefTest2_Click ( object sender, EventArgs e ) : void
buttonWhiteRefTest3_Click ( object sender, EventArgs e ) : void
checkBoxCalibrate02_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxCalibrate10_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxCalibrate20_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxCalibrate50_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxCalibrate75_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxCalibrate99_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxCustomSwatch0_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxGraphLagrange_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxLuminance_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxSpatialLuminanceCorrection_CheckedChanged ( object sender, EventArgs e ) : void
checkBoxsRGB_CheckedChanged ( object sender, EventArgs e ) : void
floatTrackbarControlShotInfos_SliderDragStop ( Nuaj _Sender, float _fStartValue ) : void
outputPanel_MouseMove ( object sender, MouseEventArgs e ) : void
panelCustomSwatch0_Click ( object sender, EventArgs e ) : void
panelCustomSwatch1_Click ( object sender, EventArgs e ) : void
panelCustomSwatch2_Click ( object sender, EventArgs e ) : void
panelCustomSwatch3_Click ( object sender, EventArgs e ) : void
panelCustomSwatch4_Click ( object sender, EventArgs e ) : void
panelCustomSwatch5_Click ( object sender, EventArgs e ) : void
panelCustomSwatch6_Click ( object sender, EventArgs e ) : void
panelCustomSwatch7_Click ( object sender, EventArgs e ) : void
panelCustomSwatch8_Click ( object sender, EventArgs e ) : void
panelSwatchMin_MouseMove ( object sender, MouseEventArgs e ) : void
resultTexturePanel_MouseMove ( object sender, MouseEventArgs e ) : void
whiteImageReferencePanel_MouseMove ( object sender, MouseEventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Form1() public method

public Form1 ( ) : System
return System

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e EventArgs
return void