private void SetCurrImage() { Segmentation segm = new Segmentation(_keyPoints, trbLimit.Value); pbSegmentationShow.Image = segm.GetSegmentedPicture(_images[_currIndex]); lblPosition.Text = String.Format("{0} из {1}", _currIndex + 1, _images.Count); lblNameOfFile.Text = Path.GetFileName(_pathes[_currIndex]); }
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 void SegmentationWithCurrentParameters() { Segmentation segmentation = new Segmentation(GetCorrectedPoints(), trbToleranceLimit.Value); pbGoodChipImage.Image = segmentation.GetSegmentedPicture(_currImage); }
private Bitmap GetSegmentation() { Bitmap innerPic = new Bitmap(_pathToOriginalPic); Segmentation segmentation = new Segmentation(_cullingProject.KeyPoints, _cullingProject.Lim); Bitmap res = segmentation.GetSegmentedPicture(innerPic); return 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(); }