[−][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.
Implementations
impl BinaryDescriptor
[src]
pub fn as_raw_BinaryDescriptor(&self) -> *const c_void
[src]
pub fn as_raw_mut_BinaryDescriptor(&mut self) -> *mut c_void
[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 recommended.
C++ default parameters
- parameters: BinaryDescriptor::Params()
pub fn create_binary_descriptor() -> Result<Ptr<BinaryDescriptor>>
[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<Ptr<BinaryDescriptor>>
[src]
parameters: BinaryDescriptor_Params
) -> Result<Ptr<BinaryDescriptor>>
Trait Implementations
impl AlgorithmTrait for BinaryDescriptor
[src]
pub fn as_raw_Algorithm(&self) -> *const c_void
[src]
pub fn as_raw_mut_Algorithm(&mut self) -> *mut c_void
[src]
pub fn clear(&mut self) -> Result<()>
[src]
pub fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
pub fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
[src]
pub fn read(&mut self, fn_: &FileNode) -> Result<()>
[src]
pub fn empty(&self) -> Result<bool>
[src]
pub fn save(&self, filename: &str) -> Result<()>
[src]
pub fn get_default_name(&self) -> Result<String>
[src]
impl BinaryDescriptorTrait for BinaryDescriptor
[src]
pub fn as_raw_BinaryDescriptor(&self) -> *const c_void
[src]
pub fn as_raw_mut_BinaryDescriptor(&mut self) -> *mut c_void
[src]
pub fn get_num_of_octaves(&mut self) -> Result<i32>
[src]
pub fn set_num_of_octaves(&mut self, octaves: i32) -> Result<()>
[src]
pub fn get_width_of_band(&mut self) -> Result<i32>
[src]
pub fn set_width_of_band(&mut self, width: i32) -> Result<()>
[src]
pub fn get_reduction_ratio(&mut self) -> Result<i32>
[src]
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 Vector<KeyLine>,
mask: &Mat
) -> Result<()>
[src]
&mut self,
image: &Mat,
keypoints: &mut Vector<KeyLine>,
mask: &Mat
) -> Result<()>
pub fn detect_1(
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
masks: &Vector<Mat>
) -> Result<()>
[src]
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
masks: &Vector<Mat>
) -> Result<()>
pub fn compute(
&self,
image: &Mat,
keylines: &mut Vector<KeyLine>,
descriptors: &mut Mat,
return_float_descr: bool
) -> Result<()>
[src]
&self,
image: &Mat,
keylines: &mut Vector<KeyLine>,
descriptors: &mut Mat,
return_float_descr: bool
) -> Result<()>
pub fn compute_1(
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
descriptors: &mut Vector<Mat>,
return_float_descr: bool
) -> Result<()>
[src]
&self,
images: &Vector<Mat>,
keylines: &mut Vector<Vector<KeyLine>>,
descriptors: &mut Vector<Mat>,
return_float_descr: bool
) -> Result<()>
pub fn descriptor_size(&self) -> Result<i32>
[src]
pub fn descriptor_type(&self) -> Result<i32>
[src]
pub fn default_norm(&self) -> Result<i32>
[src]
impl Boxed for BinaryDescriptor
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for BinaryDescriptor
[src]
impl Send for BinaryDescriptor
[src]
Auto Trait Implementations
impl RefUnwindSafe for BinaryDescriptor
[src]
impl !Sync for BinaryDescriptor
[src]
impl Unpin for BinaryDescriptor
[src]
impl UnwindSafe for BinaryDescriptor
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,