LTI-Lib latest version v1.9 - last update 10 Apr 2010

ltiMergergIToImage.h

00001 /*
00002  * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
00003  * Lehrstuhl fuer Technische Informatik, RWTH-Aachen, Germany
00004  *
00005  * This file is part of the LTI-Computer Vision Library (LTI-Lib)
00006  *
00007  * The LTI-Lib is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License (LGPL)
00009  * as published by the Free Software Foundation; either version 2.1 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * The LTI-Lib is distributed in the hope that it will be
00013  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
00014  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with the LTI-Lib; see the file LICENSE.  If
00019  * not, write to the Free Software Foundation, Inc., 59 Temple Place -
00020  * Suite 330, Boston, MA 02111-1307, USA.
00021  */
00022 
00023 
00024 /*----------------------------------------------------------------
00025  * project ....: LTI Digital Image/Signal Processing Library
00026  * file .......: ltiMergergIToImage.h
00027  * authors ....: Pablo Alvarado, Stefan Syberichs, Thomas Rusert
00028  * organization: LTI, RWTH Aachen
00029  * creation ...: 19.04.99
00030  * revisions ..: $Id: ltiMergergIToImage.h,v 1.3 2006/02/08 11:30:59 ltilib Exp $
00031  */
00032 
00033 #ifndef _LTI_MERGE_RGI_TO_IMAGE_H_
00034 #define _LTI_MERGE_RGI_TO_IMAGE_H_
00035 
00036 #include "ltiMergeImage.h"
00037 
00038 namespace lti {
00039 
00040   /**
00041    * Merge chromaticity channels rgI
00042    *
00043    * @ingroup gColor
00044    */
00045   class mergergIToImage : public mergeImage {
00046   public:
00047     /**
00048      * returns the name of this type
00049      */
00050     virtual const char* getTypeName() const;
00051 
00052     /**
00053      * returns a pointer to a clone of the functor.
00054      */
00055     virtual functor* clone() const;
00056 
00057     /**
00058      * merge the chromacity channels r and g
00059      * and intensity channel into a pixel
00060      * @param r the chromacity value
00061      * @param g the chromacity value
00062      * @param I the intensity value
00063      * @param pixel the pixel to be splitted
00064      */
00065     virtual bool apply(const matrix<float>& r,
00066                        const matrix<float>& g,
00067                        const matrix<float>& I,
00068                        image& pixel) const;
00069 
00070     /**
00071      * merge the chromacity channels r and g
00072      * and intensity channel into a pixel
00073      * @param r the chromacity value
00074      * @param g the chromacity value
00075      * @param I the intensity value
00076      * @param pixel the pixel to be splitted
00077      */
00078     virtual bool apply(const channel8& r,
00079                        const channel8& g,
00080                        const channel8& I,
00081                        image& pixel) const;
00082 
00083     /**
00084      * merge the chromacity values r and g and intensity value
00085      * into a pixel
00086      * @param r the chromacity value
00087      * @param g the chromacity value
00088      * @param I the intensity value
00089      * @param pixel the pixel to be splitted
00090      */
00091     virtual bool apply(const float& r,
00092            const float& g,
00093            const float& I,
00094            rgbPixel& pixel) const;
00095 
00096     /**
00097      * merge the chromacity values r and g and intensity value
00098      * into a pixel
00099      * @param r the chromacity value
00100      * @param g the chromacity value
00101      * @param I the intensity value
00102      * @param pixel the pixel to be splitted
00103      */
00104     virtual bool apply(const ubyte& r,
00105            const ubyte& g,
00106            const ubyte& I,
00107            rgbPixel& pixel) const;
00108 
00109   };
00110 }
00111 
00112 #endif

Generated on Sat Apr 10 15:25:51 2010 for LTI-Lib by Doxygen 1.6.1