• <rt id="2awkm"><noscript id="2awkm"></noscript></rt>
      <rt id="2awkm"><noscript id="2awkm"></noscript></rt>
    • <dfn id="2awkm"></dfn>
      <menu id="2awkm"><acronym id="2awkm"></acronym></menu>
      
      
      <rt id="2awkm"></rt><dfn id="2awkm"><code id="2awkm"></code></dfn>
    • <dd id="2awkm"><s id="2awkm"></s></dd>
      <tbody id="2awkm"></tbody>
    • <dfn id="2awkm"></dfn>
      <menu id="2awkm"><noscript id="2awkm"></noscript></menu>

      C++ 后處理示例代碼-Post Processing

      # 后處理示例-PostProcessing

       

      支持設(shè)備: Gemini 330系列相機,例如:Gemini G335

       

      功能描述:演示進行后處理操作,顯示經(jīng)過后處理的圖像,并通過ESC_KEY鍵退出程序

       

      >本示例基于C++ high Level API進行演示

       

      獲取pipeline,進行流配置

      // Create a pipeline with default device
      ob::Pipeline pipe;

      // Get all stream profiles of the depth camera, including stream resolution, frame rate, and frame format
      auto profiles = pipe.getStreamProfileList(OB_SENSOR_DEPTH);

      std::shared_ptr<ob::VideoStreamProfile> depthProfile = nullptr;
      try {
          // Find the corresponding profile according to the specified format, first look for the y16 format
          depthProfile = profiles->getVideoStreamProfile(640, OB_HEIGHT_ANY, OB_FORMAT_Y16, 30);
      }
      catch(ob::Error &e) {
          // If the specified format is not found, search for the default profile to open the stream
          depthProfile = std::const_pointer_cast<ob::StreamProfile>(profiles->getProfile(OB_PROFILE_DEFAULT))->as<ob::VideoStreamProfile>();
      }

      // By creating config to configure which streams to enable or disable for the pipeline, here the depth stream will be enabled
      std::shared_ptr<ob::Config> config = std::make_shared<ob::Config>();
      config->enableStream(depthProfile);

       

      獲取深度后處理過濾器列表

      auto obFilterList = pipe.getDevice()->getSensor(OB_SENSOR_DEPTH)->getRecommendedFilters();

      std::shared_ptr<ob::DecimationFilter> decFilter;
      for(int i = 0; i < obFilterList->count(); i++) {
          auto postProcessorfilter =obFilterList->getFilter(i);
          std::cout << "Depth recommended post processor filter type: " << postProcessorfilter->type() << std::endl;
          if(postProcessorfilter->is<ob::DecimationFilter>()) {
              decFilter = postProcessorfilter->as<ob::DecimationFilter>();
          }
      }

       

      開啟pipeline

      pipe.start(config);

      預(yù)期輸出:

      image.png 


      • <rt id="2awkm"><noscript id="2awkm"></noscript></rt>
        <rt id="2awkm"><noscript id="2awkm"></noscript></rt>
      • <dfn id="2awkm"></dfn>
        <menu id="2awkm"><acronym id="2awkm"></acronym></menu>
        
        
        <rt id="2awkm"></rt><dfn id="2awkm"><code id="2awkm"></code></dfn>
      • <dd id="2awkm"><s id="2awkm"></s></dd>
        <tbody id="2awkm"></tbody>
      • <dfn id="2awkm"></dfn>
        <menu id="2awkm"><noscript id="2awkm"></noscript></menu>
        久久久久91精品推荐99 | 日韩另类 | 沟厕引诱亲女乱亲合集在线视频 | 国产女性无套 免费网站 | 国产做爱免费视频 |