pub trait BinaryDescriptorTraitConst: AlgorithmTraitConst {
    fn as_raw_BinaryDescriptor(&self) -> *const c_void;

    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

Required Methods§

Provided Methods§

Store parameters to a FileStorage object

Parameters
  • fs: output FileStorage file

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()

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

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

Return descriptor size

Return data type

returns norm mode

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

Implementors§