Skip to content
Snippets Groups Projects
Select Git revision
  • 40a570fe703e8d89d53ccadb8a41786693e9ba97
  • master default
  • bing_issues#190_tf2
  • bing_tf2_convert
  • bing_issue#189_train_modular
  • simon_#172_integrate_weatherbench
  • develop
  • bing_issue#188_restructure_ambs
  • yan_issue#100_extract_prcp_data
  • bing_issue#170_data_preprocess_training_tf1
  • Gong2022_temperature_forecasts
  • bing_issue#186_clean_GMD1_tag
  • yan_issue#179_integrate_GZAWS_data_onfly
  • bing_issue#178_runscript_bug_postprocess
  • michael_issue#187_bugfix_setup_runscript_template
  • bing_issue#180_bugs_postprpocess_meta_postprocess
  • yan_issue#177_repo_for_CLGAN_gmd
  • bing_issue#176_integrate_weather_bench
  • michael_issue#181_eval_era5_forecasts
  • michael_issue#182_eval_subdomain
  • michael_issue#119_warmup_Horovod
  • bing_issue#160_test_zam347
  • ambs_v1
  • ambs_gmd_nowcasting_v1.0
  • GMD1
  • modular_booster_20210203
  • new_structure_20201004_v1.0
  • old_structure_20200930
28 results

generate_transfer_learning_finetune.py

Blame
  • MeasurementArea.h 1.78 KiB
    /**
     * \file        MeasurementArea.cpp
     * \date        Oct 10, 2014
     * \version     v0.7
     * \copyright   <2009-2015> Forschungszentrum J��lich GmbH. All rights reserved.
     *
     * \section License
     * This file is part of JuPedSim.
     *
     * JuPedSim is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Lesser General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * any later version.
     *
     * JuPedSim is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public License
     * along with JuPedSim. If not, see <http://www.gnu.org/licenses/>.
     *
     * \section Description
     *
     *
     **/
    
    #ifndef MEASUREMENTAREA_H_
    #define MEASUREMENTAREA_H_
    
    #include <boost/geometry/geometry.hpp>
    #include <boost/geometry/geometries/point_xy.hpp>
    #include <boost/geometry/geometries/polygon.hpp>
    #include <boost/geometry/geometries/adapted/c_array.hpp>
    #include <boost/geometry/geometries/ring.hpp>
    
    using namespace boost::geometry;
    typedef model::d2::point_xy<double, cs::cartesian> point_2d;
    typedef model::polygon<point_2d> polygon_2d;
    typedef model::ring<point_2d> ring;
    
    class MeasurementArea
    {
    public:
         virtual ~MeasurementArea()
         {
         }
         int _id;
         std::string _type;
         double _zPos;
    };
    
    class MeasurementArea_B: public MeasurementArea
    {
    public:
         polygon_2d _poly;
         double _length = -1.0;
    };
    
    class MeasurementArea_L: public MeasurementArea
    {
    public:
         double _lineStartX;
         double _lineStartY;
         double _lineEndX;
         double _lineEndY;
    };
    
    #endif /* MEASUREMENTAREA_H_ */