C# Class Detector.Tracking.ObjectTracked

Afficher le fichier Open project: AshleighAdams/Detector Class Usage Examples

Méthodes publiques

Свойство Type Description
PosX float
PosY float
PositionWasFaked bool
SizeX float
SizeY float

Méthodes publiques

Méthode 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

Méthode Description
Distance ( int x, int y, int a, int b ) : int

Calculate the distance between to points

Method Details

Center() public méthode

Center of an object
public Center ( ) : Point
Résultat Point

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

FakeUpdatePos() public méthode

Fake the target movements
public FakeUpdatePos ( ) : void
Résultat void

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetScore() public méthode

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

LastCenter() public méthode

public LastCenter ( ) : Point
Résultat Point

ObjectTracked() public méthode

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
Résultat System

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

PosX public_oe property

Percent across the image
public float PosX
Résultat float

PosY public_oe property

Percent across the image
public float PosY
Résultat float

PositionWasFaked public_oe property

Was the position updated with FakeUpdatePos()
public bool PositionWasFaked
Résultat bool

SizeX public_oe property

The position it was at last
public float SizeX
Résultat float

SizeY public_oe property

The size it was at last
public float SizeY
Résultat float