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

eyeobject.cpp

Go to the documentation of this file.
00001 /* 
00002  *  EYEOBJECT.cpp
00003  *
00004  *  Created by Bret Fortenberry on Aug 27, 2003.
00005  *  Fixes: 
00006  * 
00007  *  Copyright (c) 2003 Machine Perception Laboratory 
00008  *  University of California San Diego.
00009  * 
00010  * Please read the disclaimer and notes about redistribution 
00011  * at the end of this file.
00012  *  
00013  */
00014 
00015 #include "eyeobject.h"
00016 
00017 
00018 EyeObject::EyeObject(feature_type eye){
00019         feature = eye;
00020 }
00021                  
00022 EyeObject::EyeObject(feature_type eye, float x_in, float y_in, float xSize_in, float ySize_in, float scale_in){
00023         x = x_in;
00024         y = y_in;
00025         xSize = xSize_in;
00026         ySize = ySize_in;
00027         scale = scale_in;
00028         feature = eye;
00029 }
00030 
00031 EyeObject::EyeObject(feature_type eye, float x_in, float y_in, float scale_in, double activation_in, double cascade_in){
00032         x = x_in;
00033         y = y_in;
00034         scale = scale_in;
00035         activation = activation_in;
00036         cascade_level = cascade_in;
00037         feature = eye;
00038 }
00039 
00040 EyeObject::EyeObject(const EyeObject &thelist)
00041 {
00042         objects = thelist.objects;
00043         x = thelist.x;
00044         y = thelist.y;
00045         xSize = thelist.xSize;
00046         ySize = thelist.ySize;
00047         scale = thelist.scale;
00048         feature = thelist.feature;
00049         activation = thelist.activation;
00050 }
00051 
00052 EyeObject::EyeObject(TSquare<float> &square, feature_type eye)
00053 {
00054         x = square.x;
00055         y = square.y;
00056         xSize = square.size;
00057         ySize = square.size;
00058         scale = square.scale;
00059         feature = eye;
00060 }
00061 
00062 EyeObject::~EyeObject() {}
00063 
00064 
00065 
00066 
00067 /*
00068  * 
00069  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00070  * 
00071  *    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00072  *    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.
00073  *    3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
00074  * 
00075  * 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.
00076  * 
00077  */

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