2.0.15
profile influences configuration
This commit is contained in:
@@ -3,7 +3,13 @@ namespace LindtLeerformPlugin.Models;
|
||||
public class CellResult
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
/// <summary>True when no chocolate blobs were detected inside this cell (the form is empty as expected).</summary>
|
||||
public bool IsGood { get; set; }
|
||||
/// <summary>Largest (histogram bin value − spline at that bin) across all bins. Negative if every bin is below the spline.</summary>
|
||||
public double MaxExceedance { get; set; }
|
||||
|
||||
/// <summary>Number of contours inside the cell that passed the area filter.</summary>
|
||||
public int BlobCount { get; set; }
|
||||
|
||||
/// <summary>Total pixel area classified as chocolate inside this cell (sum of accepted contour areas).</summary>
|
||||
public int DetectedArea { get; set; }
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user