[−][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]
fn as_raw_Algorithm(&self) -> *const c_void
[src]
fn as_raw_mut_Algorithm(&mut self) -> *mut c_void
[src]
fn clear(&mut self) -> Result<()>
[src]
fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
fn write_with_name(&self, fs: &Ptr<FileStorage>, 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 BinaryDescriptorTrait for BinaryDescriptor
[src]
fn as_raw_BinaryDescriptor(&self) -> *const c_void
[src]
fn as_raw_mut_BinaryDescriptor(&mut self) -> *mut c_void
[src]
fn get_num_of_octaves(&mut self) -> Result<i32>
[src]
fn set_num_of_octaves(&mut self, octaves: i32) -> Result<()>
[src]
fn get_width_of_band(&mut self) -> Result<i32>
[src]
fn set_width_of_band(&mut self, width: i32) -> Result<()>
[src]
fn get_reduction_ratio(&mut self) -> Result<i32>
[src]
fn set_reduction_ratio(&mut self, r_ratio: i32) -> Result<()>
[src]
fn read(&mut self, fn_: &FileNode) -> Result<()>
[src]
fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
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<()>
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<()>
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<()>
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<()>
fn descriptor_size(&self) -> Result<i32>
[src]
fn descriptor_type(&self) -> Result<i32>
[src]
fn default_norm(&self) -> Result<i32>
[src]
impl Boxed for BinaryDescriptor
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
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
impl !Sync for BinaryDescriptor
impl Unpin for BinaryDescriptor
impl UnwindSafe for BinaryDescriptor
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>,