/// <inheritdoc/> internal override ShapeItem Load(string path, ReadableIdentifier identifier) { Message("Image processing, please wait."); var interpolator = new ImageInterpolator(path); var points = interpolator.InterpolatePoints(); points = ShapeFactory.Centered(points); HideMessage(); var shape = new ShapeItem2D(identifier, points); shape.MetricWidth = 50; return(shape); }
/// <summary> /// Interpolates coordinates from given image. /// </summary> public static IEnumerable <Point2Dmm> InterpolateImage(string filename) { var interpolator = new ImageInterpolator(filename); return(interpolator.InterpolatePoints()); }