Struct RandomPatternCornerFinder

Source
pub struct RandomPatternCornerFinder { /* private fields */ }
Expand description

Class for finding features points and corresponding 3D in world coordinate of a “random” pattern, which can be to be used in calibration. It is useful when pattern is partly occluded or only a part of pattern can be observed in multiple cameras calibration. The pattern can be generated by RandomPatternGenerator class described in this file.

Please refer to paper B. Li, L. Heng, K. Kevin and M. Pollefeys, “A Multiple-Camera System Calibration Toolbox Using A Feature Descriptor-Based Calibration Pattern”, in IROS 2013.

Implementations§

Source§

impl RandomPatternCornerFinder

Source

pub fn new( pattern_width: f32, pattern_height: f32, nmini_match: i32, depth: i32, verbose: i32, show_extraction: i32, detector: Ptr<Feature2D>, descriptor: Ptr<Feature2D>, matcher: Ptr<DescriptorMatcher>, ) -> Result<RandomPatternCornerFinder>

§C++ default parameters
  • nmini_match: 20
  • depth: CV_32F
  • verbose: 0
  • show_extraction: 0
  • detector: AKAZE::create(AKAZE::DESCRIPTOR_MLDB,0,3,0.005f)
  • descriptor: AKAZE::create(AKAZE::DESCRIPTOR_MLDB,0,3,0.005f)
  • matcher: DescriptorMatcher::create(“BruteForce-L1”)
Source

pub fn new_def( pattern_width: f32, pattern_height: f32, ) -> Result<RandomPatternCornerFinder>

§Note

This alternative version of [new] function uses the following default values for its arguments:

  • nmini_match: 20
  • depth: CV_32F
  • verbose: 0
  • show_extraction: 0
  • detector: AKAZE::create(AKAZE::DESCRIPTOR_MLDB,0,3,0.005f)
  • descriptor: AKAZE::create(AKAZE::DESCRIPTOR_MLDB,0,3,0.005f)
  • matcher: DescriptorMatcher::create(“BruteForce-L1”)

Trait Implementations§

Source§

impl Boxed for RandomPatternCornerFinder

Source§

unsafe fn from_raw( ptr: <RandomPatternCornerFinder as OpenCVFromExtern>::ExternReceive, ) -> Self

Wrap the specified raw pointer Read more
Source§

fn into_raw( self, ) -> <RandomPatternCornerFinder as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying raw pointer while consuming this wrapper. Read more
Source§

fn as_raw( &self, ) -> <RandomPatternCornerFinder as OpenCVTypeExternContainer>::ExternSend

Return the underlying raw pointer. Read more
Source§

fn as_raw_mut( &mut self, ) -> <RandomPatternCornerFinder as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying mutable raw pointer Read more
Source§

impl Debug for RandomPatternCornerFinder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for RandomPatternCornerFinder

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl RandomPatternCornerFinderTrait for RandomPatternCornerFinder

Source§

fn as_raw_mut_RandomPatternCornerFinder(&mut self) -> *mut c_void

Source§

fn load_pattern(&mut self, pattern_image: &impl MatTraitConst) -> Result<()>

Source§

fn load_pattern_1( &mut self, pattern_image: &impl MatTraitConst, pattern_key_points: &Vector<KeyPoint>, pattern_descriptors: &impl MatTraitConst, ) -> Result<()>

Source§

fn compute_object_image_points( &mut self, input_images: Vector<Mat>, ) -> Result<()>

Source§

fn compute_object_image_points_for_single( &mut self, input_image: impl MatTrait, ) -> Result<Vector<Mat>>

Source§

fn get_object_points(&mut self) -> Result<Vector<Mat>>

Source§

fn get_image_points(&mut self) -> Result<Vector<Mat>>

Source§

impl RandomPatternCornerFinderTraitConst for RandomPatternCornerFinder

Source§

impl Send for RandomPatternCornerFinder

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Mat> ModifyInplace for Mat
where Mat: Boxed,

Source§

unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res

Helper function to call OpenCV functions that allow in-place modification of a Mat or another similar object. By passing a mutable reference to the Mat to this function your closure will get called with the read reference and a write references to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data, but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.