Trait opencv::prelude::Superres_SuperResolution[][src]

pub trait Superres_SuperResolution: AlgorithmTrait + Superres_FrameSource {
    fn as_raw_Superres_SuperResolution(&self) -> *const c_void;
fn as_raw_mut_Superres_SuperResolution(&mut self) -> *mut c_void; fn set_input(
        &mut self,
        frame_source: &Ptr<dyn Superres_FrameSource>
    ) -> Result<()> { ... }
fn next_frame(&mut self, frame: &mut dyn ToOutputArray) -> Result<()> { ... }
fn reset(&mut self) -> Result<()> { ... }
fn collect_garbage(&mut self) -> Result<()> { ... }
fn get_scale(&self) -> Result<i32> { ... }
fn set_scale(&mut self, val: i32) -> Result<()> { ... }
fn get_iterations(&self) -> Result<i32> { ... }
fn set_iterations(&mut self, val: i32) -> Result<()> { ... }
fn get_tau(&self) -> Result<f64> { ... }
fn set_tau(&mut self, val: f64) -> Result<()> { ... }
fn get_lambda(&self) -> Result<f64> { ... }
fn set_lambda(&mut self, val: f64) -> Result<()> { ... }
fn get_alpha(&self) -> Result<f64> { ... }
fn set_alpha(&mut self, val: f64) -> Result<()> { ... }
fn get_kernel_size(&self) -> Result<i32> { ... }
fn set_kernel_size(&mut self, val: i32) -> Result<()> { ... }
fn get_blur_kernel_size(&self) -> Result<i32> { ... }
fn set_blur_kernel_size(&mut self, val: i32) -> Result<()> { ... }
fn get_blur_sigma(&self) -> Result<f64> { ... }
fn set_blur_sigma(&mut self, val: f64) -> Result<()> { ... }
fn get_temporal_area_radius(&self) -> Result<i32> { ... }
fn set_temporal_area_radius(&mut self, val: i32) -> Result<()> { ... }
fn get_optical_flow(&self) -> Result<Ptr<dyn Superres_DenseOpticalFlowExt>> { ... }
fn set_optical_flow(
        &mut self,
        val: &Ptr<dyn Superres_DenseOpticalFlowExt>
    ) -> Result<()> { ... } }

Base class for Super Resolution algorithms.

The class is only used to define the common interface for the whole family of Super Resolution algorithms.

Required methods

Loading content...

Provided methods

fn set_input(
    &mut self,
    frame_source: &Ptr<dyn Superres_FrameSource>
) -> Result<()>
[src]

Set input frame source for Super Resolution algorithm.

Parameters

  • frameSource: Input frame source

fn next_frame(&mut self, frame: &mut dyn ToOutputArray) -> Result<()>[src]

Process next frame from input and return output result.

Parameters

  • frame: Output result

fn reset(&mut self) -> Result<()>[src]

fn collect_garbage(&mut self) -> Result<()>[src]

Clear all inner buffers.

fn get_scale(&self) -> Result<i32>[src]

Scale factor

See also

setScale

fn set_scale(&mut self, val: i32) -> Result<()>[src]

Scale factor

See also

setScale getScale

fn get_iterations(&self) -> Result<i32>[src]

Iterations count

See also

setIterations

fn set_iterations(&mut self, val: i32) -> Result<()>[src]

Iterations count

See also

setIterations getIterations

fn get_tau(&self) -> Result<f64>[src]

Asymptotic value of steepest descent method

See also

setTau

fn set_tau(&mut self, val: f64) -> Result<()>[src]

Asymptotic value of steepest descent method

See also

setTau getTau

fn get_lambda(&self) -> Result<f64>[src]

Weight parameter to balance data term and smoothness term

See also

setLambda

fn set_lambda(&mut self, val: f64) -> Result<()>[src]

Weight parameter to balance data term and smoothness term

See also

setLambda getLambda

fn get_alpha(&self) -> Result<f64>[src]

Parameter of spacial distribution in Bilateral-TV

See also

setAlpha

fn set_alpha(&mut self, val: f64) -> Result<()>[src]

Parameter of spacial distribution in Bilateral-TV

See also

setAlpha getAlpha

fn get_kernel_size(&self) -> Result<i32>[src]

Kernel size of Bilateral-TV filter

See also

setKernelSize

fn set_kernel_size(&mut self, val: i32) -> Result<()>[src]

Kernel size of Bilateral-TV filter

See also

setKernelSize getKernelSize

fn get_blur_kernel_size(&self) -> Result<i32>[src]

Gaussian blur kernel size

See also

setBlurKernelSize

fn set_blur_kernel_size(&mut self, val: i32) -> Result<()>[src]

Gaussian blur kernel size

See also

setBlurKernelSize getBlurKernelSize

fn get_blur_sigma(&self) -> Result<f64>[src]

Gaussian blur sigma

See also

setBlurSigma

fn set_blur_sigma(&mut self, val: f64) -> Result<()>[src]

Gaussian blur sigma

See also

setBlurSigma getBlurSigma

fn get_temporal_area_radius(&self) -> Result<i32>[src]

Radius of the temporal search area

See also

setTemporalAreaRadius

fn set_temporal_area_radius(&mut self, val: i32) -> Result<()>[src]

Radius of the temporal search area

See also

setTemporalAreaRadius getTemporalAreaRadius

fn get_optical_flow(&self) -> Result<Ptr<dyn Superres_DenseOpticalFlowExt>>[src]

Dense optical flow algorithm

See also

setOpticalFlow

fn set_optical_flow(
    &mut self,
    val: &Ptr<dyn Superres_DenseOpticalFlowExt>
) -> Result<()>
[src]

Dense optical flow algorithm

See also

setOpticalFlow getOpticalFlow

Loading content...

Implementors

Loading content...