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

mac/build/mpisearch.framework/Versions/Current/Headers/roi.h

Go to the documentation of this file.
00001 /*
00002  * roi.h
00003  *
00004  * Copyright (c) 2002 Machine Perception Laboratory
00005  * University of California San Diego.
00006  * Please read the disclaimer and notes about redistribution
00007  * at the end of this file.
00008  *
00009  * Authors: Ian Fasel
00010  */
00011 #ifndef _ROI_H_
00012 #define _ROI_H_
00013 
00014 #include <vector>
00015 
00016 class ROI;
00017 #include <iostream.h>
00018 ostream& operator<< (ostream& s, const ROI& roi);
00019 
00020 #define MAX_RANGE 32767
00021 #define MIN_RANGE -32767
00022 
00023  
00024 class ROI{
00025   friend ostream& operator<<(ostream& s, const ROI& roi); 
00026  public:
00027   ROI(int min_x=MIN_RANGE, int max_x=MAX_RANGE, int min_y=MIN_RANGE, int max_y=MAX_RANGE,
00028       int min_scale=MIN_RANGE, int max_scale=MAX_RANGE);
00029   void reset();
00030   ROI& operator=(const ROI &roi);
00031 
00032   int m_min_x, m_max_x, m_min_y, m_max_y, m_min_scale, m_max_scale, m_limit_scale;
00033   std::vector< int > vmin_x;
00034   std::vector< int > vmin_y;
00035   std::vector< int > vmax_x;
00036   std::vector< int > vmax_y;
00037 };
00038 
00039 
00040 
00041 #endif
00042 
00043 /*
00044  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00045  *
00046  *    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00047  *    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.
00048  *    3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
00049  *
00050  * 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.
00051  *
00052  */
00053 

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