C# Class FrameProcessor, camfight

Show file Open project: tuxoko/camfight Class Usage Examples

Public Properties

Property Type Description
_hist DenseHistogram
backproject Byte>.Image
center Point[]
face Rectangle
have_face bool
have_left bool
have_left_punch bool
have_right bool
have_right_punch bool
isTracked bool
left Rectangle
left_mom Emgu.CV.Structure.MCvMoments
mass double
right Rectangle
t_backproject long
t_facedetect long
t_hand long
t_hue long
t_kmeans long

Public Methods

Method Description
FrameProcessor ( ) : System
ProcessFrame ( Byte>.Image frame ) : void
Reset ( ) : void
SetHist ( DenseHistogram hist ) : void

Private Methods

Method Description
FaceDetect ( Byte>.Image frame ) : Emgu.CV.Structure.MCvAvgComp[]
GetBackproject ( Byte>.Image hue, DenseHistogram _hist, Byte>.Image mask, Rectangle hide ) : Byte>.Image
GetHist ( Byte>.Image hue, Rectangle ROI, Byte>.Image mask ) : DenseHistogram
ProcessInput ( ) : void
dummy_center ( Point center, Size img_size ) : int
kmeans ( Point last_center, Byte>.Image img0, Rectangle face, double scale ) : Point[]
refine_center ( Point last_center, Byte>.Image img ) : Point[]

Method Details

FrameProcessor() public method

public FrameProcessor ( ) : System
return System

ProcessFrame() public method

public ProcessFrame ( Byte>.Image frame ) : void
frame Byte>.Image
return void

Reset() public method

public Reset ( ) : void
return void

SetHist() public method

public SetHist ( DenseHistogram hist ) : void
hist DenseHistogram
return void

Property Details

_hist public property

public DenseHistogram _hist
return DenseHistogram

backproject public property

public Image backproject
return Byte>.Image

center public property

public Point[] center
return Point[]

face public property

public Rectangle face
return Rectangle

have_face public property

public bool have_face
return bool

have_left public property

public bool have_left
return bool

have_left_punch public property

public bool have_left_punch
return bool

have_right public property

public bool have_right
return bool

have_right_punch public property

public bool have_right_punch
return bool

isTracked public property

public bool isTracked
return bool

left public property

public Rectangle left
return Rectangle

left_mom public property

public MCvMoments,Emgu.CV.Structure left_mom
return Emgu.CV.Structure.MCvMoments

mass public property

public double mass
return double

right public property

public Rectangle right
return Rectangle

t_backproject public property

public long t_backproject
return long

t_facedetect public property

public long t_facedetect
return long

t_hand public property

public long t_hand
return long

t_hue public property

public long t_hue
return long

t_kmeans public property

public long t_kmeans
return long