コード例 #1
0
        private void CreateUnionAndEdge()
        {
            Bitmap res = Utils.UnionOfImages(GetCorrectedPoints(), trbToleranceLimit.Value, _images);

            EdgeFinder edgeFinder = new EdgeFinder(res);
            res = edgeFinder.GetEdgePic();

            FormShowPicture formShowPicture = new FormShowPicture {TopLevel = false};
            FormMain.Instance.Controls.Add(formShowPicture);
            formShowPicture.Show();
            formShowPicture.SetImage(res);
        }
コード例 #2
0
        private void SegmentationWithEdgeDetection()
        {
            Segmentation segmentation = new Segmentation(GetCorrectedPoints(), trbToleranceLimit.Value);
            Bitmap res = segmentation.GetSegmentedPicture(_currImage);
            EdgeFinder edgeFinder = new EdgeFinder(res);
            res = edgeFinder.GetEdgePic();

            pbGoodChipImage.Image = res;
        }
コード例 #3
0
 private Bitmap GetEdgeImage()
 {
     Bitmap innerPic = new Bitmap(_pathToOriginalPic);
     Segmentation segmentation = new Segmentation(_cullingProject.KeyPoints, _cullingProject.Lim);
     Bitmap res = segmentation.GetSegmentedPicture(innerPic);
     EdgeFinder edgeFinder = new EdgeFinder(res);
     return edgeFinder.GetEdgePic();
 }