Trait LookUpTableTrait

Source
pub trait LookUpTableTrait: AlgorithmTrait + LookUpTableTraitConst {
    // Required method
    fn as_raw_mut_LookUpTable(&mut self) -> *mut c_void;

    // Provided methods
    fn transform(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn transform_def(
        &mut self,
        src: &impl ToInputArray,
        dst: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::cudaarithm::LookUpTable

Required Methods§

Provided Methods§

Source

fn transform( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>

Transforms the source matrix into the destination matrix using the given look-up table: dst(I) = lut(src(I)) .

§Parameters
  • src: Source matrix. CV_8UC1 and CV_8UC3 matrices are supported for now.
  • dst: Destination matrix.
  • stream: Stream for the asynchronous version.
§C++ default parameters
  • stream: Stream::Null()
Source

fn transform_def( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, ) -> Result<()>

Transforms the source matrix into the destination matrix using the given look-up table: dst(I) = lut(src(I)) .

§Parameters
  • src: Source matrix. CV_8UC1 and CV_8UC3 matrices are supported for now.
  • dst: Destination matrix.
  • stream: Stream for the asynchronous version.
§Note

This alternative version of LookUpTableTrait::transform function uses the following default values for its arguments:

  • stream: Stream::Null()

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§