Exemple #1
0
        private void Button_OpenImage_Click(object sender, EventArgs e)
        {
            string t_ImagePath = LibUtility.ClassUtility.OpenImageFile();

            m_OriginalImage  = Emgu.CV.CvInvoke.Imread(t_ImagePath, Emgu.CV.CvEnum.ImreadModes.Unchanged);
            m_ProcessedImage = m_OriginalImage.Clone();
            //Emgu.CV.Mat ttImage;
            //ttImage = LibUtility.ClassUtility.ConvertImageColor(m_ProcessedImage, 2);
            ZoomPanROIPictureBox_OriginalImage.Image  = m_OriginalImage.Bitmap;
            ZoomPanROIPictureBox_ProcessedImage.Image = m_ProcessedImage.Bitmap;

            ZoomPanROIPictureBox_OriginalImage.FitImageToCenter();
            ZoomPanROIPictureBox_ProcessedImage.FitImageToCenter();
        }
Exemple #2
0
 private void Button_ResetProcessed_Click(object sender, EventArgs e)
 {
     ZoomPanROIPictureBox_OriginalImage.FitImageToCenter();
     ZoomPanROIPictureBox_ProcessedImage.FitImageToCenter();
 }