[−][src]Struct opencv::xfeatures2d::MSDDetector
Class implementing the MSD (Maximal Self-Dissimilarity) keypoint detector, described in Tombari14.
The algorithm implements a novel interest point detector stemming from the intuition that image patches which are highly dissimilar over a relatively large extent of their surroundings hold the property of being repeatable and distinctive. This concept of "contextual self-dissimilarity" reverses the key paradigm of recent successful techniques such as the Local Self-Similarity descriptor and the Non-Local Means filter, which build upon the presence of similar - rather than dissimilar - patches. Moreover, it extends to contextual information the local self-dissimilarity notion embedded in established detectors of corner-like interest points, thereby achieving enhanced repeatability, distinctiveness and localization accuracy.
Implementations
impl MSDDetector
[src]
pub fn as_raw_MSDDetector(&self) -> *const c_void
[src]
pub fn as_raw_mut_MSDDetector(&mut self) -> *mut c_void
[src]
impl MSDDetector
[src]
pub fn create(
m_patch_radius: i32,
m_search_area_radius: i32,
m_nms_radius: i32,
m_nms_scale_radius: i32,
m_th_saliency: f32,
m_k_nn: i32,
m_scale_factor: f32,
m_n_scales: i32,
m_compute_orientation: bool
) -> Result<Ptr<MSDDetector>>
[src]
m_patch_radius: i32,
m_search_area_radius: i32,
m_nms_radius: i32,
m_nms_scale_radius: i32,
m_th_saliency: f32,
m_k_nn: i32,
m_scale_factor: f32,
m_n_scales: i32,
m_compute_orientation: bool
) -> Result<Ptr<MSDDetector>>
C++ default parameters
- m_patch_radius: 3
- m_search_area_radius: 5
- m_nms_radius: 5
- m_nms_scale_radius: 0
- m_th_saliency: 250.0f
- m_k_nn: 4
- m_scale_factor: 1.25f
- m_n_scales: -1
- m_compute_orientation: false
Trait Implementations
impl AlgorithmTrait for MSDDetector
[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 Boxed for MSDDetector
[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 MSDDetector
[src]
impl Feature2DTrait for MSDDetector
[src]
fn as_raw_Feature2D(&self) -> *const c_void
[src]
fn as_raw_mut_Feature2D(&mut self) -> *mut c_void
[src]
fn detect(
&mut self,
image: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
mask: &dyn ToInputArray
) -> Result<()>
[src]
&mut self,
image: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
mask: &dyn ToInputArray
) -> Result<()>
fn detect_multiple(
&mut self,
images: &dyn ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
masks: &dyn ToInputArray
) -> Result<()>
[src]
&mut self,
images: &dyn ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
masks: &dyn ToInputArray
) -> Result<()>
fn compute(
&mut self,
image: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
descriptors: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
image: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
descriptors: &mut dyn ToOutputArray
) -> Result<()>
fn compute_multiple(
&mut self,
images: &dyn ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
descriptors: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
images: &dyn ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
descriptors: &mut dyn ToOutputArray
) -> Result<()>
fn detect_and_compute(
&mut self,
image: &dyn ToInputArray,
mask: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
descriptors: &mut dyn ToOutputArray,
use_provided_keypoints: bool
) -> Result<()>
[src]
&mut self,
image: &dyn ToInputArray,
mask: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
descriptors: &mut dyn ToOutputArray,
use_provided_keypoints: bool
) -> Result<()>
fn descriptor_size(&self) -> Result<i32>
[src]
fn descriptor_type(&self) -> Result<i32>
[src]
fn default_norm(&self) -> Result<i32>
[src]
fn write(&self, file_name: &str) -> Result<()>
[src]
fn read(&mut self, file_name: &str) -> Result<()>
[src]
fn write_1(&self, unnamed: &mut FileStorage) -> Result<()>
[src]
fn read_1(&mut self, unnamed: &FileNode) -> Result<()>
[src]
fn empty(&self) -> Result<bool>
[src]
fn get_default_name(&self) -> Result<String>
[src]
fn write_2(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
[src]
impl MSDDetectorTrait for MSDDetector
[src]
fn as_raw_MSDDetector(&self) -> *const c_void
[src]
fn as_raw_mut_MSDDetector(&mut self) -> *mut c_void
[src]
impl Send for MSDDetector
[src]
Auto Trait Implementations
impl RefUnwindSafe for MSDDetector
[src]
impl !Sync for MSDDetector
[src]
impl Unpin for MSDDetector
[src]
impl UnwindSafe for MSDDetector
[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>,