pub struct Kinfu_VolumeParams { /* private fields */ }
Implementations§
Source§impl Kinfu_VolumeParams
impl Kinfu_VolumeParams
Sourcepub fn default() -> Kinfu_VolumeParams
pub fn default() -> Kinfu_VolumeParams
Creates a default instance of the class by calling the default constructor
Sourcepub fn default_params(
_volume_type: Kinfu_VolumeType,
) -> Result<Ptr<Kinfu_VolumeParams>>
pub fn default_params( _volume_type: Kinfu_VolumeType, ) -> Result<Ptr<Kinfu_VolumeParams>>
Default set of parameters that provide higher quality reconstruction at the cost of slow performance.
Sourcepub fn coarse_params(
_volume_type: Kinfu_VolumeType,
) -> Result<Ptr<Kinfu_VolumeParams>>
pub fn coarse_params( _volume_type: Kinfu_VolumeType, ) -> Result<Ptr<Kinfu_VolumeParams>>
Coarse set of parameters that provides relatively higher performance at the cost of reconstrution quality.
Trait Implementations§
Source§impl Boxed for Kinfu_VolumeParams
impl Boxed for Kinfu_VolumeParams
Source§unsafe fn from_raw(
ptr: <Kinfu_VolumeParams as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <Kinfu_VolumeParams as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <Kinfu_VolumeParams as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <Kinfu_VolumeParams as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(
&self,
) -> <Kinfu_VolumeParams as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self, ) -> <Kinfu_VolumeParams as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <Kinfu_VolumeParams as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <Kinfu_VolumeParams as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for Kinfu_VolumeParams
impl Debug for Kinfu_VolumeParams
Source§impl Default for Kinfu_VolumeParams
impl Default for Kinfu_VolumeParams
Source§impl Drop for Kinfu_VolumeParams
impl Drop for Kinfu_VolumeParams
Source§impl Kinfu_VolumeParamsTrait for Kinfu_VolumeParams
impl Kinfu_VolumeParamsTrait for Kinfu_VolumeParams
fn as_raw_mut_Kinfu_VolumeParams(&mut self) -> *mut c_void
Source§fn set_type(&mut self, val: Kinfu_VolumeType)
fn set_type(&mut self, val: Kinfu_VolumeType)
Type of Volume
Values can be TSDF (single volume) or HASHTSDF (hashtable of volume units)
Source§fn set_resolution(&mut self, val: Vec3i)
fn set_resolution(&mut self, val: Vec3i)
Resolution of voxel space
Number of voxels in each dimension.
Applicable only for TSDF Volume.
HashTSDF volume only supports equal resolution in all three dimensions
Source§fn set_unit_resolution(&mut self, val: i32)
fn set_unit_resolution(&mut self, val: i32)
Resolution of volumeUnit in voxel space
Number of voxels in each dimension for volumeUnit
Applicable only for hashTSDF. Read more
Source§fn set_voxel_size(&mut self, val: f32)
fn set_voxel_size(&mut self, val: f32)
Length of voxels in meters
Source§fn set_tsdf_trunc_dist(&mut self, val: f32)
fn set_tsdf_trunc_dist(&mut self, val: f32)
TSDF truncation distance
Distances greater than value from surface will be truncated to 1.0
Source§fn set_max_weight(&mut self, val: i32)
fn set_max_weight(&mut self, val: i32)
Max number of frames to integrate per voxel
Represents the max number of frames over which a running average
of the TSDF is calculated for a voxel
Source§fn set_depth_trunc_threshold(&mut self, val: f32)
fn set_depth_trunc_threshold(&mut self, val: f32)
Threshold for depth truncation in meters
Truncates the depth greater than threshold to 0
Source§fn set_raycast_step_factor(&mut self, val: f32)
fn set_raycast_step_factor(&mut self, val: f32)
Length of single raycast step
Describes the percentage of voxel length that is skipped per march
Source§impl Kinfu_VolumeParamsTraitConst for Kinfu_VolumeParams
impl Kinfu_VolumeParamsTraitConst for Kinfu_VolumeParams
fn as_raw_Kinfu_VolumeParams(&self) -> *const c_void
Source§fn typ(&self) -> Kinfu_VolumeType
fn typ(&self) -> Kinfu_VolumeType
Type of Volume
Values can be TSDF (single volume) or HASHTSDF (hashtable of volume units)
Source§fn resolution(&self) -> Vec3i
fn resolution(&self) -> Vec3i
Resolution of voxel space
Number of voxels in each dimension.
Applicable only for TSDF Volume.
HashTSDF volume only supports equal resolution in all three dimensions
Source§fn unit_resolution(&self) -> i32
fn unit_resolution(&self) -> i32
Resolution of volumeUnit in voxel space
Number of voxels in each dimension for volumeUnit
Applicable only for hashTSDF.
Source§fn voxel_size(&self) -> f32
fn voxel_size(&self) -> f32
Length of voxels in meters
Source§fn tsdf_trunc_dist(&self) -> f32
fn tsdf_trunc_dist(&self) -> f32
TSDF truncation distance
Distances greater than value from surface will be truncated to 1.0
Source§fn max_weight(&self) -> i32
fn max_weight(&self) -> i32
Max number of frames to integrate per voxel
Represents the max number of frames over which a running average
of the TSDF is calculated for a voxel
Source§fn depth_trunc_threshold(&self) -> f32
fn depth_trunc_threshold(&self) -> f32
Threshold for depth truncation in meters
Truncates the depth greater than threshold to 0
Source§fn raycast_step_factor(&self) -> f32
fn raycast_step_factor(&self) -> f32
Length of single raycast step
Describes the percentage of voxel length that is skipped per march
impl Send for Kinfu_VolumeParams
Auto Trait Implementations§
impl Freeze for Kinfu_VolumeParams
impl RefUnwindSafe for Kinfu_VolumeParams
impl !Sync for Kinfu_VolumeParams
impl Unpin for Kinfu_VolumeParams
impl UnwindSafe for Kinfu_VolumeParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
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