コード例 #1
0
ファイル: Main_UI.cs プロジェクト: r376533/Chest_Label_Tool
        /// <summary>
        /// 要改變圖片就用這個
        /// </summary>
        private void ImageProc()
        {
            int B_Level = trbImageBrightness.Value;
            int C_Level = trbImageContrast.Value;

            List <Nullable <Point> > KeyPoints = LabelLog.KeyPoints;
            Image <Bgr, Byte>        Img       = OriginalImage.Copy();

            //調亮度跟對比度
            Img = Image_Func.BrightnessAndContrast(Img, B_Level, C_Level);
            //畫點劃線
            if (cbShowKeyPoint.Checked)
            {
                Img = ImageLabelDataReLoad(Img, KeyPoints);
            }
            cvImageBox.Image = Img;
            //載入資料表
            GridViewDataReLoad();
            //防止記憶體爆炸
            GC.Collect();
        }