/* * This file is part of robotreality * * Copyright(c) sschulz techfak.uni-bielefeld.de * http://opensource.cit-ec.de/projects/robotreality * * This file may be licensed under the terms of the * GNU General Public License Version 3 (the ``GPL''), * or (at your option) any later version. * * Software distributed under the License is distributed * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either * express or implied. See the GPL for the specific language * governing rights and limitations. * * You should have received a copy of the GPL along with this * program. If not, go to http://www.gnu.org/licenses/gpl.html * or write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * The development of this software was supported by the * Excellence Cluster EXC 277 Cognitive Interaction Technology. * The Excellence Cluster EXC 277 is a grant of the Deutsche * Forschungsgemeinschaft (DFG) in the context of the German * Excellence Initiative. * */ #ifndef ConfigOptions_H #define ConfigOptions_H #include #include #include #include #include #include #include #include #include #include "structs.h" using namespace std; using namespace cv; class ConfigOptions{ public: ConfigOptions(); ~ConfigOptions(); void load(string filename); void save(string filename); void init_defaults(); bool rgb_lookuptable_from_file(); string rgb_lookuptable_filename(); /// VARIABLES. NOTE: MAKE SURE TO ADD THEM; TO THE LOAD/SAVE FUNCTION! int colorclass_selected; int frame_number; int frame_number_end; int eyefinder_brightness_threshold; int eyefinder_brightness_threshold2; int camera_id; int data_output_class; string csv_output_filename; bool grab_from_cam; bool debug_show_eyefinder_results; bool debug_show_pixelfilter_results; bool debug_show_text; bool debug_show_results; bool debug_show_model_results; bool data_output_active; bool free_running; bool show_rgb_normalized; bool show_output; bool rotate_resultview; bool normalize_resultview_histogram; bool output_lcm_mirror_mode; bool output_lcm_head; bool output_lcm_eyes; bool output_lcm_brows; bool output_lcm_eyelids; bool output_lcm_mouth; bool fixation_2d_correction; bool eyedetection_by_hough_circles; bool eyelid_fake_mode; bool update_markermodel; double head_zero_rotation; double calibration_angle_x; double calibration_angle_y; double calibration_r_x; double calibration_r_y; double eyelid_scale_factor; double mouth_search_split_position; double mouth_scale_factor; double mouth_offset; Point2d orientation_scale_factor; Point2d eye_radius_px; Point2d eye_pos_straight_offset[2]; string image_source_filename; string imu_data_source; imu_data_t imu_zero_rotation; Point2d head_zero_pos; // double mouth_zero_distance; Point2d mouth_center_pos[MOUTH_ENUM_SIZE]; // Point2d eyecalib_positions[2][6]; /// ///////////////////////////////////////////////////7 colorsample_vector_t colorsample_vector; //used for config file vector colorsample_vector_id; vector colorsample_vector_r; vector colorsample_vector_g; vector colorsample_vector_b; private: TinyConfig tconfig; }; #endif