profile influences configuration
This commit is contained in:
EugeneTes
2026-05-15 11:54:36 +02:00
parent 2be13501fa
commit 8704d0b5ac
42 changed files with 2467 additions and 1023 deletions

View File

@@ -4,8 +4,18 @@ public class LeerformRecipe
{
public string RecipeName { get; set; } = string.Empty;
public CellPattern Pattern { get; set; } = new();
public int[] HistogramBins { get; set; } = [5, 5, 5];
public float[] AverageSpline { get; set; } = [];
public Dictionary<int, float[]> CellSplines { get; set; } = new();
/// <summary>LAB a* threshold for white chocolate (THRESH_BINARY_INV). Pixels with a* below this become foreground.</summary>
public int AThreshold { get; set; } = 140;
/// <summary>LAB L* threshold for dark chocolate (THRESH_BINARY_INV). Pixels with L* below this become foreground.</summary>
public int LThreshold { get; set; } = 100;
/// <summary>Minimum contour area (px) for a detected blob to count.</summary>
public int MinBlobArea { get; set; } = 100;
/// <summary>Maximum contour area (px) for a detected blob to count.</summary>
public int MaxBlobArea { get; set; } = 5000;
public string ThumbnailBase64 { get; set; } = string.Empty;
}