public FieldParameters(string filepath, string imagePath, string colors, int horizontalDistance, int horizontalSize, int verticalSize, int verticalDistance, int width, int height, SkiaSharp.SKFilterQuality scalingQuality, IColorComparison colorMode, Dithering ditherMode, IterationInformation iterationInformation) : base(filepath) { ColorPath = colors; HorizontalDistance = horizontalDistance; HorizontalSize = horizontalSize; VerticalSize = verticalSize; VerticalDistance = verticalDistance; Length = width; Height = height; PrimaryImageTreatment = new FieldReadout(this, imagePath, scalingQuality); PrimaryCalculation = new FieldCalculation(colorMode, ditherMode, iterationInformation); HasProtocolDefinition = true; }
public FieldParameters(int imageWidth, int imageHeight, Color background, string colors, int horizontalDistance, int horizontalSize, int verticalSize, int verticalDistance, int targetSize, SkiaSharp.SKFilterQuality scalingQuality, IColorComparison colorMode, Dithering ditherMode, IterationInformation iterationInformation) { ColorPath = colors; HorizontalDistance = horizontalDistance; HorizontalSize = horizontalSize; VerticalSize = verticalSize; VerticalDistance = verticalDistance; PrimaryImageTreatment = new FieldReadout(this, imageWidth, imageHeight, scalingQuality) { Background = background }; TargetCount = targetSize; PrimaryCalculation = new FieldCalculation(colorMode, ditherMode, iterationInformation); HasProtocolDefinition = true; }
public FieldParameters(string filepath, string imagePath, string colors, int horizontalDistance, int horizontalSize, int verticalSize, int verticalDistance, int targetSize, SkiaSharp.SKFilterQuality scalingQuality, IColorComparison colorMode, Dithering ditherMode, IterationInformation iterationInformation) : this(filepath, imagePath, colors, horizontalDistance, horizontalSize, verticalSize, verticalDistance, 1, 1, scalingQuality, colorMode, ditherMode, iterationInformation) { TargetCount = targetSize; }