DisparityFilter

Objective-C

@interface DisparityFilter : Algorithm

Swift

class DisparityFilter : Algorithm

Main interface for all disparity map filters.

Member of Ximgproc

Methods

  • Apply filtering to the disparity map.

    Declaration

    Objective-C

    - (void)filter:(nonnull Mat *)disparity_map_left
                     left_view:(nonnull Mat *)left_view
        filtered_disparity_map:(nonnull Mat *)filtered_disparity_map
           disparity_map_right:(nonnull Mat *)disparity_map_right
                           ROI:(nonnull Rect2i *)ROI
                    right_view:(nonnull Mat *)right_view;

    Swift

    func filter(disparity_map_left: Mat, left_view: Mat, filtered_disparity_map: Mat, disparity_map_right: Mat, ROI: Rect2i, right_view: Mat)

    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.

    disparity_map_right

    optional argument, some implementations might also use the disparity map of the right view to compute confidence maps, for instance.

    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.

  • Apply filtering to the disparity map.

    Declaration

    Objective-C

    - (void)filter:(nonnull Mat *)disparity_map_left
                     left_view:(nonnull Mat *)left_view
        filtered_disparity_map:(nonnull Mat *)filtered_disparity_map
           disparity_map_right:(nonnull Mat *)disparity_map_right
                           ROI:(nonnull Rect2i *)ROI;

    Swift

    func filter(disparity_map_left: Mat, left_view: Mat, filtered_disparity_map: Mat, disparity_map_right: Mat, ROI: Rect2i)

    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.

    disparity_map_right

    optional argument, some implementations might also use the disparity map of the right view to compute confidence maps, for instance.

    ROI

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

    stereo-pair.

  • Apply filtering to the disparity map.

    Declaration

    Objective-C

    - (void)filter:(nonnull Mat *)disparity_map_left
                     left_view:(nonnull Mat *)left_view
        filtered_disparity_map:(nonnull Mat *)filtered_disparity_map
           disparity_map_right:(nonnull Mat *)disparity_map_right;

    Swift

    func filter(disparity_map_left: Mat, left_view: Mat, filtered_disparity_map: Mat, disparity_map_right: Mat)

    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.

    disparity_map_right

    optional argument, some implementations might also use the disparity map of the right view to compute confidence maps, for instance.

    stereo-pair.

  • Apply filtering to the disparity map.

    Declaration

    Objective-C

    - (void)filter:(nonnull Mat *)disparity_map_left
                     left_view:(nonnull Mat *)left_view
        filtered_disparity_map:(nonnull Mat *)filtered_disparity_map;

    Swift

    func filter(disparity_map_left: Mat, left_view: Mat, filtered_disparity_map: Mat)

    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.

    of the right view to compute confidence maps, for instance.

    stereo-pair.