[−][src]Struct opencv::line_descriptor::BinaryDescriptor
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 @ref features2d_main and @ref features2d_match. Retrieved information about lines is stored in line_descriptor::KeyLine objects.
Methods
impl BinaryDescriptor
[src]
pub fn as_raw_BinaryDescriptor(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
impl BinaryDescriptor
[src]
pub fn new(parameters: &BinaryDescriptor_Params) -> Result<BinaryDescriptor>
[src]
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 reccomended.
C++ default parameters
- parameters: BinaryDescriptor::Params()
pub fn create_binary_descriptor() -> Result<PtrOfBinaryDescriptor>
[src]
Create a BinaryDescriptor object with default parameters (or with the ones provided) and return a smart pointer to it
pub fn create_binary_descriptor_1(
parameters: &BinaryDescriptor_Params
) -> Result<PtrOfBinaryDescriptor>
[src]
parameters: &BinaryDescriptor_Params
) -> Result<PtrOfBinaryDescriptor>
pub fn get_num_of_octaves(&mut self) -> Result<i32>
[src]
Get current number of octaves
pub fn set_num_of_octaves(&mut self, octaves: i32) -> Result<()>
[src]
pub fn get_width_of_band(&mut self) -> Result<i32>
[src]
Get current width of bands
pub fn set_width_of_band(&mut self, width: i32) -> Result<()>
[src]
pub fn get_reduction_ratio(&mut self) -> Result<i32>
[src]
Get current reduction ratio (used in Gaussian pyramids)
pub fn set_reduction_ratio(&mut self, r_ratio: i32) -> Result<()>
[src]
pub fn read(&mut self, _fn: &FileNode) -> Result<()>
[src]
pub fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
pub fn detect(
&mut self,
image: &Mat,
keypoints: &mut VectorOfKeyLine,
mask: &Mat
) -> Result<()>
[src]
&mut self,
image: &Mat,
keypoints: &mut VectorOfKeyLine,
mask: &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
C++ default parameters
- mask: Mat()
pub fn detect_1(
&self,
images: &VectorOfMat,
keylines: &mut VectorOfVectorOfKeyLine,
masks: &VectorOfMat
) -> Result<()>
[src]
&self,
images: &VectorOfMat,
keylines: &mut VectorOfVectorOfKeyLine,
masks: &VectorOfMat
) -> Result<()>
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
()
pub fn compute(
&self,
image: &Mat,
keylines: &mut VectorOfKeyLine,
descriptors: &mut Mat,
return_float_descr: bool
) -> Result<()>
[src]
&self,
image: &Mat,
keylines: &mut VectorOfKeyLine,
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
pub fn compute_1(
&self,
images: &VectorOfMat,
keylines: &mut VectorOfVectorOfKeyLine,
descriptors: &mut VectorOfMat,
return_float_descr: bool
) -> Result<()>
[src]
&self,
images: &VectorOfMat,
keylines: &mut VectorOfVectorOfKeyLine,
descriptors: &mut VectorOfMat,
return_float_descr: bool
) -> Result<()>
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
pub fn descriptor_size(&self) -> Result<i32>
[src]
Return descriptor size
pub fn descriptor_type(&self) -> Result<i32>
[src]
Return data type
pub fn default_norm(&self) -> Result<i32>
[src]
returns norm mode
Trait Implementations
impl Algorithm for BinaryDescriptor
[src]
fn as_raw_Algorithm(&self) -> *mut c_void
[src]
fn clear(&mut self) -> Result<()>
[src]
fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
fn write_1(&self, fs: &PtrOfFileStorage, name: &str) -> Result<()>
[src]
fn read(&mut self, _fn: &FileNode) -> Result<()>
[src]
fn empty(&self) -> Result<bool>
[src]
fn save(&self, filename: &str) -> Result<()>
[src]
fn get_default_name(&self) -> Result<String>
[src]
impl Drop for BinaryDescriptor
[src]
impl Send for BinaryDescriptor
[src]
Auto Trait Implementations
impl Unpin for BinaryDescriptor
impl !Sync for BinaryDescriptor
impl UnwindSafe for BinaryDescriptor
impl RefUnwindSafe for BinaryDescriptor
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,