private void btnLoadInit_Click(object sender, EventArgs e)
        {
            string strFName;

            strFName = ASDef._INI_PATH + "\\Img\\" + AVisionProBuild.ToolName(m_nType, m_nPoint, m_aFixtureNPointToNPoint.Name) + ".bmp";
            //if (AVisionProBuild.LoadImg(strFName, cogDisplay) == true)
            if (AVisionProBuild.LoadImg(strFName, ref m_cogImage) == true)
            {
                m_aFixtureNPointToNPoint.InputImage = m_cogImage;
                m_aPoint.m_strLoadFileName          = strFName;
            }
        }
        // 2014.10.24-----------------------------------
        private void LoadImageFile(string strImageFile)
        {
            // 2016.12.01
            chkRun.Visible = false;

            if (AVisionProBuild.LoadImg(strImageFile, ref m_cogImage) == true)
            {
                m_aFixtureNPointToNPoint.InputImage = m_cogImage;

                m_aPoint.m_strLoadFileName = strImageFile;

                lblFileName.Text = strImageFile;
            }
        }
        // 2014.10.24-----------------------------------
        private void LoadImageFile(string strImageFile)
        {
            // 2016.12.01
            chkRun.Visible = false;

            if (AVisionProBuild.LoadImg(strImageFile, ref m_cogImage) == true)
            {
                m_aFindEllipse.InputImage = RunCalibImage();

                m_aPoint.m_strLoadFileName = strImageFile;

                lblFileName.Text = strImageFile;
            }
        }
        // 2014.03.27
        private void btnLoadInit_Click(object sender, EventArgs e)
        {
            string strFName;

            strFName = ASDef._INI_PATH + "\\Img\\" + "Init_" + AVisionProBuild.ToolName(m_nType, m_nPoint, "FindLine") + ".bmp";
            if (AVisionProBuild.LoadImg(strFName, ref m_cogImage) == true)
            {
                m_aFindEllipse.InputImage = RunCalibImage();

                m_aPoint.m_strLoadFileName = strFName;

                lblFileName.Text = strFName;
            }
        }
示例#5
0
        // 2014.10.24-----------------------------------
        private void LoadImageFile(string strImageFile)
        {
            m_aDisplay.ClearAll();
            if (AVisionProBuild.LoadImg(strImageFile, ref m_cogImage) == true)
            {
                m_aDisplay.Image = m_cogImage;

                m_aDisplay.Display.Fit(true);

                m_aCalibCheckerboard.InputImage = m_aDisplay.GetImage8Grey();

                m_aPoint.m_strLoadFileName = strImageFile;
                lblFileName.Text           = strImageFile;
            }
        }
示例#6
0
        private void btnLoadInit_Click(object sender, EventArgs e)
        {
            m_aDisplay.ClearAll();
            string strFName;

            strFName = ASDef._INI_PATH + "\\Img\\" + AVisionProBuild.ToolName(m_nType, m_nPoint, m_aCalibCheckerboard.Name) + ".bmp";
            // 2011.05.07
            m_aDisplay.ClearAll();
            // 2012.01.17
            //if (AVisionProBuild.LoadImg(strFName, cogDisplay) == true)
            if (AVisionProBuild.LoadImg(strFName, ref m_cogImage) == true)
            {
                // 2012.01.17
                m_aDisplay.Image = m_cogImage;

                m_aDisplay.Display.Fit(true);
                m_aCalibCheckerboard.InputImage = m_aDisplay.GetImage8Grey();
                m_aPoint.m_strLoadFileName      = strFName;
            }
        }