Struct opencv::line_descriptor::BinaryDescriptor
source · pub struct BinaryDescriptor { /* private fields */ }
Expand description
Class implements both functionalities for detection of lines and computation of their binary descriptor.
Class’ interface is mainly based on the ones of classical detectors and extractors, such as Feature2d’s [features2d_main] and [features2d_match]. Retrieved information about lines is stored in line_descriptor::KeyLine objects.
Implementations§
source§impl BinaryDescriptor
impl BinaryDescriptor
sourcepub fn new(
parameters: &impl BinaryDescriptor_ParamsTraitConst
) -> Result<BinaryDescriptor>
pub fn new( parameters: &impl BinaryDescriptor_ParamsTraitConst ) -> Result<BinaryDescriptor>
Constructor
§Parameters
- parameters: configuration parameters BinaryDescriptor::Params
If no argument is provided, constructor sets default values (see comments in the code snippet in previous section). Default values are strongly recommended.
§C++ default parameters
- parameters: BinaryDescriptor::Params()
sourcepub fn new_def() -> Result<BinaryDescriptor>
pub fn new_def() -> Result<BinaryDescriptor>
Constructor
§Parameters
- parameters: configuration parameters BinaryDescriptor::Params
If no argument is provided, constructor sets default values (see comments in the code snippet in previous section). Default values are strongly recommended.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- parameters: BinaryDescriptor::Params()
sourcepub fn create_binary_descriptor() -> Result<Ptr<BinaryDescriptor>>
pub fn create_binary_descriptor() -> Result<Ptr<BinaryDescriptor>>
Create a BinaryDescriptor object with default parameters (or with the ones provided) and return a smart pointer to it