Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

ImageBase.h

Go to the documentation of this file.
00001 /*************************************************************************
00009  *
00010  * Source code for Real Time Image Library (libRTImage) 
00011  *
00012  * Leeds Vision Group give permission for this code to be copied, modified 
00013  * and distributed within the University of Leeds subject to the following
00014  * conditions:-
00015  *
00016  * - The code is not to be used for commercial gain.
00017  * - The code and use thereof will be attributed to the authors where
00018  *   appropriate (including demonstrations which rely on it's use).
00019  * - All modified, distributions of the source files will retain this header.
00020  *
00021  ****************************************************************************/
00022 
00023 #ifndef IMAGE_BASE_H
00024 #define IMAGE_BASE_H
00025 
00026 // Enumeration for save method
00027 
00028 enum FileFormat{ FORMAT_BMP_24,
00029                  FORMAT_BMP_RC,
00030                  FORMAT_BMP_MONO,
00031                  FORMAT_BMP_ANY
00032 };
00033 
00034 // Define Grey == Reduced Colour
00035 #define FORMAT_BMP_GREY FORMAT_BMP_RC
00036 
00037 
00038 class ImageBase
00047 {
00048 protected:
00049 /* Protected Data Definitions */
00050 
00051         unsigned int     width;         
00052         unsigned int     height;        
00053 
00054 public:
00055 /* Public Methods */
00057         unsigned int    get_width()  { return width;  }
00058 
00060         unsigned int    get_height() { return height; }
00061 
00062 protected:
00063 /* Protected Methods */
00064 
00066         ImageBase(ImageBase& img) 
00067          : width(img.width), height(img.height) { }
00068         
00070         ImageBase(unsigned int w, unsigned int h) 
00071          : width(w), height(h) { }
00072 
00074         ImageBase() 
00075          : width(0), height(0) { }
00076 
00077 };
00078 
00079 
00080 #endif  // IMAGE_BASE_H

Generated at Fri Aug 13 17:29:21 2004 for libRTImage by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001