public ImageGSForm() { InitializeComponent(); Initialize(); InitializeBitmaps(); InitializePhaseForm(); SpatialLightModulator.Initialize(); SpatialLightModulatorForm = new frmSpatialLightModulator(); SpatialLightModulatorForm.SetLimits(); SpatialLightModulatorForm.SetParameters(); SpatialLightModulatorForm.AddBitmap("Target", Images.InputBitmap); GerchbergSaxtonForm = new frmGerchbergSaxton(); GerchbergSaxtonForm.SetLimits(); GerchbergSaxtonForm.SetTarget(this, PhaseImage, SpatialLightModulatorForm); }
internal static void CopyParameters(frmGerchbergSaxton form) { form.GetOutputSize(out SpatialLightModulator.Width, out SpatialLightModulator.Height); form.GetResizeMode(out ResizeTarget, out CropTarget); form.GetIterations(out Iterations); }
internal static void SetParameters(frmGerchbergSaxton form) { form.SetOutputSize(); form.SetResizeMode(ResizeTarget, CropTarget); form.SetIterations(Iterations); }