Trait opencv::prelude::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 Stream
) -> Result<()> { ... }
fn transform_def(
&mut self,
src: &impl ToInputArray,
dst: &mut impl ToOutputArray
) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::cudaarithm::LookUpTable
Required Methods§
fn as_raw_mut_LookUpTable(&mut self) -> *mut c_void
Provided Methods§
sourcefn transform(
&mut self,
src: &impl ToInputArray,
dst: &mut impl ToOutputArray,
stream: &mut Stream
) -> Result<()>
fn transform( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, stream: &mut Stream ) -> 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()
sourcefn transform_def(
&mut self,
src: &impl ToInputArray,
dst: &mut impl ToOutputArray
) -> Result<()>
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 [transform] function uses the following default values for its arguments:
- stream: Stream::Null()
Object Safety§
This trait is not object safe.