Class cv::ximgproc::DisparityFilter#

Main interface for all disparity map filters.

Collaboration diagram for cv::ximgproc::DisparityFilter:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Detailed Description#

Main interface for all disparity map filters.

Member Function Documentation#

filter()#

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() )

Apply filtering to the disparity map.

Parameters

  • disparity_map_left — disparity 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_view — left view of the original stereo-pair to guide the filtering process, 8-bit single-channel or three-channel image.

  • filtered_disparity_map — output disparity map, single-channel CV_16S type, with disparity values scaled by 16.

  • disparity_map_right — optional argument, some implementations might also use the disparity map of the right view to compute confidence maps. If provided, it must be a single-channel CV_16S matrix. Disparity values are expected to be scaled by 16 (one-pixel disparity corresponds to the value of 16).

  • ROI — region of the disparity map to filter. Optional, usually it should be set automatically.

  • right_view — optional argument, some implementations might also use the right view of the original stereo-pair.

Source file#

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