00001 /************************************************************************************************** 00002 Software License Agreement (BSD License) 00003 00004 Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt 00005 All rights reserved. 00006 00007 Redistribution and use in source and binary forms, with or without modification, are permitted 00008 provided that the following conditions are met: 00009 00010 *Redistributions of source code must retain the above copyright notice, this list of 00011 conditions and the following disclaimer. 00012 *Redistributions in binary form must reproduce the above copyright notice, this list of 00013 conditions and the following disclaimer in the documentation and/or other materials provided 00014 with the distribution. 00015 *Neither the name of the University of Aveiro nor the names of its contributors may be used to 00016 endorse or promote products derived from this software without specific prior written permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 00019 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00020 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 00021 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00022 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00024 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00025 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 ***************************************************************************************************/ 00027 /* cameraInfoOpt.h */ 00028 00029 /* File autogenerated by gengetopt version 2.18 */ 00030 00031 #ifndef CAMERAINFOOPT_H 00032 #define CAMERAINFOOPT_H 00033 00034 /* If we use autoconf. */ 00035 #ifdef HAVE_CONFIG_H 00036 #include "config.h" 00037 #endif 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif /* __cplusplus */ 00042 00043 #ifndef CAMERAINFOPARSER_PACKAGE 00044 #define CAMERAINFOPARSER_PACKAGE "inversePerspectiveMapping" 00045 #endif 00046 00047 #ifndef CAMERAINFOPARSER_VERSION 00048 #define CAMERAINFOPARSER_VERSION "0.1" 00049 #endif 00050 00051 struct CameraInfoParserInfo 00052 { 00053 const char *help_help; /* Print help and exit help description. */ 00054 const char *version_help; /* Print version and exit help description. */ 00055 double focalLengthX_arg; /* Focal lenght in horizontal direction in pixels. */ 00056 char * focalLengthX_orig; /* Focal lenght in horizontal direction in pixels original value given at command line. */ 00057 const char *focalLengthX_help; /* Focal lenght in horizontal direction in pixels help description. */ 00058 double focalLengthY_arg; /* Focal lenght in vertical direction in pixels. */ 00059 char * focalLengthY_orig; /* Focal lenght in vertical direction in pixels original value given at command line. */ 00060 const char *focalLengthY_help; /* Focal lenght in vertical direction in pixels help description. */ 00061 double opticalCenterX_arg; /* X-coordinate of optical center in pixels. */ 00062 char * opticalCenterX_orig; /* X-coordinate of optical center in pixels original value given at command line. */ 00063 const char *opticalCenterX_help; /* X-coordinate of optical center in pixels help description. */ 00064 double opticalCenterY_arg; /* Y-coordinate of optical center in pixels. */ 00065 char * opticalCenterY_orig; /* Y-coordinate of optical center in pixels original value given at command line. */ 00066 const char *opticalCenterY_help; /* Y-coordinate of optical center in pixels help description. */ 00067 double cameraHeight_arg; /* Height of camera above ground in mm. */ 00068 char * cameraHeight_orig; /* Height of camera above ground in mm original value given at command line. */ 00069 const char *cameraHeight_help; /* Height of camera above ground in mm help description. */ 00070 double pitch_arg; /* pitch of camera in degrees (+ve downwards). */ 00071 char * pitch_orig; /* pitch of camera in degrees (+ve downwards) original value given at command line. */ 00072 const char *pitch_help; /* pitch of camera in degrees (+ve downwards) help description. */ 00073 double yaw_arg; /* yaw of camera in degrees (+ve clockwise). */ 00074 char * yaw_orig; /* yaw of camera in degrees (+ve clockwise) original value given at command line. */ 00075 const char *yaw_help; /* yaw of camera in degrees (+ve clockwise) help description. */ 00076 double imageWidth_arg; /* width of image in pixels. */ 00077 char * imageWidth_orig; /* width of image in pixels original value given at command line. */ 00078 const char *imageWidth_help; /* width of image in pixels help description. */ 00079 double imageHeight_arg; /* height of image in 00080 pixels. */ 00081 char * imageHeight_orig; /* height of image in pixels original value given at command line. */ 00082 const char *imageHeight_help; /* height of image in pixels help description. */ 00083 00084 int help_given ; /* Whether help was given. */ 00085 int version_given ; /* Whether version was given. */ 00086 int focalLengthX_given ; /* Whether focalLengthX was given. */ 00087 int focalLengthY_given ; /* Whether focalLengthY was given. */ 00088 int opticalCenterX_given ; /* Whether opticalCenterX was given. */ 00089 int opticalCenterY_given ; /* Whether opticalCenterY was given. */ 00090 int cameraHeight_given ; /* Whether cameraHeight was given. */ 00091 int pitch_given ; /* Whether pitch was given. */ 00092 int yaw_given ; /* Whether yaw was given. */ 00093 int imageWidth_given ; /* Whether imageWidth was given. */ 00094 int imageHeight_given ; /* Whether imageHeight was given. */ 00095 00096 } ; 00097 00098 extern const char *CameraInfoParserInfo_purpose; 00099 extern const char *CameraInfoParserInfo_usage; 00100 extern const char *CameraInfoParserInfo_help[]; 00101 00102 int cameraInfoParser (int argc, char * const *argv, 00103 struct CameraInfoParserInfo *args_info); 00104 int cameraInfoParser2 (int argc, char * const *argv, 00105 struct CameraInfoParserInfo *args_info, 00106 int override, int initialize, int check_required); 00107 int cameraInfoParser_file_save(const char *filename, 00108 struct CameraInfoParserInfo *args_info); 00109 00110 void cameraInfoParser_print_help(void); 00111 void cameraInfoParser_print_version(void); 00112 00113 void cameraInfoParser_init (struct CameraInfoParserInfo *args_info); 00114 void cameraInfoParser_free (struct CameraInfoParserInfo *args_info); 00115 00116 int cameraInfoParser_configfile (char * const filename, 00117 struct CameraInfoParserInfo *args_info, 00118 int override, int initialize, int check_required); 00119 00120 int cameraInfoParser_required (struct CameraInfoParserInfo *args_info, 00121 const char *prog_name); 00122 00123 00124 #ifdef __cplusplus 00125 } 00126 #endif /* __cplusplus */ 00127 #endif /* CAMERAINFOOPT_H */