00001 #ifndef _IMAGE_H
00002 #define _IMAGE_H
00003
00004 #include <OpenTracker/dllinclude.h>
00005 #include <OpenTracker/OpenTracker.h>
00006
00007 namespace ot {
00008
00009 class OPENTRACKER_API Image
00010 {
00011 public:
00012 Image();
00013 Image(int x,int y, int p,void* pixel_data);
00014
00015
00016
00017
00018
00019
00020 int size() const
00021 {
00022 return xsize*ysize*pixelsize;
00023 }
00024
00025 void SetSize(int x,int y,int p);
00026
00027 void *image_ptr;
00028 private:
00029 int xsize;
00030 int ysize;
00031 int pixelsize;
00032
00033 friend OPENTRACKER_API std::ostream& operator<<(std::ostream& os, const Image& object);
00034 friend OPENTRACKER_API std::istream& operator>>(std::istream& is, Image& object);
00035
00036 };
00037
00038 OPENTRACKER_API std::ostream& operator<<(std::ostream& os, const Image& object);
00039 OPENTRACKER_API std::istream& operator>>(std::istream& is, Image& object);
00040
00041
00042
00043 }
00044 #endif