ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Static Public Member Functions | List of all members
ImageResizer.Plugins.RedEye.EyeKernels Class Reference

Static Public Member Functions

static int[,] GetStandardKernel (int factor)
 For eyes looking at the camera More...
 
static int[,] Scale (int[,] k, int postiveFactor, int negativeFactor)
 
static int[,] GetElongatedKernel (int factor)
 Eyes that are not looking at the camera directly only have a cat-like red shape. More...
 
static int[,] GrowKernel (int[,] k, int factor, double snap=3)
 

Detailed Description

Definition at line 24 of file EyeKernels.cs.

Member Function Documentation

static int [,] ImageResizer.Plugins.RedEye.EyeKernels.GetElongatedKernel ( int  factor)
inlinestatic

Eyes that are not looking at the camera directly only have a cat-like red shape.

Returns

Definition at line 52 of file EyeKernels.cs.

52  {
53  return GrowKernel(new int[5, 5] {
54  {0,-3,-10,-3,0},
55  {-3,-10,53,-10,-3},
56  {-10,-10,53,-10,-10},
57  {-3,-10,53,-10,-3},
58  {0,-3,-10,-3,0}},factor);
59  }
static int [,] ImageResizer.Plugins.RedEye.EyeKernels.GetStandardKernel ( int  factor)
inlinestatic

For eyes looking at the camera

Returns

Definition at line 30 of file EyeKernels.cs.

30  {
31  return GrowKernel(new int[5, 5] {
32  {-2,-4,-7,-4,-2},
33  {-9,20,20,20,-9},
34  {-20,20,0,20,-20},
35  {-10,20,20,20,-10},
36  {-3,-5,-10,-5,-3}}, factor);
37  }

The documentation for this class was generated from the following file: