Struct opencv::ccalib::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 OpenCVType<'_>>::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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.