C# Class Detector.Tracking.ObjectTracked

Exibir arquivo Open project: AshleighAdams/Detector Class Usage Examples

Public Properties

Property Type Description
PosX float
PosY float
PositionWasFaked bool
SizeX float
SizeY float

Public Methods

Method Description
Center ( ) : Point

Center of an object

Equals ( object obj ) : bool
FakeUpdatePos ( ) : void

Fake the target movements

GetHashCode ( ) : int
GetScore ( Target t ) : int

Get the score of the target to check if it is the correct one

LastCenter ( ) : Point
ObjectTracked ( int ID, Point Pos, Rectangle Size, Rectangle imgSize ) : System

Represents an object that is being tracked

operator ( ) : bool

Private Methods

Method Description
Distance ( int x, int y, int a, int b ) : int

Calculate the distance between to points

Method Details

Center() public method

Center of an object
public Center ( ) : Point
return Point

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FakeUpdatePos() public method

Fake the target movements
public FakeUpdatePos ( ) : void
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetScore() public method

Get the score of the target to check if it is the correct one
public GetScore ( Target t ) : int
t Target The Target
return int

LastCenter() public method

public LastCenter ( ) : Point
return Point

ObjectTracked() public method

Represents an object that is being tracked
public ObjectTracked ( int ID, Point Pos, Rectangle Size, Rectangle imgSize ) : System
ID int The new ID of the object
Pos Point Position
Size Rectangle Size
imgSize Rectangle
return System

operator() public static method

public static operator ( ) : bool
return bool

Property Details

PosX public_oe property

Percent across the image
public float PosX
return float

PosY public_oe property

Percent across the image
public float PosY
return float

PositionWasFaked public_oe property

Was the position updated with FakeUpdatePos()
public bool PositionWasFaked
return bool

SizeX public_oe property

The position it was at last
public float SizeX
return float

SizeY public_oe property

The size it was at last
public float SizeY
return float