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

Representations/Perception/GrayScaleImage.h

Go to the documentation of this file.
00001 /**
00002  * @file GrayScaleImage.h
00003  * 
00004  * Declaration of class GrayScaleImage
00005  */ 
00006 
00007 #ifndef __GrayScaleImage_h_
00008 #define __GrayScaleImage_h_
00009 
00010 #include "CameraInfo.h"
00011 #include "Image.h"
00012 
00013 // forward declaration
00014 class GrayScaleImage;
00015 
00016 #include "Tools/Streams/InOut.h"
00017 #include "Tools/ColorClasses.h"
00018 
00019 /**
00020 * Platform independend definition of an image class
00021 */
00022 class GrayScaleImage
00023 {
00024 public:
00025   /** constructs an image */
00026   GrayScaleImage();
00027 
00028   /** deconstructs an image */
00029   ~GrayScaleImage();
00030 
00031   void copyChannel(const Image& yuvImage, int channel);
00032 
00033   GrayScaleImage& operator=(const GrayScaleImage& other) 
00034   {
00035     memcpy((void *)this, (const void *)&other, sizeof(GrayScaleImage));
00036     return *this;
00037   }
00038   CameraInfo cameraInfo;
00039   unsigned char image[cameraResolutionHeight_ERS7][cameraResolutionWidth_ERS7];
00040 };
00041 
00042 /**
00043  * Streaming operator that writes a GrayScaleImage to a stream.
00044  * @param stream The stream to write on.
00045  * @param grayScaleImage The GrayScaleImage object.
00046  * @return The stream.
00047  */ 
00048 Out& operator<<(Out& stream, const GrayScaleImage& grayScaleImage);
00049 
00050 /**
00051  * Streaming operator that reads a GrayScaleImage to a stream.
00052  * @param stream The stream to read from.
00053  * @param grayScaleImage The GrayScaleImage object.
00054  * @return The stream.
00055  */ 
00056 In& operator>>(In& stream, GrayScaleImage& grayScaleImage);
00057 
00058 #endif //__GrayScaleImage_h_

Generated on Mon Mar 20 22:00:03 2006 for GT2005 by doxygen 1.3.6