00001 00006 00007 // This software is distributed as part of the Improla library. 00008 // Improla is a library of classes for image processing. 00009 // 00010 // Copyright (c) 2004, B. R. Siva Chandra, India 00011 // 00012 // This program is free software; you can redistribute it and/or 00013 // modify it under the terms of the GNU General Public License 00014 // as published by the Free Software Foundation; either version 2 00015 // of the License, or (at your option) any later version. 00016 // 00017 // This program is distributed in the hope that it will be useful, 00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 // GNU General Public License for more details. 00021 // 00022 // You should have received a copy of the GNU General Public License 00023 // along with this program; if not, write to the Free Software 00024 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00025 // 00026 // In case you would like to contact the author, use the following e-mail 00027 // address: sivachandra_br@yahoo.com 00029 00031 // First Created : 23rd September 2004 00032 // Author : Siva Chandra 00033 // Purpose : Declares classes which encapsulate pixels of 2d rectangular images. 00035 00036 #ifndef __PIXEL_H__ 00037 #define __PIXEL_H__ 00038 00039 namespace iptk 00040 { // Start of namespace brace. 00041 00044 class Pixel 00045 { 00046 public: 00051 Pixel(void); 00052 00057 Pixel(int xcoord, int ycoord, double intensity); 00058 00061 int x; 00062 00065 int y; 00066 00069 double i; 00070 }; 00071 00074 class ColourPixel 00075 { 00076 public: 00081 ColourPixel(void); 00082 00087 ColourPixel(int xcoord, int ycoord, double red, double green, double blue); 00088 00091 int x; 00092 00095 int y; 00096 00099 double r; 00100 00103 double g; 00104 00107 double b; 00108 }; 00109 00110 } // End of namespace brace. 00111 00112 #endif // __ColourPixel_H__ 00113