Struct Params

Source
pub struct Params { /* private fields */ }

Implementations§

Source§

impl Params

Source

pub fn default() -> Params

Creates a default instance of the class by calling the default constructor

Source

pub fn default_params() -> Result<Ptr<Params>>

Default parameters A set of parameters which provides better model quality, can be very slow.

Source

pub fn coarse_params() -> Result<Ptr<Params>>

Coarse parameters A set of parameters which provides better speed, can fail to match frames in case of rapid sensor motion.

Source

pub fn hash_tsdf_params(is_coarse: bool) -> Result<Ptr<Params>>

HashTSDF parameters A set of parameters suitable for use with HashTSDFVolume

Trait Implementations§

Source§

impl Boxed for Params

Source§

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

Wrap the specified raw pointer Read more
Source§

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

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

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

Return the underlying raw pointer. Read more
Source§

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

Return the underlying mutable raw pointer Read more
Source§

impl Debug for Params

Source§

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

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

impl Default for Params

Source§

fn default() -> Self

Forwards to infallible Self::default()

Source§

impl Drop for Params

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl ParamsTrait for Params

Source§

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

Source§

fn set_frame_size(&mut self, val: Size)

frame size in pixels
Source§

fn set_intr(&mut self, val: Matx33f)

camera intrinsics
Source§

fn set_rgb_intr(&mut self, val: Matx33f)

rgb camera intrinsics
Source§

fn set_depth_factor(&mut self, val: f32)

pre-scale per 1 meter for input values Typical values are: * 5000 per 1 meter for the 16-bit PNG files of TUM database * 1000 per 1 meter for Kinect 2 device * 1 per 1 meter for the 32-bit float images in the ROS bag files
Source§

fn set_bilateral_sigma_depth(&mut self, val: f32)

Depth sigma in meters for bilateral smooth
Source§

fn set_bilateral_sigma_spatial(&mut self, val: f32)

Spatial sigma in pixels for bilateral smooth
Source§

fn set_bilateral_kernel_size(&mut self, val: i32)

Kernel size in pixels for bilateral smooth
Source§

fn set_pyramid_levels(&mut self, val: i32)

Number of pyramid levels for ICP
Source§

fn set_tsdf_min_camera_movement(&mut self, val: f32)

Minimal camera movement in meters Integrate new depth frame only if camera movement exceeds this value.
Source§

fn set_light_pose(&mut self, val: Vec3f)

light pose for rendering in meters
Source§

fn set_icp_dist_thresh(&mut self, val: f32)

distance theshold for ICP in meters
Source§

fn set_icp_angle_thresh(&mut self, val: f32)

angle threshold for ICP in radians
Source§

fn set_icp_iterations(&mut self, val: Vector<i32>)

number of ICP iterations for each pyramid level
Source§

fn set_truncate_threshold(&mut self, val: f32)

Threshold for depth truncation in meters All depth values beyond this threshold will be set to zero
Source§

fn set_volume_params(&mut self, val: Kinfu_VolumeParams)

Volume parameters
Source§

impl ParamsTraitConst for Params

Source§

fn as_raw_Params(&self) -> *const c_void

Source§

fn frame_size(&self) -> Size

frame size in pixels
Source§

fn intr(&self) -> Matx33f

camera intrinsics
Source§

fn rgb_intr(&self) -> Matx33f

rgb camera intrinsics
Source§

fn depth_factor(&self) -> f32

pre-scale per 1 meter for input values Typical values are: * 5000 per 1 meter for the 16-bit PNG files of TUM database * 1000 per 1 meter for Kinect 2 device * 1 per 1 meter for the 32-bit float images in the ROS bag files
Source§

fn bilateral_sigma_depth(&self) -> f32

Depth sigma in meters for bilateral smooth
Source§

fn bilateral_sigma_spatial(&self) -> f32

Spatial sigma in pixels for bilateral smooth
Source§

fn bilateral_kernel_size(&self) -> i32

Kernel size in pixels for bilateral smooth
Source§

fn pyramid_levels(&self) -> i32

Number of pyramid levels for ICP
Source§

fn tsdf_min_camera_movement(&self) -> f32

Minimal camera movement in meters Integrate new depth frame only if camera movement exceeds this value.
Source§

fn light_pose(&self) -> Vec3f

light pose for rendering in meters
Source§

fn icp_dist_thresh(&self) -> f32

distance theshold for ICP in meters
Source§

fn icp_angle_thresh(&self) -> f32

angle threshold for ICP in radians
Source§

fn icp_iterations(&self) -> Vector<i32>

number of ICP iterations for each pyramid level
Source§

fn truncate_threshold(&self) -> f32

Threshold for depth truncation in meters All depth values beyond this threshold will be set to zero
Source§

fn volume_params(&self) -> Kinfu_VolumeParams

Volume parameters
Source§

impl Send for Params

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.