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

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

pub 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

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

Process next frame from input and return output result.

Parameters

  • frame: Output result

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

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

Clear all inner buffers.

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

Scale factor

See also

setScale

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

Scale factor

See also

setScale getScale

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

Iterations count

See also

setIterations

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

Iterations count

See also

setIterations getIterations

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

Asymptotic value of steepest descent method

See also

setTau

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

Asymptotic value of steepest descent method

See also

setTau getTau

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

Weight parameter to balance data term and smoothness term

See also

setLambda

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

Weight parameter to balance data term and smoothness term

See also

setLambda getLambda

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

Parameter of spacial distribution in Bilateral-TV

See also

setAlpha

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

Parameter of spacial distribution in Bilateral-TV

See also

setAlpha getAlpha

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

Kernel size of Bilateral-TV filter

See also

setKernelSize

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

Kernel size of Bilateral-TV filter

See also

setKernelSize getKernelSize

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

Gaussian blur kernel size

See also

setBlurKernelSize

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

Gaussian blur kernel size

See also

setBlurKernelSize getBlurKernelSize

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

Gaussian blur sigma

See also

setBlurSigma

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

Gaussian blur sigma

See also

setBlurSigma getBlurSigma

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

Radius of the temporal search area

See also

setTemporalAreaRadius

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

Radius of the temporal search area

See also

setTemporalAreaRadius getTemporalAreaRadius

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

Dense optical flow algorithm

See also

setOpticalFlow

pub 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...