public ColorRangeFilter(ISimpleBitmapFactory factory) : base(factory) { LowerThreshold = YCbCrColor.Min; UpperThreshold = YCbCrColor.Max; ResultColor = 0xFFFFFF; }
public FaceLight(ISimpleBitmapFactory factory) { try { SkinColorFilter = new ColorRangeFilter(factory) { LowerThreshold = new YCbCrColor(0.10f, -0.15f, 0.05f), UpperThreshold = new YCbCrColor(1.00f, 0.05f, 0.20f) }; _erodeFilter = new Erode5x5Filter(factory); _dilateFilter = new Dilate5x5Filter(factory); _segmentator = new HistogramMinMaxSegmentator(); } catch (Exception ex) { throw ex; } }
protected SimpleBitmapFactoryConsumer(ISimpleBitmapFactory factory) { _factory = factory; }
protected BaseFilter(ISimpleBitmapFactory factory) : base(factory) { }
public Dilate5x5Filter(ISimpleBitmapFactory factory) : base(factory) { ResultColor = 0xFFFFFF; CompareEmptyColor = 0; }