OpenCV 4.11.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::ximgproc::DisparityFilter Class Referenceabstract

Main interface for all disparity map filters. More...

#include <opencv2/ximgproc/disparity_filter.hpp>

Collaboration diagram for cv::ximgproc::DisparityFilter:

Public Member Functions

virtual void filter (InputArray disparity_map_left, InputArray left_view, OutputArray filtered_disparity_map, InputArray disparity_map_right=Mat(), Rect ROI=Rect(), InputArray right_view=Mat())=0
 Apply filtering to the disparity map.
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (FileStorage &fs, const String &name) const
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

Detailed Description

Main interface for all disparity map filters.

Member Function Documentation

◆ filter()

virtual void cv::ximgproc::DisparityFilter::filter ( InputArray disparity_map_left,
InputArray left_view,
OutputArray filtered_disparity_map,
InputArray disparity_map_right = Mat(),
Rect ROI = Rect(),
InputArray right_view = Mat() )
pure virtual
Python:
cv.ximgproc.DisparityFilter.filter(disparity_map_left, left_view[, filtered_disparity_map[, disparity_map_right[, ROI[, right_view]]]]) -> filtered_disparity_map

Apply filtering to the disparity map.

Parameters
disparity_map_leftdisparity map of the left view, 1 channel, CV_16S type. Implicitly assumes that disparity values are scaled by 16 (one-pixel disparity corresponds to the value of 16 in the disparity map). Disparity map can have any resolution, it will be automatically resized to fit left_view resolution.
left_viewleft view of the original stereo-pair to guide the filtering process, 8-bit single-channel or three-channel image.
filtered_disparity_mapoutput disparity map.
disparity_map_rightoptional argument, some implementations might also use the disparity map of the right view to compute confidence maps, for instance.
ROIregion of the disparity map to filter. Optional, usually it should be set automatically.
right_viewoptional argument, some implementations might also use the right view of the original stereo-pair.

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