Esempio n. 1
0
 public ColorRangeFilter(ISimpleBitmapFactory factory)
     : base(factory)
 {
     LowerThreshold = YCbCrColor.Min;
     UpperThreshold = YCbCrColor.Max;
     ResultColor = 0xFFFFFF;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 4
0
 protected BaseFilter(ISimpleBitmapFactory factory)
     : base(factory)
 {
 }
Esempio n. 5
0
 public Dilate5x5Filter(ISimpleBitmapFactory factory)
     : base(factory)
 {
     ResultColor = 0xFFFFFF;
     CompareEmptyColor = 0;
 }