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

TSquare Class Template Reference

#include <square.h>

Inheritance diagram for TSquare:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool intersect (TSquare< T > *)
bool intersect (TSquare< T > *)
bool intersect (TSquare< T > *)
bool intersect (TSquare< T > *)
bool isValid () const
bool isValid () const
bool isValid () const
bool isValid () const
TSquareoperator *= (T val)
TSquareoperator *= (T val)
TSquareoperator *= (T val)
TSquareoperator *= (T val)
TSquare operator+ (T val) const
TSquare operator+ (T val) const
TSquare operator+ (T val) const
TSquare operator+ (T val) const
TSquareoperator+= (TSquare< double > &other)
TSquareoperator+= (TSquare< double > &other)
TSquareoperator+= (TSquare< double > &other)
TSquareoperator+= (TSquare< double > &other)
TSquare operator- (T val) const
TSquare operator- (T val) const
TSquare operator- (T val) const
TSquare operator- (T val) const
TSquare operator/ (T val) const
TSquare operator/ (T val) const
TSquare operator/ (T val) const
TSquare operator/ (T val) const
template<>
 TSquare (TSquare< double > &other)
 TSquare (TSquare< double > &other)
 TSquare ()
 TSquare (T size_, T x_, T y_, T scale_)
 TSquare (TSquare< double > &other)
 TSquare ()
 TSquare (T size_, T x_, T y_, T scale_)
 TSquare (TSquare< double > &other)
 TSquare ()
 TSquare (T size_, T x_, T y_, T scale_)
 TSquare (TSquare< double > &other)
 TSquare ()
 TSquare (T size_, T x_, T y_, T scale_)

Public Attributes

scale
size
x
y

template<class T>
class TSquare< T >


Constructor & Destructor Documentation

TSquare size_,
x_,
y_,
scale_
 

Definition at line 82 of file mac/build/mpisearch.framework/Headers/square.h.

References scale, size, x, and y.

00083 {
00084   size = size_;
00085   x = x_;
00086   y = y_;
00087   scale = scale_;
00088 }

TSquare  )  [inline]
 

Definition at line 23 of file mac/build/mpisearch.framework/Headers/square.h.

00023 :x(0),y(0),size(0),scale(0){};

TSquare TSquare< double > &  other  )  [inline]
 

Definition at line 24 of file mac/build/mpisearch.framework/Headers/square.h.

00024                                          {
00025                 x = other.x;
00026                 y = other.y;
00027                 size = other.size;
00028                 scale = other.scale;
00029         }

TSquare size_,
x_,
y_,
scale_
 

TSquare  )  [inline]
 

Definition at line 23 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00023 :x(0),y(0),size(0),scale(0){};

TSquare TSquare< double > &  other  )  [inline]
 

Definition at line 24 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00024                                          {
00025                 x = other.x;
00026                 y = other.y;
00027                 size = other.size;
00028                 scale = other.scale;
00029         }

TSquare size_,
x_,
y_,
scale_
 

TSquare  )  [inline]
 

Definition at line 23 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00023 :x(0),y(0),size(0),scale(0){};

TSquare TSquare< double > &  other  )  [inline]
 

Definition at line 24 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00024                                          {
00025                 x = other.x;
00026                 y = other.y;
00027                 size = other.size;
00028                 scale = other.scale;
00029         }

TSquare size_,
x_,
y_,
scale_
 

TSquare  )  [inline]
 

Definition at line 23 of file src/square.h.

00023 :x(0),y(0),size(0),scale(0){};

TSquare TSquare< double > &  other  )  [inline]
 

Definition at line 24 of file src/square.h.

00024                                          {
00025                 x = other.x;
00026                 y = other.y;
00027                 size = other.size;
00028                 scale = other.scale;
00029         }

TSquare TSquare< double > &  other  ) 
 

Definition at line 14 of file square.cc.

References scale, size, x, and y.

00014                                            {
00015         x = (int) other.x;
00016         y = (int) other.y;
00017         size = (int) other.size;
00018         scale = (int) other.scale;
00019 }


Member Function Documentation

bool intersect TSquare< T > *   ) 
 

bool intersect TSquare< T > *   ) 
 

bool intersect TSquare< T > *   ) 
 

bool intersect TSquare< T > *   ) 
 

Definition at line 91 of file mac/build/mpisearch.framework/Headers/square.h.

References size, Square, x, and y.

00092 {
00093   Square *smaller, *bigger; 
00094   
00095   if( size >= other->size) {
00096     bigger = this;
00097     smaller = other;
00098   } else {
00099     bigger = other;
00100     smaller = this;
00101   }
00102 
00103   if(smaller->x + smaller->size >= bigger->x && smaller->x <= bigger->x + bigger->size)
00104     if(smaller->y + smaller->size >= bigger->y && smaller->y <= bigger->y + bigger->size)
00105       return 1;
00106 
00107   return 0;
00108 }

bool isValid  )  const [inline]
 

Definition at line 63 of file src/square.h.

00063 { return (x || y || size || scale);}

bool isValid  )  const [inline]
 

Definition at line 63 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00063 { return (x || y || size || scale);}

bool isValid  )  const [inline]
 

Definition at line 63 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00063 { return (x || y || size || scale);}

bool isValid  )  const [inline]
 

Definition at line 63 of file mac/build/mpisearch.framework/Headers/square.h.

00063 { return (x || y || size || scale);}

TSquare& operator *= val  )  [inline]
 

Definition at line 48 of file src/square.h.

00048                                       {
00049       x *= val;
00050       y *= val;
00051       size *= val;
00052           scale *= val;
00053       return *this;
00054     }

TSquare& operator *= val  )  [inline]
 

Definition at line 48 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00048                                       {
00049       x *= val;
00050       y *= val;
00051       size *= val;
00052           scale *= val;
00053       return *this;
00054     }

TSquare& operator *= val  )  [inline]
 

Definition at line 48 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00048                                       {
00049       x *= val;
00050       y *= val;
00051       size *= val;
00052           scale *= val;
00053       return *this;
00054     }

TSquare& operator *= val  )  [inline]
 

Definition at line 48 of file mac/build/mpisearch.framework/Headers/square.h.

00048                                       {
00049       x *= val;
00050       y *= val;
00051       size *= val;
00052           scale *= val;
00053       return *this;
00054     }

TSquare operator+ val  )  const [inline]
 

Definition at line 30 of file src/square.h.

00030                                                {
00031       TSquare<T> c = *this;
00032       c.size += val; c.x += val; c.y += val;
00033           c.scale += val;
00034       return c;
00035         }

TSquare operator+ val  )  const [inline]
 

Definition at line 30 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00030                                                {
00031       TSquare<T> c = *this;
00032       c.size += val; c.x += val; c.y += val;
00033           c.scale += val;
00034       return c;
00035         }

TSquare operator+ val  )  const [inline]
 

Definition at line 30 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00030                                                {
00031       TSquare<T> c = *this;
00032       c.size += val; c.x += val; c.y += val;
00033           c.scale += val;
00034       return c;
00035         }

TSquare operator+ val  )  const [inline]
 

Definition at line 30 of file mac/build/mpisearch.framework/Headers/square.h.

00030                                                {
00031       TSquare<T> c = *this;
00032       c.size += val; c.x += val; c.y += val;
00033           c.scale += val;
00034       return c;
00035         }

TSquare& operator+= TSquare< double > &  other  )  [inline]
 

Definition at line 55 of file src/square.h.

00055                                                        {
00056                 x += other.x;
00057                 y += other.y;
00058                 size += other.size;
00059                 scale += other.scale;
00060                 return *this;
00061         }

TSquare& operator+= TSquare< double > &  other  )  [inline]
 

Definition at line 55 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00055                                                        {
00056                 x += other.x;
00057                 y += other.y;
00058                 size += other.size;
00059                 scale += other.scale;
00060                 return *this;
00061         }

TSquare& operator+= TSquare< double > &  other  )  [inline]
 

Definition at line 55 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00055                                                        {
00056                 x += other.x;
00057                 y += other.y;
00058                 size += other.size;
00059                 scale += other.scale;
00060                 return *this;
00061         }

TSquare& operator+= TSquare< double > &  other  )  [inline]
 

Definition at line 55 of file mac/build/mpisearch.framework/Headers/square.h.

00055                                                        {
00056                 x += other.x;
00057                 y += other.y;
00058                 size += other.size;
00059                 scale += other.scale;
00060                 return *this;
00061         }

TSquare operator- val  )  const [inline]
 

Definition at line 36 of file src/square.h.

00036                                                {
00037       TSquare<T> c = *this;
00038       c.size -= val; c.x -= val; c.y -= val;
00039           c.scale -= val;
00040       return c;
00041         }

TSquare operator- val  )  const [inline]
 

Definition at line 36 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00036                                                {
00037       TSquare<T> c = *this;
00038       c.size -= val; c.x -= val; c.y -= val;
00039           c.scale -= val;
00040       return c;
00041         }

TSquare operator- val  )  const [inline]
 

Definition at line 36 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00036                                                {
00037       TSquare<T> c = *this;
00038       c.size -= val; c.x -= val; c.y -= val;
00039           c.scale -= val;
00040       return c;
00041         }

TSquare operator- val  )  const [inline]
 

Definition at line 36 of file mac/build/mpisearch.framework/Headers/square.h.

00036                                                {
00037       TSquare<T> c = *this;
00038       c.size -= val; c.x -= val; c.y -= val;
00039           c.scale -= val;
00040       return c;
00041         }

TSquare operator/ val  )  const [inline]
 

Definition at line 42 of file src/square.h.

00042                                            {
00043       TSquare<T> c = *this;
00044       c.size /= val; c.x /= val; c.y /= val;
00045           c.scale /= val;
00046       return c;
00047     }

TSquare operator/ val  )  const [inline]
 

Definition at line 42 of file mac/build/mpisearch.framework/Versions/Current/Headers/square.h.

00042                                            {
00043       TSquare<T> c = *this;
00044       c.size /= val; c.x /= val; c.y /= val;
00045           c.scale /= val;
00046       return c;
00047     }

TSquare operator/ val  )  const [inline]
 

Definition at line 42 of file mac/build/mpisearch.framework/Versions/A/Headers/square.h.

00042                                            {
00043       TSquare<T> c = *this;
00044       c.size /= val; c.x /= val; c.y /= val;
00045           c.scale /= val;
00046       return c;
00047     }

TSquare operator/ val  )  const [inline]
 

Definition at line 42 of file mac/build/mpisearch.framework/Headers/square.h.

00042                                            {
00043       TSquare<T> c = *this;
00044       c.size /= val; c.x /= val; c.y /= val;
00045           c.scale /= val;
00046       return c;
00047     }


Member Data Documentation

T scale
 

Definition at line 67 of file src/square.h.

Referenced by MPISearchObjectDetector::AdjSearchWindow(), EyeObject::EyeObject(), FaceObject::FaceObject(), TSquare< double >::operator+(), TSquare< double >::operator+=(), TSquare< double >::operator-(), TSquare< double >::operator/(), ObjectList::simplify(), TSquare< double >::TSquare(), and TSquare().

T size
 

Definition at line 66 of file src/square.h.

Referenced by MPISearchObjectDetector::AdjSearchWindow(), MPISearchThread::CompareColorMPIMeans(), decreasing(), SingleShotColorSearch::displayResults(), MPColorTracker::DoSearch(), DrawBoxes(), FilterInterface::DrawBoxes(), EyeObject::EyeObject(), FaceObject::FaceObject(), FindFacesInGWorld::FindFaces:, MPColorTracker::GetColorBox(), ColorSearchParams::Initialize(), intersect(), ProbColorSearch::logPrior(), main(), MPColorTracker::MPColorTracker(), TSquare< double >::operator+(), TSquare< double >::operator+=(), TSquare< double >::operator-(), TSquare< double >::operator/(), operator<(), operator>(), ProbColorSearch::probSearch(), ObjectList::simplify(), square(), TSquare< double >::TSquare(), TSquare(), and MPISearchThread::UpdateColorModel().

T x
 

Definition at line 64 of file src/square.h.

Referenced by MPISearchObjectDetector::AdjSearchWindow(), MPISearchThread::CompareColorMPIMeans(), SingleShotColorSearch::displayResults(), MPColorTracker::DoSearch(), DrawBoxes(), FilterInterface::DrawBoxes(), EyeObject::EyeObject(), FaceObject::FaceObject(), FindFacesInGWorld::FindFaces:, MPColorTracker::GetColorBox(), ColorSearchParams::Initialize(), intersect(), ProbColorSearch::logPrior(), main(), MPColorTracker::MPColorTracker(), TSquare< double >::operator+(), TSquare< double >::operator+=(), TSquare< double >::operator-(), TSquare< double >::operator/(), ProbColorSearch::probSearch(), ObjectList::simplify(), square(), TSquare< double >::TSquare(), TSquare(), and MPISearchThread::UpdateColorModel().

T y
 

Definition at line 65 of file src/square.h.

Referenced by MPISearchObjectDetector::AdjSearchWindow(), MPISearchThread::CompareColorMPIMeans(), SingleShotColorSearch::displayResults(), MPColorTracker::DoSearch(), DrawBoxes(), FilterInterface::DrawBoxes(), EyeObject::EyeObject(), FaceObject::FaceObject(), FindFacesInGWorld::FindFaces:, MPColorTracker::GetColorBox(), ColorSearchParams::Initialize(), intersect(), ProbColorSearch::logPrior(), main(), MPColorTracker::MPColorTracker(), TSquare< double >::operator+(), TSquare< double >::operator+=(), TSquare< double >::operator-(), TSquare< double >::operator/(), ProbColorSearch::probSearch(), ObjectList::simplify(), square(), TSquare< double >::TSquare(), TSquare(), and MPISearchThread::UpdateColorModel().


The documentation for this class was generated from the following files:
Generated on Mon Nov 8 17:08:42 2004 for MPT by  doxygen 1.3.9.1