Пример #1
0
 private void extractFeatureButton_Click(object sender, EventArgs e)
 {
     if (learningSys != null)
     {
         surfData = learningSys.CalSURFFeature();
         Image <Bgr, byte> drawKeyPointImg = SystemToolBox.DrawSURFFeature(surfData);
         new ImageViewer(SystemToolBox.DrawSURFFeatureToWPF(surfData, surfData.GetImg())).Show();
         extractFeatureImgBox.Image = drawKeyPointImg.Resize(320, 240, INTER.CV_INTER_LINEAR);
     }
 }
Пример #2
0
 private void getMappingFeatureButton_Click(object sender, RoutedEventArgs e)
 {
     if (templateHistFilePathName != null)
     {
         string templateHistFileName = System.IO.Path.GetFileName(templateHistFilePathName); //取得路徑的檔案名稱
         templateSURFPathFileName = SystemToolBox.GetMappingDescriptorDataFile(templateHistFileName, dir);
         if (templateSURFPathFileName != null)
         {
             templateSurfFeature = MatchRecognition.ReadSURFFeature(templateSURFPathFileName);
             Image <Bgr, byte> showFeatureImg = SystemToolBox.DrawSURFFeature(templateSurfFeature);
             new ImageViewer(showFeatureImg, "取得樣板特徵圖像").Show();
         }
     }
 }
Пример #3
0
        private void extractFeatureButton_Click(object sender, EventArgs e)
        {
            if (wantExtractFeatureImage != null)
            {
                if (learningSys != null)
                {
                    learningSys.SetLearningImage(wantExtractFeatureImage);
                }
                else
                {
                    learningSys = new FeatureLearning(wantExtractFeatureImage);
                }

                surfData = learningSys.CalSURFFeature();
                //Draw Feature
                Image <Bgr, byte> drawKeyPointImg = SystemToolBox.DrawSURFFeature(surfData);
                new ImageViewer(drawKeyPointImg, "擷取特徵點結果").Show();
            }
        }