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 /* cmdline.h */ 00028 00029 /* File autogenerated by gengetopt version 2.18 */ 00030 00031 #ifndef CMDLINE_H 00032 #define CMDLINE_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 CMDLINE_PARSER_PACKAGE 00044 #define CMDLINE_PARSER_PACKAGE "LinePerceptor" 00045 #endif 00046 00047 #ifndef CMDLINE_PARSER_VERSION 00048 #define CMDLINE_PARSER_VERSION "1.0" 00049 #endif 00050 00051 struct gengetopt_args_info 00052 { 00053 const char *help_help; /* Print help and exit help description. */ 00054 const char *version_help; /* Print version and exit help description. */ 00055 char * lanes_conf_arg; /* Configuration file for lane detection (default='Lanes.conf'). */ 00056 char * lanes_conf_orig; /* Configuration file for lane detection original value given at command line. */ 00057 const char *lanes_conf_help; /* Configuration file for lane detection help description. */ 00058 char * stoplines_conf_arg; /* Configuration file for stopline detection (default='StopLines.conf'). */ 00059 char * stoplines_conf_orig; /* Configuration file for stopline detection original value given at command line. */ 00060 const char *stoplines_conf_help; /* Configuration file for stopline detection help description. */ 00061 int no_stoplines_flag; /* Don't detect stop lines (default=on). */ 00062 const char *no_stoplines_help; /* Don't detect stop lines help description. */ 00063 int no_lanes_flag; /* Don't detect lanes (default=off). */ 00064 const char *no_lanes_help; /* Don't detect lanes help description. */ 00065 char * camera_conf_arg; /* Configuration file for the camera paramters (default='CameraInfo.conf'). */ 00066 char * camera_conf_orig; /* Configuration file for the camera paramters original value given at command line. */ 00067 const char *camera_conf_help; /* Configuration file for the camera paramters help description. */ 00068 char * list_file_arg; /* Text file containing a list of images one per line. */ 00069 char * list_file_orig; /* Text file containing a list of images one per line original value given at command line. */ 00070 const char *list_file_help; /* Text file containing a list of images one per line help description. */ 00071 char * list_path_arg; /* Path where the image files are located, this is just appended at the front of each line in --list-file (default=''). */ 00072 char * list_path_orig; /* Path where the image files are located, this is just appended at the front of each line in --list-file original value given at command line. */ 00073 const char *list_path_help; /* Path where the image files are located, this is just appended at the front of each line in --list-file help description. */ 00074 char * image_file_arg; /* The path to an image. */ 00075 char * image_file_orig; /* The path to an image original value given at command line. */ 00076 const char *image_file_help; /* The path to an image help description. */ 00077 int wait_arg; /* Number of milliseconds to show the detected lanes. Put 0 for infinite i.e. waits for keypress. (default='0'). */ 00078 char * wait_orig; /* Number of milliseconds to show the detected lanes. Put 0 for infinite i.e. waits for keypress. original value given at command line. */ 00079 const char *wait_help; /* Number of milliseconds to show the detected lanes. Put 0 for infinite i.e. waits for keypress. help description. */ 00080 int show_flag; /* Show the detected lines (default=off). */ 00081 const char *show_help; /* Show the detected lines help description. */ 00082 int step_flag; /* Step through each image (needs a keypress) or fall through (waits for --wait msecs) (default=off). */ 00083 const char *step_help; /* Step through each image (needs a keypress) or fall through (waits for --wait msecs) help description. */ 00084 int show_lane_numbers_flag; /* Show the lane numbers on the output image (default=off). */ 00085 const char *show_lane_numbers_help; /* Show the lane numbers on the output image help description. */ 00086 char * output_suffix_arg; /* Suffix of images and results (default='_results'). */ 00087 char * output_suffix_orig; /* Suffix of images and results original value given at command line. */ 00088 const char *output_suffix_help; /* Suffix of images and results help description. */ 00089 int save_images_flag; /* Export all images with detected lanes to the by appending --output-suffix + '.png' to each input image (default=off). */ 00090 const char *save_images_help; /* Export all images with detected lanes to the by appending --output-suffix + '.png' to each input image help description. */ 00091 int save_lanes_flag; /* Export all detected lanes to a text file by appending --output-suffix + '.txt' to --list-file (default=off). */ 00092 const char *save_lanes_help; /* Export all detected lanes to a text file by appending --output-suffix + '.txt' to --list-file help description. */ 00093 int debug_flag; /* Show debugging information and images (default=off). */ 00094 const char *debug_help; /* Show debugging information and images help description. */ 00095 00096 int help_given ; /* Whether help was given. */ 00097 int version_given ; /* Whether version was given. */ 00098 int lanes_conf_given ; /* Whether lanes-conf was given. */ 00099 int stoplines_conf_given ; /* Whether stoplines-conf was given. */ 00100 int no_stoplines_given ; /* Whether no-stoplines was given. */ 00101 int no_lanes_given ; /* Whether no-lanes was given. */ 00102 int camera_conf_given ; /* Whether camera-conf was given. */ 00103 int list_file_given ; /* Whether list-file was given. */ 00104 int list_path_given ; /* Whether list-path was given. */ 00105 int image_file_given ; /* Whether image-file was given. */ 00106 int wait_given ; /* Whether wait was given. */ 00107 int show_given ; /* Whether show was given. */ 00108 int step_given ; /* Whether step was given. */ 00109 int show_lane_numbers_given ; /* Whether show-lane-numbers was given. */ 00110 int output_suffix_given ; /* Whether output-suffix was given. */ 00111 int save_images_given ; /* Whether save-images was given. */ 00112 int save_lanes_given ; /* Whether save-lanes was given. */ 00113 int debug_given ; /* Whether debug was given. */ 00114 00115 char **inputs ; /* unamed options */ 00116 unsigned inputs_num ; /* unamed options number */ 00117 } ; 00118 00119 extern const char *gengetopt_args_info_purpose; 00120 extern const char *gengetopt_args_info_usage; 00121 extern const char *gengetopt_args_info_help[]; 00122 00123 int cmdline_parser (int argc, char * const *argv, 00124 struct gengetopt_args_info *args_info); 00125 int cmdline_parser2 (int argc, char * const *argv, 00126 struct gengetopt_args_info *args_info, 00127 int override, int initialize, int check_required); 00128 int cmdline_parser_file_save(const char *filename, 00129 struct gengetopt_args_info *args_info); 00130 00131 void cmdline_parser_print_help(void); 00132 void cmdline_parser_print_version(void); 00133 00134 void cmdline_parser_init (struct gengetopt_args_info *args_info); 00135 void cmdline_parser_free (struct gengetopt_args_info *args_info); 00136 00137 int cmdline_parser_configfile (char * const filename, 00138 struct gengetopt_args_info *args_info, 00139 int override, int initialize, int check_required); 00140 00141 int cmdline_parser_required (struct gengetopt_args_info *args_info, 00142 const char *prog_name); 00143 00144 00145 #ifdef __cplusplus 00146 } 00147 #endif /* __cplusplus */ 00148 #endif /* CMDLINE_H */