The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

mixgauss.h

Go to the documentation of this file.
00001 /*
00002  *  mixgauss.h
00003  *  
00004  *
00005  *  Created by Josh Susskind 2003.
00006  *  Copyright (c) 2003 Machine Perception Laboratory
00007  *  University of California San Diego.
00008  *  Please read the disclaimer and notes about redistribution
00009  *  at the end of this file.
00010  *
00011  *  Authors: Josh Susskind, Bret Fortenberry
00012  */
00013 #ifndef _MIXGAUSS_H_
00014 #define _MIXGAUSS_H_
00015 
00016 #include "common.h"
00017 
00018 class mixGauss {
00019 protected:
00020         double getMixProb(const int rgb[], double means[][3], double covariances[][3], double weights[]);
00021 };
00022 
00023 class skinMixGauss : mixGauss{
00024 private:
00025         double m_Means[16][3];
00026         double m_Covariances[16][3];
00027         double m_Weights[16];
00028 
00029 public:
00030         skinMixGauss();
00031         ~skinMixGauss();
00032         double getMixProb(const int rgb[]);
00033         double getMixProb(const RGBTRIPLE rgbt);
00034 };
00035 
00036 class nonSkinMixGauss : mixGauss{
00037 private:
00038         double m_Means[16][3];
00039         double m_Covariances[16][3];
00040         double m_Weights[16];
00041 
00042 public:
00043         nonSkinMixGauss();
00044         ~nonSkinMixGauss();
00045         double getMixProb(const int rgb[]);
00046         double getMixProb(const RGBTRIPLE rgbt);
00047 };
00048 
00049 #endif
00050 
00051 /*
00052  * 
00053  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00054  * 
00055  *    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00056  *    2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
00057  *    3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
00058  * 
00059  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00060  * 
00061  */

Generated on Mon Nov 8 17:07:41 2004 for MPT by  doxygen 1.3.9.1