Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
high_confidence_filter Class Reference
Inheritance diagram for high_confidence_filter:
Inheritance graph
[legend]

Classes

struct  sub_area
 

Public Member Functions

 high_confidence_filter ()
 
- Public Member Functions inherited from rs2::filter
template<class T >
as () const
 
 filter (std::shared_ptr< rs2_processing_block > block, int queue_size=1)
 
template<class S >
 filter (S processing_function, int queue_size=1)
 
rs2_processing_blockget () const
 
frame_queue get_queue ()
 
template<class T >
bool is () const
 
 operator bool () const
 
rs2::frame process (rs2::frame frame) const override
 
- Public Member Functions inherited from rs2::processing_block
rs2_processing_blockget () const
 
const char * get_info (rs2_camera_info info) const
 
void invoke (frame f) const
 
 operator rs2_options * () const
 
template<class S >
S & operator>> (S &on_frame)
 
 processing_block (std::shared_ptr< rs2_processing_block > block)
 
template<class S >
 processing_block (S processing_function)
 
template<class S >
void start (S on_frame)
 
bool supports (rs2_camera_info info) const
 
- Public Member Functions inherited from rs2::options
float get_option (rs2_option option) const
 
const char * get_option_description (rs2_option option) const
 
const char * get_option_name (rs2_option option) const
 
option_range get_option_range (rs2_option option) const
 
const char * get_option_value_description (rs2_option option, float val) const
 
std::vector< rs2_optionget_supported_options ()
 
bool is_option_read_only (rs2_option option) const
 
optionsoperator= (const options &other)
 
 options (const options &other)
 
void set_option (rs2_option option, float value) const
 
bool supports (rs2_option option) const
 
virtual ~options ()=default
 
- Public Member Functions inherited from rs2::filter_interface
virtual ~filter_interface ()=default
 

Private Member Functions

void downsample (const cv::Mat &depth, const cv::Mat &ir)
 
void filter_edges (sub_area *area)
 
void filter_harris (sub_area *area)
 
void init_matrices (const cv::Mat &ir_resized)
 
void main_filter ()
 
void sdk_handle (rs2::frame &f, rs2::frame_source &src)
 

Private Attributes

cv::Mat _abs_scharr_x
 
cv::Mat _abs_scharr_y
 
cv::Mat _corners
 
cv::Mat _decimated_depth
 
cv::Mat _decimated_ir
 
cv::Mat _depth_output
 
rs2::stream_profile _input_depth_profile
 
rs2::stream_profile _input_ir_profile
 
cv::Mat _ir_float
 
cv::Mat _mask_combined
 
cv::Mat _mask_edge
 
cv::Mat _mask_harris
 
rs2::stream_profile _output_depth_profile
 
rs2::stream_profile _output_ir_profile
 
cv::Mat _scharr_x
 
cv::Mat _scharr_y
 
std::vector< sub_areasub_areas
 

Static Private Attributes

static constexpr auto DOWNSAMPLE_FACTOR = 4
 
static constexpr size_t NUM_SUB_IMAGES = 4
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::processing_block
void register_simple_option (rs2_option option_id, option_range range)
 
- Protected Member Functions inherited from rs2::options
template<class T >
optionsoperator= (const T &dev)
 
 options (rs2_options *o=nullptr)
 
- Protected Attributes inherited from rs2::filter
frame_queue _queue
 
- Protected Attributes inherited from rs2::processing_block
std::shared_ptr< rs2_processing_block_block
 

Detailed Description

Definition at line 22 of file rs-depth-filter.cpp.

Constructor & Destructor Documentation

high_confidence_filter::high_confidence_filter ( )
inline

Definition at line 25 of file rs-depth-filter.cpp.

Member Function Documentation

void high_confidence_filter::downsample ( const cv::Mat &  depth,
const cv::Mat &  ir 
)
inlineprivate

Definition at line 34 of file rs-depth-filter.cpp.

void high_confidence_filter::filter_edges ( sub_area area)
inlineprivate

Definition at line 173 of file rs-depth-filter.cpp.

void high_confidence_filter::filter_harris ( sub_area area)
inlineprivate

Definition at line 165 of file rs-depth-filter.cpp.

void high_confidence_filter::init_matrices ( const cv::Mat &  ir_resized)
inlineprivate

Definition at line 183 of file rs-depth-filter.cpp.

void high_confidence_filter::main_filter ( )
inlineprivate

Definition at line 50 of file rs-depth-filter.cpp.

void high_confidence_filter::sdk_handle ( rs2::frame f,
rs2::frame_source src 
)
inlineprivate

Definition at line 70 of file rs-depth-filter.cpp.

Member Data Documentation

cv::Mat high_confidence_filter::_abs_scharr_x
private

Definition at line 156 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_abs_scharr_y
private

Definition at line 157 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_corners
private

Definition at line 153 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_decimated_depth
private

Definition at line 146 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_decimated_ir
private

Definition at line 147 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_depth_output
private

Definition at line 151 of file rs-depth-filter.cpp.

rs2::stream_profile high_confidence_filter::_input_depth_profile
private

Definition at line 163 of file rs-depth-filter.cpp.

rs2::stream_profile high_confidence_filter::_input_ir_profile
private

Definition at line 162 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_ir_float
private

Definition at line 152 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_mask_combined
private

Definition at line 150 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_mask_edge
private

Definition at line 148 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_mask_harris
private

Definition at line 149 of file rs-depth-filter.cpp.

rs2::stream_profile high_confidence_filter::_output_depth_profile
private

Definition at line 160 of file rs-depth-filter.cpp.

rs2::stream_profile high_confidence_filter::_output_ir_profile
private

Definition at line 159 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_scharr_x
private

Definition at line 154 of file rs-depth-filter.cpp.

cv::Mat high_confidence_filter::_scharr_y
private

Definition at line 155 of file rs-depth-filter.cpp.

constexpr auto high_confidence_filter::DOWNSAMPLE_FACTOR = 4
staticprivate

Definition at line 124 of file rs-depth-filter.cpp.

constexpr size_t high_confidence_filter::NUM_SUB_IMAGES = 4
staticprivate

Definition at line 125 of file rs-depth-filter.cpp.

std::vector<sub_area> high_confidence_filter::sub_areas
private

Definition at line 143 of file rs-depth-filter.cpp.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32