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

MPImageWrapper.h

Go to the documentation of this file.
00001 /*
00002  *  MPColorTracker.cpp
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
00012  */
00013 #ifndef __MPIMAGEWRAPPER_H__
00014 #define __MPIMAGEWRAPPER_H__
00015 
00016 #include "preprocessor.h"
00017 
00018 /* ================================================================ */
00019 
00020 struct MPImageWrapper {
00021         int width;
00022         int height;
00023         int numpixels;
00024         int datalength;
00025         unsigned char *rgbimage;
00026         MPImageWrapper(int w=0, int h=0, int np = 0, int dl = 0) {
00027                 width = w;
00028                 height = h;
00029                 numpixels = np;
00030                 datalength = dl;
00031         }
00032 };
00033 
00034 /* ================================================================ */
00035 
00036 #endif __MPIMAGEWRAPPER_H__
00037 
00038 
00039 
00040 /*
00041  * 
00042  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00043  * 
00044  *    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00045  *    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.
00046  *    3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
00047  * 
00048  * 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.
00049  * 
00050  */

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