Trait opencv::prelude::BinaryDescriptorTraitConst
source · pub trait BinaryDescriptorTraitConst: AlgorithmTraitConst {
// Required method
fn as_raw_BinaryDescriptor(&self) -> *const c_void;
// Provided methods
fn write(&self, fs: &mut FileStorage) -> Result<()> { ... }
fn detect(
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
masks: &Vector<Mat>
) -> Result<()> { ... }
fn compute(
&self,
image: &Mat,
keylines: &mut Vector<KeyLine>,
descriptors: &mut Mat,
return_float_descr: bool
) -> Result<()> { ... }
fn compute_1(
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
descriptors: &mut Vector<Mat>,
return_float_descr: bool
) -> Result<()> { ... }
fn descriptor_size(&self) -> Result<i32> { ... }
fn descriptor_type(&self) -> Result<i32> { ... }
fn default_norm(&self) -> Result<i32> { ... }
fn apply(
&self,
image: &dyn ToInputArray,
mask: &dyn ToInputArray,
keylines: &mut Vector<KeyLine>,
descriptors: &mut dyn ToOutputArray,
use_provided_key_lines: bool,
return_float_descr: bool
) -> Result<()> { ... }
}
Expand description
Constant methods for crate::line_descriptor::BinaryDescriptor
Required Methods§
fn as_raw_BinaryDescriptor(&self) -> *const c_void
Provided Methods§
sourcefn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
sourcefn detect(
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
masks: &Vector<Mat>
) -> Result<()>
fn detect( &self, images: &Vector<Mat>, keylines: &mut Vector<Vector<KeyLine>>, masks: &Vector<Mat> ) -> Result<()>
Requires line detection
Parameters
- image: input image
- keypoints: vector that will store extracted lines for one or more images
- mask: mask matrix to detect only KeyLines of interest
Overloaded parameters
- images: input images
- keylines: set of vectors that will store extracted lines for one or more images
- masks: vector of mask matrices to detect only KeyLines of interest from each input image
C++ default parameters
- masks: std::vector
()
sourcefn compute(
&self,
image: &Mat,
keylines: &mut Vector<KeyLine>,
descriptors: &mut Mat,
return_float_descr: bool
) -> Result<()>
fn compute( &self, image: &Mat, keylines: &mut Vector<KeyLine>, descriptors: &mut Mat, return_float_descr: bool ) -> Result<()>
Requires descriptors computation
Parameters
- image: input image
- keylines: vector containing lines for which descriptors must be computed
- descriptors:
- returnFloatDescr: flag (when set to true, original non-binary descriptors are returned)
C++ default parameters
- return_float_descr: false
sourcefn compute_1(
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
descriptors: &mut Vector<Mat>,
return_float_descr: bool
) -> Result<()>
fn compute_1( &self, images: &Vector<Mat>, keylines: &mut Vector<Vector<KeyLine>>, descriptors: &mut Vector<Mat>, return_float_descr: bool ) -> Result<()>
Requires descriptors computation
Parameters
- image: input image
- keylines: vector containing lines for which descriptors must be computed
- descriptors:
- returnFloatDescr: flag (when set to true, original non-binary descriptors are returned)
Overloaded parameters
- images: input images
- keylines: set of vectors containing lines for which descriptors must be computed
- descriptors:
- returnFloatDescr: flag (when set to true, original non-binary descriptors are returned)
C++ default parameters
- return_float_descr: false
sourcefn descriptor_size(&self) -> Result<i32>
fn descriptor_size(&self) -> Result<i32>
Return descriptor size
sourcefn descriptor_type(&self) -> Result<i32>
fn descriptor_type(&self) -> Result<i32>
Return data type
sourcefn default_norm(&self) -> Result<i32>
fn default_norm(&self) -> Result<i32>
returns norm mode
sourcefn apply(
&self,
image: &dyn ToInputArray,
mask: &dyn ToInputArray,
keylines: &mut Vector<KeyLine>,
descriptors: &mut dyn ToOutputArray,
use_provided_key_lines: bool,
return_float_descr: bool
) -> Result<()>
fn apply( &self, image: &dyn ToInputArray, mask: &dyn ToInputArray, keylines: &mut Vector<KeyLine>, descriptors: &mut dyn ToOutputArray, use_provided_key_lines: bool, return_float_descr: bool ) -> Result<()>
Define operator ‘()’ to perform detection of KeyLines and computation of descriptors in a row.
Parameters
- image: input image
- mask: mask matrix to select which lines in KeyLines must be accepted among the ones extracted (used when keylines is not empty)
- keylines: vector that contains input lines (when filled, the detection part will be skipped and input lines will be passed as input to the algorithm computing descriptors)
- descriptors: matrix that will store final descriptors
- useProvidedKeyLines: flag (when set to true, detection phase will be skipped and only computation of descriptors will be executed, using lines provided in keylines)
- returnFloatDescr: flag (when set to true, original non-binary descriptors are returned)
C++ default parameters
- use_provided_key_lines: false
- return_float_descr: false