Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
decimation-filter.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "../include/librealsense2/hpp/rs_frame.hpp"
7 #include "../include/librealsense2/hpp/rs_processing.hpp"
8 
9 namespace librealsense
10 {
11 
13  {
14  public:
16 
17  protected:
19 
20  void decimate_depth(const uint16_t * frame_data_in, uint16_t * frame_data_out,
21  size_t width_in, size_t height_in, size_t scale);
22 
23  private:
24  void update_output_profile(const rs2::frame& f);
25 
26  uint8_t _decimation_factor;
27  uint8_t _patch_size;
28  uint8_t _kernel_size;
29  rs2::stream_profile _source_stream_profile;
30  rs2::stream_profile _target_stream_profile;
31  uint16_t _real_width; // Number of rows/columns with real datain the decimated image
32  uint16_t _real_height; // Correspond to w,h in the reference code
33  uint16_t _padded_width; // Corresponds to w4/h4 in the reference code
34  uint16_t _padded_height;
35  bool _recalc_profile;
36  };
37 }
Definition: rs_frame.hpp:21
Definition: rs_frame.hpp:202
Definition: decimation-filter.h:12
Definition: synthetic-stream.h:41
Definition: algo.h:16
Definition: rs_processing.hpp:13
void decimate_depth(const uint16_t *frame_data_in, uint16_t *frame_data_out, size_t width_in, size_t height_in, size_t scale)
rs2::frame prepare_target_frame(const rs2::frame &f, const rs2::frame_source &source)