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