opencv::prelude

Trait CUDA_DisparityBilateralFilterTrait

Source
pub trait CUDA_DisparityBilateralFilterTrait: AlgorithmTrait + CUDA_DisparityBilateralFilterTraitConst {
    // Required method
    fn as_raw_mut_CUDA_DisparityBilateralFilter(&mut self) -> *mut c_void;

    // Provided methods
    fn apply(
        &mut self,
        disparity: &impl ToInputArray,
        image: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn apply_def(
        &mut self,
        disparity: &impl ToInputArray,
        image: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
    fn set_num_disparities(&mut self, num_disparities: i32) -> Result<()> { ... }
    fn set_radius(&mut self, radius: i32) -> Result<()> { ... }
    fn set_num_iters(&mut self, iters: i32) -> Result<()> { ... }
    fn set_edge_threshold(&mut self, edge_threshold: f64) -> Result<()> { ... }
    fn set_max_disc_threshold(&mut self, max_disc_threshold: f64) -> Result<()> { ... }
    fn set_sigma_range(&mut self, sigma_range: f64) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn apply( &mut self, disparity: &impl ToInputArray, image: &impl ToInputArray, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>

Refines a disparity map using joint bilateral filtering.

§Parameters
  • disparity: Input disparity map. CV_8UC1 and CV_16SC1 types are supported.
  • image: Input image. CV_8UC1 and CV_8UC3 types are supported.
  • dst: Destination disparity map. It has the same size and type as disparity .
  • stream: Stream for the asynchronous version.
§C++ default parameters
  • stream: Stream::Null()
Source

fn apply_def( &mut self, disparity: &impl ToInputArray, image: &impl ToInputArray, dst: &mut impl ToOutputArray, ) -> Result<()>

Refines a disparity map using joint bilateral filtering.

§Parameters
  • disparity: Input disparity map. CV_8UC1 and CV_16SC1 types are supported.
  • image: Input image. CV_8UC1 and CV_8UC3 types are supported.
  • dst: Destination disparity map. It has the same size and type as disparity .
  • stream: Stream for the asynchronous version.
§Note

This alternative version of CUDA_DisparityBilateralFilterTrait::apply function uses the following default values for its arguments:

  • stream: Stream::Null()
Source

fn set_num_disparities(&mut self, num_disparities: i32) -> Result<()>

Source

fn set_radius(&mut self, radius: i32) -> Result<()>

Source

fn set_num_iters(&mut self, iters: i32) -> Result<()>

Source

fn set_edge_threshold(&mut self, edge_threshold: f64) -> Result<()>

Source

fn set_max_disc_threshold(&mut self, max_disc_threshold: f64) -> Result<()>

Source

fn set_sigma_range(&mut self, sigma_range: f64) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§