//======================= // // Class to represent a greyscale image // #ifndef __image__ #define __image__ 1 #include class Image { private: int m_date ; // Date at which picture recorded std::vector m_pixels ; // vector to hold pixel array intensity data public: // Constructor Image( int date, std::vector pixels ) ; // simple accessors virtual int size( ) ; // Number of pixels in image virtual int date( ) ; // Data at which image was recorded virtual int intensity( int position ) ; // Intensity at a given position // To find peak pixel information in an image virtual int peakPosition( ) ; virtual int peakValue() ; // Image arithmetic virtual Image& operator+=( Image& rhs ) ; // Print out virtual void print() ; }; #endif