当前位置: 首页>>代码示例>>C++>>正文


C++ BPoint::get_m方法代码示例

本文整理汇总了C++中BPoint::get_m方法的典型用法代码示例。如果您正苦于以下问题:C++ BPoint::get_m方法的具体用法?C++ BPoint::get_m怎么用?C++ BPoint::get_m使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BPoint的用法示例。


在下文中一共展示了BPoint::get_m方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: m_E

//calc
_DLL_EXPORT int STDCALL calculate()
{
  bool info = false;


  //calc footprint
  if(     lBPoint.size() == 0 &&
          lCam_bore.size() == 1 &&
          m_is_set_RefGroundSurface &&
          m_is_set_GlobalCarReferencePoint &&
          m_is_set_GlobalReferenceFrame &&
          m_is_set_distance_epi)
  {
     // cout << endl << "### in function foot print ##"<<flush;

     //todo foot print
                     double offset = I.m_distance_epi;
                     double dist_to_cut = 20;

                     Gps_pos gps_pos;
                     gps_pos.set_Easting(I.m_Easting);
                     gps_pos.set_Northing(I.m_Northing);
                     gps_pos.set_EllH(I.m_eHeight);
                     gps_pos.set_Roll(I.m_roll);
                     gps_pos.set_Pitch(I.m_pitch);
                     gps_pos.set_Heading(I.m_heading);
                     gps_pos.set_Latitude(I.m_latitude);
                     gps_pos.set_Longitude(I.m_longitude);

                     Ebene m_E(I.m_nx,I.m_ny,I.m_nz,I.m_d);

                     double sensor_m = (*lCam_bore.rbegin()).get_pix_row();
                     double sensor_n = (*lCam_bore.rbegin()).get_pix_col();

                     double lo_m = offset;               double lo_n = offset;
                     double lu_m = offset;               double lu_n = sensor_n - offset;
                     double ro_m = sensor_m - offset;    double ro_n = offset;
                     double ru_m = sensor_m - offset;    double ru_n = sensor_n - offset;

                     BPoint_bore BP_lo( *lCam_bore.rbegin() , gps_pos , 1 , lo_m , lo_n );
                     BP_lo.calc_footprint_point(m_E,BPoint_bore::car,dist_to_cut);
                     Point_nr Plo = BP_lo.get_measurement_point(BPoint_bore::global);

                     BPoint_bore BP_lu( *lCam_bore.rbegin()  , gps_pos , 2 , lu_m , lu_n );
                     BP_lu.calc_footprint_point(m_E,BPoint_bore::car,dist_to_cut);
                     Point_nr Plu = BP_lu.get_measurement_point(BPoint_bore::global);

                     BPoint_bore BP_ro( *lCam_bore.rbegin()  , gps_pos , 3 , ro_m , ro_n );
                     BP_ro.calc_footprint_point(m_E,BPoint_bore::car,dist_to_cut);
                     Point_nr Pro = BP_ro.get_measurement_point(BPoint_bore::global);

                     BPoint_bore BP_ru( *lCam_bore.rbegin()  , gps_pos , 4 , ru_m , ru_n );
                     BP_ru.calc_footprint_point(m_E,BPoint_bore::car,dist_to_cut);
                     Point_nr Pru = BP_ru.get_measurement_point(BPoint_bore::global);

                     //cout << endl << "  P lo: " <<Plo;
                     //cout         << "  P ro: " <<Pro;
                     //cout << endl << "  P lu: " <<Plu;
                     //cout         << "  P ru: " <<Pru;

                     //save back into the structure
                     I.m_x_P1_global = Plo.get_X();
                     I.m_x_P2_global = Pro.get_X();
                     I.m_x_P3_global = Plu.get_X();
                     I.m_x_P4_global = Pru.get_X();

                     I.m_y_P1_global = Plo.get_Y();
                     I.m_y_P2_global = Pro.get_Y();
                     I.m_y_P3_global = Plu.get_Y();
                     I.m_y_P4_global = Pru.get_Y();

                     I.m_z_P1_global = Plo.get_Z();
                     I.m_z_P2_global = Pro.get_Z();
                     I.m_z_P3_global = Plu.get_Z();
                     I.m_z_P4_global = Pru.get_Z();

  }


  //calc local measurement point -> forward intersection
  if(lBPoint.size() > 1)
    {
      //calc forward intersection with min. 2 picture points
      Vorwaertsschnitt vws(lBPoint);
      Point p;
      p=vws.get_Schnittpunkt();

      //cout<<endl<<"intern P local:"<<p<<endl;

      if(vws.get_is_error())
        {
          cerr << endl << endl;
          cerr << "error in forward intersection!" <<flush;
        }
      else
        {

          I.m_x_local	=p.get_X();
          I.m_y_local	=p.get_Y();
//.........这里部分代码省略.........
开发者ID:trebb,项目名称:phoml,代码行数:101,代码来源:photoST.cpp


注:本文中的BPoint::get_m方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。