示例#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 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();
            }
        }