Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * rectfile.h - Rectification info file 00004 * 00005 * Created: Wed Oct 31 11:33:19 2007 00006 * Copyright 2007 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #ifndef __FIREVISION_FVUTILS_RECTIFICATION_RECTFILE_H_ 00025 #define __FIREVISION_FVUTILS_RECTIFICATION_RECTFILE_H_ 00026 00027 #include <fvutils/rectification/rectinfo.h> 00028 #include <fvutils/fileformat/fvfile.h> 00029 #include <vector> 00030 00031 namespace firevision { 00032 #if 0 /* just to make Emacs auto-indent happy */ 00033 } 00034 #endif 00035 00036 class RectificationInfoBlock; 00037 00038 class RectificationInfoFile : public FireVisionDataFile 00039 { 00040 public: 00041 RectificationInfoFile(); 00042 RectificationInfoFile(uint64_t cam_guid, const char *model); 00043 ~RectificationInfoFile(); 00044 00045 /** Vector that is used for maintaining the rectification info blocks. 00046 * For instance use RectificationInfoFile::RectInfoBlockVector::iterator as 00047 * iterator to go through the blocks returned by blocks(). 00048 */ 00049 class RectInfoBlockVector : public std::vector<RectificationInfoBlock *> 00050 { 00051 public: 00052 ~RectInfoBlockVector(); 00053 }; 00054 00055 uint64_t guid(); 00056 const char * model(); 00057 00058 void add_rectinfo_block(RectificationInfoBlock *block); 00059 00060 RectInfoBlockVector * rectinfo_blocks(); 00061 00062 virtual void read(const char *filename); 00063 00064 private: 00065 rectinfo_header_t *_header; 00066 uint64_t _cam_guid; 00067 char *_model; 00068 }; 00069 00070 } // end namespace firevision 00071 00072 #endif