00001 /************************************************************************* 00008 * 00009 * Source code for Real Time Image Library (libRTImage) 00010 * 00011 * Leeds Vision Group give permission for this code to be copied, modified 00012 * and distributed within the University of Leeds subject to the following 00013 * conditions:- 00014 * 00015 * - The code is not to be used for commercial gain. 00016 * - The code and use thereof will be attributed to the authors where 00017 * appropriate (including demonstrations which rely on it's use). 00018 * - All modified, distributions of the source files will retain this header. 00019 * 00020 ****************************************************************************/ 00021 00022 #ifndef IMAGE_MAGICK_SOURCE_H 00023 #define IMAGE_MAGICK_SOURCE_H 00024 00025 #include "ImageSource.h" 00026 #include "Image.h" 00027 00028 class ImageMagicKSource : public ImageSource 00039 { 00040 private: 00041 unsigned int width ; 00042 unsigned int height ; 00043 void *img ; 00044 bool ok ; 00045 public: 00046 ImageMagicKSource(char *filename, char* prog_path) ; 00047 ImageMagicKSource(char *filename) ; 00048 ~ImageMagicKSource() ; 00049 00050 bool InitOK() { return ok ; } 00051 00052 void get_size(unsigned int &w, unsigned int &h) ; 00053 virtual ImageSource& operator>> (Image &) ; 00054 virtual ImageSource& operator>> (ImageRGB &) ; 00055 virtual ImageSource& operator>> (ImageGrey &) ; 00056 00057 } ; 00058 00059 #endif
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001