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

FFImage Class Template Reference

#include <MPColorTrackerImage.h>

Inheritance diagram for FFImage:

Inheritance graph
[legend]
Collaboration diagram for FFImage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FFImage (const bool flipped=FALSE)
 FFImage (const FFImage< RGBTRIPLE > &source, int subs)
 FFImage (const FFImage< T > &other)
 FFImage (T *array_, const int width_, const int height_)
 FFImage (T *array_, const int width_, const int height_, const bool flipped)
 FFImage (const bool flipped=FALSE)
 FFImage (const FFImage< RGBTRIPLE > &source)
 FFImage (T *array_, const int width_, const int height_, const bool flipped)
getPixel (const int x, int y) const
getPixel (const int x, int y) const
bool isFlipped () const
bool isFlipped () const
void setPixel (const int x, int y, const T value)
void setPixel (const int x, int y, const T value)
void setSize (const int width_, const int height_)
void setSize (const int width_, const int height_, const bool flipped_)
void setSize (const int width_, const int height_, const bool flipped_)
 ~FFImage ()
 ~FFImage ()

Private Attributes

bool m_flipped

template<class T>
class FFImage< T >


Constructor & Destructor Documentation

FFImage T *  array_,
const int  width_,
const int  height_,
const bool  flipped
[inline]
 

Definition at line 26 of file MPColorTrackerImage.h.

References m_flipped.

00027     : RImage<T>(array_, width_, height_), m_flipped(flipped){};

FFImage< MPISEARCH_PIXEL_TYPE > const FFImage< RGBTRIPLE > &  source  ) 
 

FFImage const bool  flipped = FALSE  )  [inline]
 

~FFImage  )  [inline]
 

Definition at line 33 of file MPColorTrackerImage.h.

00033 {;};

FFImage T *  array_,
const int  width_,
const int  height_,
const bool  flipped
[inline]
 

Definition at line 24 of file ffimage.h.

References m_flipped.

00025     : RImage<T>(array_, width_, height_), m_flipped(flipped){};

FFImage T *  array_,
const int  width_,
const int  height_
[inline]
 

Definition at line 27 of file ffimage.h.

References m_flipped.

00028     : RImage<T>(array_, width_, height_)
00029         {
00030 #ifdef WIN32
00031                 m_flipped = true;
00032 #else
00033                 m_flipped = false;
00034 #endif
00035         };

FFImage const FFImage< T > &  other  )  [inline]
 

FFImage< float > const FFImage< RGBTRIPLE > &  source,
int  subs
 

FFImage const bool  flipped = FALSE  )  [inline]
 

~FFImage  )  [inline]
 

Definition at line 50 of file ffimage.h.

00050 {;};


Member Function Documentation

T getPixel const int  x,
int  y
const [inline, virtual]
 

Reimplemented from RImage.

Definition at line 52 of file ffimage.h.

References y.

00052                                                 {       
00053         if(m_flipped) y = height-y;
00054         if(x >= 0 && y >= 0 && x < width && y < height)
00055           return array[width * y + x];
00056         else
00057 #ifdef WIN32
00058           return array[0];
00059 #else
00060           return 0;
00061 #endif
00062   };

T getPixel const int  x,
int  y
const [inline, virtual]
 

Reimplemented from RImage.

Definition at line 35 of file MPColorTrackerImage.h.

References y.

Referenced by MPISearchThread::UpdateColorModel().

00035                                                 {       
00036         if(m_flipped) y = height-y;
00037         if(x >= 0 && y >= 0 && x < width && y < height)
00038           return array[width * y + x];
00039         else
00040           return 0;
00041   };

bool isFlipped  )  const [inline]
 

Definition at line 90 of file ffimage.h.

00090 {return m_flipped;};

bool isFlipped  )  const [inline]
 

Definition at line 57 of file MPColorTrackerImage.h.

Referenced by MPColorTools::DrawRGBBox().

00057 {return m_flipped;};

void setPixel const int  x,
int  y,
const T  value
[inline]
 

Definition at line 64 of file ffimage.h.

References y.

00064                                                             {
00065         if(m_flipped) y = height-y;
00066         if(x >= 0 && y >= 0 && x < width && y < height)
00067           array[width * y + x] = value;
00068   };

void setPixel const int  x,
int  y,
const T  value
[inline]
 

Definition at line 43 of file MPColorTrackerImage.h.

References y.

00043                                                             {
00044         if(m_flipped) y = height-y;
00045         if(x >= 0 && y >= 0 && x < width && y < height)
00046           array[width * y + x] = value;
00047   };

void setSize const int  width_,
const int  height_
[inline]
 

Reimplemented from RImage.

Definition at line 78 of file ffimage.h.

References m_flipped.

00078                                                           {
00079         width = width_;
00080         height = height_;
00081         array = new T[width * height];
00082 #ifdef WIN32
00083                 m_flipped = true;
00084 #else
00085                 m_flipped = false;
00086 #endif
00087         my_memory = 1;
00088   }

void setSize const int  width_,
const int  height_,
const bool  flipped_
[inline]
 

Definition at line 70 of file ffimage.h.

References m_flipped.

00070                                                                                {
00071         width = width_;
00072         height = height_;
00073         array = new T[width * height];
00074         m_flipped = flipped_;
00075         my_memory = 1;
00076   }

void setSize const int  width_,
const int  height_,
const bool  flipped_
[inline]
 

Definition at line 49 of file MPColorTrackerImage.h.

References m_flipped.

00049                                                                                {
00050         width = width_;
00051         height = height_;
00052         array = new T[width * height];
00053         m_flipped = flipped_;
00054         my_memory = 1;
00055   }


Member Data Documentation

bool m_flipped [private]
 

Definition at line 92 of file ffimage.h.

Referenced by FFImage(), and setSize().


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