Example #1
0
        public frmEditCamera(VideoCamera camera)
        {
            InitializeComponent();

            if (camera == null)
            {
                m_New = true;
                m_Camera = new VideoCamera();
                m_Camera.Model = "<new camera>";
                m_InitialCameraModel = null;
            }
            else
            {
                m_New = false;
                m_Camera = camera;
                m_InitialCameraModel = m_Camera.Model;
            }

            tbxCameraName.Text = m_Camera.Model;
            tbxPixelX.Text = m_Camera.CCDMetrics.CellWidth.ToString("0.0");
            tbxPixelY.Text = m_Camera.CCDMetrics.CellWidth.ToString("0.0");
            tbxMatrixWidth.Text = m_Camera.CCDMetrics.MatrixWidth.ToString();
            tbxMatrixHeight.Text = m_Camera.CCDMetrics.MatrixHeight.ToString();
            cbxUsesIntegration.Checked = m_Camera.Integrating;

            tbxCameraName.Enabled = !m_Camera.ReadOnly;
            tbxPixelX.Enabled = !m_Camera.ReadOnly;
            tbxPixelY.Enabled = !m_Camera.ReadOnly;
            tbxMatrixWidth.Enabled = !m_Camera.ReadOnly;
            tbxMatrixHeight.Enabled = !m_Camera.ReadOnly;
            cbxUsesIntegration.Enabled = !m_Camera.ReadOnly;
        }
Example #2
0
        public frmEditConfigName(
			TangraConfig.ScopeRecorderConfiguration config,
			VideoCamera camera,
			int frameWidth,
			int frameHeight,
			TangraConfig.PersistedPlateConstants pltConst)
        {
            InitializeComponent();

            m_FrameWidth = frameWidth;
            m_FrameHeight = frameHeight;

            if (config == null)
            {
                config = new TangraConfig.ScopeRecorderConfiguration(camera.Model, frameWidth, frameHeight);
                tbxConfigName.Enabled = true;
                m_New = true;
                Height = 260;
                pnlSolvedPlateConf.Visible = false;
                cbxEditConfig.Visible = false;
                pnlOSDAreaConf.Visible = false;
                cbxEditOSDArea.Visible = false;
            }
            else
            {
                tbxConfigName.Enabled = false;
                Height = 396;
                pnlSolvedPlateConf.Visible = true;
                cbxEditConfig.Visible = true;
                if (pltConst != null)
                {
                    tbxSolvedCellX.Text = pltConst.EffectivePixelWidth.ToString();
                    tbxSolvedCellY.Text = pltConst.EffectivePixelHeight.ToString();
                    tbxSolvedFocalLength.Text = pltConst.EffectiveFocalLength.ToString();
                }
            }

            cbxAreaType.SelectedIndex = config.IsInclusionArea ? 1 : 0;
            if (config.IsInclusionArea)
                SetOSDDimentions(config.InclusionArea);
            else
                SetOSDDimentions(config.OSDExclusionArea);

            m_Config = config;
            m_Camera = camera;
            tbxConfigName.Text = config.Title;
            m_PltConst = pltConst;
        }
Example #3
0
        public void Reset()
        {
            CurrentAstrometricFit = null;
            CurrentPhotometricFit = null;
            AstrometricState = null;
            VideoCamera = null;
            m_OSDRectToExclude = Rectangle.Empty;
            m_RectToInclude = Rectangle.Empty;
            FieldSolveContext = null;
            PlateConstants = null;

            StarMap = null;
            StarMapConfig = StarMapInternalConfig.Default;
        }
Example #4
0
        public static void AddCameraConfigurations(List<VideoCamera> cameras)
        {
            // Load the default configuration
            VideoCamera cam;

            cam = new VideoCamera();
            cam.Model = "GSTAR";
            cam.CCDMetrics.CellWidth = 8.3;
            cam.CCDMetrics.CellHeight = 8.6;
            cam.CCDMetrics.MatrixWidth = 752;
            cam.CCDMetrics.MatrixHeight = 584;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "Flea3";
            cam.CCDMetrics.CellWidth = 5.6;
            cam.CCDMetrics.CellHeight = 5.6;
            cam.CCDMetrics.MatrixWidth = 692;
            cam.CCDMetrics.MatrixHeight = 504;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "Grasshopper Express";
            cam.CCDMetrics.CellWidth = 4.54;
            cam.CCDMetrics.CellHeight = 4.54;
            cam.CCDMetrics.MatrixWidth = 1932;
            cam.CCDMetrics.MatrixHeight = 1452;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "Mintron 12V1C-EX (NTSC)";
            cam.CCDMetrics.CellWidth = 8.6;
            cam.CCDMetrics.CellHeight = 8.3;
            cam.CCDMetrics.MatrixWidth = 810;
            cam.CCDMetrics.MatrixHeight = 508;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "Mintron 12V1C-EX (PAL)";
            cam.CCDMetrics.CellWidth = 8.6;
            cam.CCDMetrics.CellHeight = 8.3;
            cam.CCDMetrics.MatrixWidth = 795;
            cam.CCDMetrics.MatrixHeight = 596;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "PC164-EX (NTSC)";
            cam.CCDMetrics.CellWidth = 6.35;
            cam.CCDMetrics.CellHeight = 7.4;
            cam.CCDMetrics.MatrixWidth = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "PC165DNR (NTSC)";
            cam.CCDMetrics.CellWidth = 5.0;
            cam.CCDMetrics.CellHeight = 7.4;
            cam.CCDMetrics.MatrixWidth = 976;
            cam.CCDMetrics.MatrixHeight = 492;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "PC165DNR (PAL)";
            cam.CCDMetrics.CellWidth = 5.0;
            cam.CCDMetrics.CellHeight = 6.25;
            cam.CCDMetrics.MatrixWidth = 976;
            cam.CCDMetrics.MatrixHeight = 528;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "Stella Cam EX";
            cam.CCDMetrics.CellWidth = 8.3;
            cam.CCDMetrics.CellHeight = 8.6;
            cam.CCDMetrics.MatrixWidth = 752;
            cam.CCDMetrics.MatrixHeight = 584;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-120N+ (PAL)";
            cam.CCDMetrics.CellWidth = 8.6;
            cam.CCDMetrics.CellHeight = 8.3;
            cam.CCDMetrics.MatrixWidth = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-120N+ (NTSC)";
            cam.CCDMetrics.CellWidth = 8.4;
            cam.CCDMetrics.CellHeight = 9.8;
            cam.CCDMetrics.MatrixWidth = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-902H (PAL)";
            cam.CCDMetrics.CellWidth = 8.6;
            cam.CCDMetrics.CellHeight = 8.3;
            cam.CCDMetrics.MatrixWidth = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-902H (NTSC)";
            cam.CCDMetrics.CellWidth = 8.4;
            cam.CCDMetrics.CellHeight = 9.8;
            cam.CCDMetrics.MatrixWidth = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-902H Ultimate (PAL)";
            cam.CCDMetrics.CellWidth = 6.5;
            cam.CCDMetrics.CellHeight = 6.25;
            cam.CCDMetrics.MatrixWidth = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-902H Ultimate (NTSC)";
            cam.CCDMetrics.CellWidth = 6.35;
            cam.CCDMetrics.CellHeight = 7.4;
            cam.CCDMetrics.MatrixWidth = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-910BD (PAL)";
            cam.CCDMetrics.CellWidth = 8.6;
            cam.CCDMetrics.CellHeight = 8.3;
            cam.CCDMetrics.MatrixWidth = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-910BD (NTSC)";
            cam.CCDMetrics.CellWidth = 8.4;
            cam.CCDMetrics.CellHeight = 9.8;
            cam.CCDMetrics.MatrixWidth = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-910HX (PAL)";
            cam.CCDMetrics.CellWidth = 8.6;
            cam.CCDMetrics.CellHeight = 8.3;
            cam.CCDMetrics.MatrixWidth = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam = new VideoCamera();
            cam.Model = "WAT-910HX (NTSC)";
            cam.CCDMetrics.CellWidth = 8.4;
            cam.CCDMetrics.CellHeight = 9.8;
            cam.CCDMetrics.MatrixWidth = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating = false;
            cam.ReadOnly = true;
            cameras.Add(cam);
        }
Example #5
0
        public static void AddCameraConfigurations(List <VideoCamera> cameras)
        {
            // Load the default configuration
            VideoCamera cam;

            cam       = new VideoCamera();
            cam.Model = "GSTAR";
            cam.CCDMetrics.CellWidth    = 8.3;
            cam.CCDMetrics.CellHeight   = 8.6;
            cam.CCDMetrics.MatrixWidth  = 752;
            cam.CCDMetrics.MatrixHeight = 584;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "Flea3";
            cam.CCDMetrics.CellWidth    = 5.6;
            cam.CCDMetrics.CellHeight   = 5.6;
            cam.CCDMetrics.MatrixWidth  = 692;
            cam.CCDMetrics.MatrixHeight = 504;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "Grasshopper Express";
            cam.CCDMetrics.CellWidth    = 4.54;
            cam.CCDMetrics.CellHeight   = 4.54;
            cam.CCDMetrics.MatrixWidth  = 1932;
            cam.CCDMetrics.MatrixHeight = 1452;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "Mintron 12V1C-EX (NTSC)";
            cam.CCDMetrics.CellWidth    = 8.6;
            cam.CCDMetrics.CellHeight   = 8.3;
            cam.CCDMetrics.MatrixWidth  = 810;
            cam.CCDMetrics.MatrixHeight = 508;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "Mintron 12V1C-EX (PAL)";
            cam.CCDMetrics.CellWidth    = 8.6;
            cam.CCDMetrics.CellHeight   = 8.3;
            cam.CCDMetrics.MatrixWidth  = 795;
            cam.CCDMetrics.MatrixHeight = 596;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "PC164-EX (NTSC)";
            cam.CCDMetrics.CellWidth    = 6.35;
            cam.CCDMetrics.CellHeight   = 7.4;
            cam.CCDMetrics.MatrixWidth  = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "PC165DNR (NTSC)";
            cam.CCDMetrics.CellWidth    = 5.0;
            cam.CCDMetrics.CellHeight   = 7.4;
            cam.CCDMetrics.MatrixWidth  = 976;
            cam.CCDMetrics.MatrixHeight = 492;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "PC165DNR (PAL)";
            cam.CCDMetrics.CellWidth    = 5.0;
            cam.CCDMetrics.CellHeight   = 6.25;
            cam.CCDMetrics.MatrixWidth  = 976;
            cam.CCDMetrics.MatrixHeight = 528;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "Stella Cam EX";
            cam.CCDMetrics.CellWidth    = 8.3;
            cam.CCDMetrics.CellHeight   = 8.6;
            cam.CCDMetrics.MatrixWidth  = 752;
            cam.CCDMetrics.MatrixHeight = 584;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "WAT-120N+ (PAL)";
            cam.CCDMetrics.CellWidth    = 8.6;
            cam.CCDMetrics.CellHeight   = 8.3;
            cam.CCDMetrics.MatrixWidth  = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);


            cam       = new VideoCamera();
            cam.Model = "WAT-120N+ (NTSC)";
            cam.CCDMetrics.CellWidth    = 8.4;
            cam.CCDMetrics.CellHeight   = 9.8;
            cam.CCDMetrics.MatrixWidth  = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating             = true;
            cam.ReadOnly = true;
            cameras.Add(cam);


            cam       = new VideoCamera();
            cam.Model = "WAT-902H (PAL)";
            cam.CCDMetrics.CellWidth    = 8.6;
            cam.CCDMetrics.CellHeight   = 8.3;
            cam.CCDMetrics.MatrixWidth  = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);


            cam       = new VideoCamera();
            cam.Model = "WAT-902H (NTSC)";
            cam.CCDMetrics.CellWidth    = 8.4;
            cam.CCDMetrics.CellHeight   = 9.8;
            cam.CCDMetrics.MatrixWidth  = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);


            cam       = new VideoCamera();
            cam.Model = "WAT-902H Ultimate (PAL)";
            cam.CCDMetrics.CellWidth    = 6.5;
            cam.CCDMetrics.CellHeight   = 6.25;
            cam.CCDMetrics.MatrixWidth  = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);


            cam       = new VideoCamera();
            cam.Model = "WAT-902H Ultimate (NTSC)";
            cam.CCDMetrics.CellWidth    = 6.35;
            cam.CCDMetrics.CellHeight   = 7.4;
            cam.CCDMetrics.MatrixWidth  = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "WAT-910BD (PAL)";
            cam.CCDMetrics.CellWidth    = 8.6;
            cam.CCDMetrics.CellHeight   = 8.3;
            cam.CCDMetrics.MatrixWidth  = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "WAT-910BD (NTSC)";
            cam.CCDMetrics.CellWidth    = 8.4;
            cam.CCDMetrics.CellHeight   = 9.8;
            cam.CCDMetrics.MatrixWidth  = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);

            cam       = new VideoCamera();
            cam.Model = "WAT-910HX (PAL)";
            cam.CCDMetrics.CellWidth    = 8.6;
            cam.CCDMetrics.CellHeight   = 8.3;
            cam.CCDMetrics.MatrixWidth  = 752;
            cam.CCDMetrics.MatrixHeight = 582;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);


            cam       = new VideoCamera();
            cam.Model = "WAT-910HX (NTSC)";
            cam.CCDMetrics.CellWidth    = 8.4;
            cam.CCDMetrics.CellHeight   = 9.8;
            cam.CCDMetrics.MatrixWidth  = 768;
            cam.CCDMetrics.MatrixHeight = 494;
            cam.Integrating             = false;
            cam.ReadOnly = true;
            cameras.Add(cam);
        }