Main Page | Class Hierarchy | Class List | File List | Class Members

arithmetic.h

00001 /* 00002 * This file is part of libCP 00003 * FILE: arithmetic.h 00004 * AUTHOR: Harald Studer <hs@lexip.ch> 00005 * Mathias Herzog <mathu@gmx.ch> 00006 * 00007 * 00008 * Copyright (c) 2004, The libCP project 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your opinion) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; see the file LICENSE. If not, write to 00022 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00023 * Boston, MA 02111-1307, USA. 00024 */ 00025 #ifndef _LIBCP_ARITHMETIC_H_ 00026 #define _LIBCP_ARITHMETIC_H_ 00027 00028 using namespace std; 00029 00030 #include "image.h" 00031 00032 namespace LIBCP{ 00033 00034 00040 class Arithmetic 00041 { 00042 public: 00043 static int addImage( Image* dst, Image* first, Image* second ); 00044 static int addImage( Image* dst, Image* src, int constant ); 00045 static int subImage( Image* dst, Image* first, Image* second ); 00046 static int mulImage( Image* dst, Image* first, Image* second ); 00047 static int mulImage( Image* dst, Image* src, int factor ); 00048 static int arithmeticMaximum( Image* dst, Image* first, Image* second ); 00049 static int arithmeticMinimum( Image* dst, Image* first, Image* second ); 00050 static int andImage( Image* dst, Image* first, Image* second ); 00051 static int orImage( Image* dst, Image* first, Image* second ); 00052 static int xorImage( Image* dst, Image* first, Image* second ); 00053 static int notImage( Image* dst, Image* src ); 00054 };//end of class arithmetic definition 00055 00056 } //end of namespace LIBCP 00057 00058 #endif /* _LIBCP_ARITHMETIC_H_ */

Generated on Wed May 26 16:43:52 2004 for libcp by doxygen 1.3.7