Struct opencv::hdf::HDF5

source ·
pub struct HDF5 { /* private fields */ }
Expand description

Hierarchical Data Format version 5 interface.

Notice that this module is compiled only when hdf5 is correctly installed.

Trait Implementations§

source§

impl Boxed for HDF5

source§

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

Wrap the specified raw pointer Read more
source§

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

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

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

Return the underlying raw pointer. Read more
source§

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

Return the underlying mutable raw pointer Read more
source§

impl Debug for HDF5

source§

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

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

impl Drop for HDF5

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl HDF5Trait for HDF5

source§

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

source§

fn close(&mut self) -> Result<()>

Close and release hdf5 object.
source§

fn grcreate(&mut self, grlabel: &str) -> Result<()>

Create a group. Read more
source§

fn atdelete(&mut self, atlabel: &str) -> Result<()>

Delete an attribute from the root group. Read more
source§

fn atwrite_i32(&mut self, value: i32, atlabel: &str) -> Result<()>

Write an attribute inside the root group. Read more
source§

fn atread_i32(&mut self, value: &mut i32, atlabel: &str) -> Result<()>

Read an attribute from the root group. Read more
source§

fn atwrite_f64(&mut self, value: f64, atlabel: &str) -> Result<()>

Write an attribute inside the root group. Read more
source§

fn atread_f64(&mut self, value: &mut f64, atlabel: &str) -> Result<()>

Read an attribute from the root group. Read more
source§

fn atwrite_str(&mut self, value: &str, atlabel: &str) -> Result<()>

Write an attribute inside the root group. Read more
source§

fn atread_str(&mut self, value: &mut String, atlabel: &str) -> Result<()>

Read an attribute from the root group. Read more
source§

fn atwrite(&mut self, value: &impl ToInputArray, atlabel: &str) -> Result<()>

Write an attribute into the root group. Read more
source§

fn atread( &mut self, value: &mut impl ToOutputArray, atlabel: &str ) -> Result<()>

Read an attribute from the root group. Read more
source§

impl HDF5TraitConst for HDF5

source§

fn as_raw_HDF5(&self) -> *const c_void

source§

fn hlexists(&self, label: &str) -> Result<bool>

Check if label exists or not. Read more
source§

fn atexists(&self, atlabel: &str) -> Result<bool>

Check whether a given attribute exits or not in the root group. Read more
source§

fn dscreate(&self, rows: i32, cols: i32, typ: i32, dslabel: &str) -> Result<()>

Create and allocate storage for two dimensional single or multi channel dataset. Read more
source§

fn dscreate_compress( &self, rows: i32, cols: i32, typ: i32, dslabel: &str, compresslevel: i32 ) -> Result<()>

Create and allocate storage for two dimensional single or multi channel dataset. Read more
source§

fn dscreate_compress_dims( &self, rows: i32, cols: i32, typ: i32, dslabel: &str, compresslevel: i32, dims_chunks: &Vector<i32> ) -> Result<()>

Create and allocate storage for two dimensional single or multi channel dataset. Read more
source§

fn dscreate_nd(&self, sizes: &[i32], typ: i32, dslabel: &str) -> Result<()>

source§

fn dscreate_nd_compress( &self, sizes: &[i32], typ: i32, dslabel: &str, compresslevel: i32 ) -> Result<()>

source§

fn dscreate_nd_vec_compress_dims( &self, sizes: &Vector<i32>, typ: i32, dslabel: &str, compresslevel: i32, dims_chunks: &Vector<i32> ) -> Result<()>

C++ default parameters Read more
source§

fn dscreate_nd_vec_compress_dims_def( &self, sizes: &Vector<i32>, typ: i32, dslabel: &str ) -> Result<()>

source§

fn dscreate_nd_compress_dims( &self, sizes: &[i32], typ: i32, dslabel: &str, compresslevel: i32, dims_chunks: &i32 ) -> Result<()>

Create and allocate storage for n-dimensional dataset, single or multichannel type. Read more
source§

fn dsgetsize(&self, dslabel: &str, dims_flag: i32) -> Result<Vector<i32>>

Fetch dataset sizes Read more
source§

fn dsgetsize_def(&self, dslabel: &str) -> Result<Vector<i32>>

Fetch dataset sizes Read more
source§

fn dsgettype(&self, dslabel: &str) -> Result<i32>

Fetch dataset type Read more
source§

fn dswrite(&self, array: &impl ToInputArray, dslabel: &str) -> Result<()>

source§

fn dswrite_offset( &self, array: &impl ToInputArray, dslabel: &str, dims_offset: &Vector<i32>, dims_counts: &Vector<i32> ) -> Result<()>

C++ default parameters Read more
source§

fn dswrite_offset_def( &self, array: &impl ToInputArray, dslabel: &str, dims_offset: &Vector<i32> ) -> Result<()>

source§

fn dsinsert(&self, array: &impl ToInputArray, dslabel: &str) -> Result<()>

source§

fn dsinsert_offset( &self, array: &impl ToInputArray, dslabel: &str, dims_offset: &Vector<i32>, dims_counts: &Vector<i32> ) -> Result<()>

C++ default parameters Read more
source§

fn dsinsert_offset_def( &self, array: &impl ToInputArray, dslabel: &str, dims_offset: &Vector<i32> ) -> Result<()>

source§

fn dsread(&self, array: &mut impl ToOutputArray, dslabel: &str) -> Result<()>

source§

fn dsread_offset( &self, array: &mut impl ToOutputArray, dslabel: &str, dims_offset: &Vector<i32>, dims_counts: &Vector<i32> ) -> Result<()>

C++ default parameters Read more
source§

fn dsread_offset_def( &self, array: &mut impl ToOutputArray, dslabel: &str, dims_offset: &Vector<i32> ) -> Result<()>

source§

fn kpgetsize(&self, kplabel: &str, dims_flag: i32) -> Result<i32>

Fetch keypoint dataset size Read more
source§

fn kpgetsize_def(&self, kplabel: &str) -> Result<i32>

Fetch keypoint dataset size Read more
source§

fn kpcreate( &self, size: i32, kplabel: &str, compresslevel: i32, chunks: i32 ) -> Result<()>

Create and allocate special storage for cv::KeyPoint dataset. Read more
source§

fn kpcreate_def(&self, size: i32, kplabel: &str) -> Result<()>

Create and allocate special storage for cv::KeyPoint dataset. Read more
source§

fn kpwrite( &self, keypoints: Vector<KeyPoint>, kplabel: &str, offset: i32, counts: i32 ) -> Result<()>

Write or overwrite list of KeyPoint into specified dataset of hdf5 file. Read more
source§

fn kpwrite_def(&self, keypoints: Vector<KeyPoint>, kplabel: &str) -> Result<()>

Write or overwrite list of KeyPoint into specified dataset of hdf5 file. Read more
source§

fn kpinsert( &self, keypoints: Vector<KeyPoint>, kplabel: &str, offset: i32, counts: i32 ) -> Result<()>

Insert or overwrite list of KeyPoint into specified dataset and autoexpand dataset size if unlimited property allows. Read more
source§

fn kpinsert_def(&self, keypoints: Vector<KeyPoint>, kplabel: &str) -> Result<()>

Insert or overwrite list of KeyPoint into specified dataset and autoexpand dataset size if unlimited property allows. Read more
source§

fn kpread( &self, keypoints: &mut Vector<KeyPoint>, kplabel: &str, offset: i32, counts: i32 ) -> Result<()>

Read specific keypoint dataset from hdf5 file into vector object. Read more
source§

fn kpread_def( &self, keypoints: &mut Vector<KeyPoint>, kplabel: &str ) -> Result<()>

Read specific keypoint dataset from hdf5 file into vector object. Read more
source§

impl Send for HDF5

Auto Trait Implementations§

§

impl Freeze for HDF5

§

impl RefUnwindSafe for HDF5

§

impl !Sync for HDF5

§

impl Unpin for HDF5

§

impl UnwindSafe for HDF5

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 of course unsafe as it breaks the Rust aliasing rules, but it might 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>,

§

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.