예제 #1
0
        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);
        }
예제 #2
0
 internal static void CopyParameters(frmGerchbergSaxton form)
 {
     form.GetOutputSize(out SpatialLightModulator.Width, out SpatialLightModulator.Height);
     form.GetResizeMode(out ResizeTarget, out CropTarget);
     form.GetIterations(out Iterations);
 }
예제 #3
0
 internal static void SetParameters(frmGerchbergSaxton form)
 {
     form.SetOutputSize();
     form.SetResizeMode(ResizeTarget, CropTarget);
     form.SetIterations(Iterations);
 }