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, Inter scalingMode, IColorComparison colorMode, Dithering ditherMode, IterationInformation iterationInformation) { ColorPath = colors; HorizontalDistance = horizontalDistance; HorizontalSize = horizontalSize; VerticalSize = verticalSize; VerticalDistance = verticalDistance; PrimaryImageTreatment = new FieldReadout(this, imageWidth, imageHeight, scalingMode); PrimaryImageTreatment.Background = background; TargetCount = targetSize; PrimaryCalculation = new FieldCalculation(colorMode, ditherMode, iterationInformation); HasProtocolDefinition = true; }