00001 /** 00002 * @file LowResImage.h 00003 * 00004 * Declaration of class LowResImage 00005 * 00006 * @author Max Risler 00007 */ 00008 00009 #ifndef __LowResImage_h_ 00010 #define __LowResImage_h_ 00011 00012 #include "Image.h" 00013 00014 class LowResImage; 00015 00016 /** 00017 * Streaming operator that writes a low resolution image to a stream. 00018 * @param stream The stream to write on. 00019 * @param lrImage The LowResImage object. 00020 * @return The stream. 00021 */ 00022 Out& operator<<(Out& stream,const LowResImage& lrImage); 00023 00024 /** 00025 * Streaming operator that reads a low resolution image from a stream. 00026 * @param stream The stream to read from. 00027 * @param lrImage The LowResImage object. 00028 * @return The stream. 00029 */ 00030 In& operator>>(In& stream,LowResImage& lrImage); 00031 00032 /** 00033 * Definition of a class for streaming images in low resolution i.e. without the three additional y channels. 00034 */ 00035 class LowResImage 00036 { 00037 private: 00038 /** 00039 * A reference to the image 00040 */ 00041 Image ℑ 00042 00043 public: 00044 /** 00045 * Constructor. 00046 */ 00047 LowResImage(Image& src) : image(src) {} 00048 00049 friend Out& operator<<(Out& stream,const LowResImage& lrImage); 00050 friend In& operator>>(In& stream,LowResImage& lrImage); 00051 }; 00052 00053 #endif //__LowResImage_h_
1.3.6