The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MPColorResults Struct Reference

#include <MPColorResults.h>

List of all members.

Public Member Functions

int getHeight ()
int getMeanX ()
int getMeanY ()
int getWidth ()
 MPColorResults ()

Public Attributes

int x1
int x2
int y1
int y2


Constructor & Destructor Documentation

MPColorResults  )  [inline]
 

Definition at line 26 of file MPColorResults.h.

00026                          {
00027                 x1 = y1 = 0;
00028                 x2 = y2 = -1;
00029         }


Member Function Documentation

int getHeight  )  [inline]
 

Definition at line 43 of file MPColorResults.h.

00043                                {
00044                 return (y2 - y1);
00045         }

int getMeanX  )  [inline]
 

Definition at line 31 of file MPColorResults.h.

Referenced by MPColorTracker::MPIUpdate().

00031                               {
00032                 return (x1+x2)>>1;
00033         }

int getMeanY  )  [inline]
 

Definition at line 35 of file MPColorResults.h.

Referenced by MPColorTracker::MPIUpdate().

00035                               {
00036                 return (y1+y2)>>1;
00037         }

int getWidth  )  [inline]
 

Definition at line 39 of file MPColorResults.h.

Referenced by MPColorTracker::GetColorBox().

00039                               {
00040                 return (x2 - x1);
00041         }


Member Data Documentation

int x1
 

Definition at line 21 of file MPColorResults.h.

Referenced by MPColorTracker::DoSearch(), and MPColorTracker::GetColorBox().

int x2
 

Definition at line 23 of file MPColorResults.h.

Referenced by MPColorTracker::DoSearch().

int y1
 

Definition at line 22 of file MPColorResults.h.

Referenced by MPColorTracker::DoSearch(), and MPColorTracker::GetColorBox().

int y2
 

Definition at line 24 of file MPColorResults.h.

Referenced by MPColorTracker::DoSearch().


The documentation for this struct was generated from the following file:
Generated on Mon Nov 8 17:08:33 2004 for MPT by  doxygen 1.3.9.1