Struct 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 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.