OpenCV
3.1.0
Open Source Computer Vision
|
Hierarchical Data Format version 5 interface. More...
#include "hdf5.hpp"
Public Types | |
enum | { H5_UNLIMITED = -1, H5_NONE = -1, H5_GETDIMS = 100, H5_GETMAXDIMS = 101 } |
Public Member Functions | |
virtual | ~HDF5 () |
virtual void | close ()=0 |
Close and release hdf5 object. More... | |
virtual void | dscreate (const int rows, const int cols, const int type, String dslabel, const int compresslevel=HDF5::H5_NONE, const vector< int > &dims_chunks=vector< int >()) const =0 |
virtual void | dscreate (const int rows, const int cols, const int type, String dslabel, const int compresslevel=HDF5::H5_NONE, const int *dims_chunks=NULL) const =0 |
Create and allocate storage for two dimensional single or multi channel dataset. More... | |
virtual void | dscreate (const vector< int > &sizes, const int type, String dslabel, const int compresslevel=HDF5::H5_NONE, const vector< int > &dims_chunks=vector< int >()) const =0 |
virtual void | dscreate (const int n_dims, const int *sizes, const int type, String dslabel, const int compresslevel=HDF5::H5_NONE, const int *dims_chunks=NULL) const =0 |
Create and allocate storage for n-dimensional dataset, single or mutichannel type. More... | |
virtual vector< int > | dsgetsize (String dslabel, int dims_flag=HDF5::H5_GETDIMS) const =0 |
Fetch dataset sizes. More... | |
virtual int | dsgettype (String dslabel) const =0 |
Fetch dataset type. More... | |
virtual void | dsinsert (InputArray Array, String dslabel, const vector< int > &dims_offset=vector< int >(), const vector< int > &dims_counts=vector< int >()) const =0 |
virtual void | dsinsert (InputArray Array, String dslabel, const int *dims_offset=NULL, const int *dims_counts=NULL) const =0 |
Insert or overwrite a Mat object into specified dataset and autoexpand dataset size if unlimited property allows. More... | |
virtual void | dsread (OutputArray Array, String dslabel, const vector< int > &dims_offset=vector< int >(), const vector< int > &dims_counts=vector< int >()) const =0 |
virtual void | dsread (OutputArray Array, String dslabel, const int *dims_offset=NULL, const int *dims_counts=NULL) const =0 |
Read specific dataset from hdf5 file into Mat object. More... | |
virtual void | dswrite (InputArray Array, String dslabel, const vector< int > &dims_offset=vector< int >(), const vector< int > &dims_counts=vector< int >()) const =0 |
virtual void | dswrite (InputArray Array, String dslabel, const int *dims_offset=NULL, const int *dims_counts=NULL) const =0 |
Write or overwrite a Mat object into specified dataset of hdf5 file. More... | |
virtual void | grcreate (String grlabel)=0 |
Create a group. More... | |
virtual bool | hlexists (String label) const =0 |
Check if label exists or not. More... | |
virtual void | kpcreate (const int size, String kplabel, const int compresslevel=H5_NONE, const int chunks=H5_NONE) const =0 |
Create and allocate special storage for cv::KeyPoint dataset. More... | |
virtual int | kpgetsize (String kplabel, int dims_flag=HDF5::H5_GETDIMS) const =0 |
Fetch keypoint dataset size. More... | |
virtual void | kpinsert (const vector< KeyPoint > keypoints, String kplabel, const int offset=H5_NONE, const int counts=H5_NONE) const =0 |
Insert or overwrite list of KeyPoint into specified dataset and autoexpand dataset size if unlimited property allows. More... | |
virtual void | kpread (vector< KeyPoint > &keypoints, String kplabel, const int offset=H5_NONE, const int counts=H5_NONE) const =0 |
Read specific keypoint dataset from hdf5 file into vector<KeyPoint> object. More... | |
virtual void | kpwrite (const vector< KeyPoint > keypoints, String kplabel, const int offset=H5_NONE, const int counts=H5_NONE) const =0 |
Write or overwrite list of KeyPoint into specified dataset of hdf5 file. More... | |
Hierarchical Data Format version 5 interface.
Notice that module is compiled only when hdf5 is correctly installed.
|
inlinevirtual |
|
pure virtual |
Close and release hdf5 object.
|
pure virtual |
|
pure virtual |
Create and allocate storage for two dimensional single or multi channel dataset.
rows | declare amount of rows |
cols | declare amount of cols |
type | type to be used |
dslabel | specify the hdf5 dataset label, any existing dataset with the same label will be overwritten. |
compresslevel | specify the compression level 0-9 to be used, by default H5_NONE means none at all. |
dims_chunks | each array member specify chunking sizes to be used for block i/o, by default NULL means none at all. |
|
pure virtual |
|
pure virtual |
Create and allocate storage for n-dimensional dataset, single or mutichannel type.
n_dims | declare number of dimensions |
sizes | array containing sizes for each dimensions |
type | type to be used |
dslabel | specify the hdf5 dataset label, any existing dataset with the same label will be overwritten. |
compresslevel | specify the compression level 0-9 to be used, by default H5_NONE means none at all. |
dims_chunks | each array member specify chunking sizes to be used for block i/o, by default NULL means none at all. |
|
pure virtual |
Fetch dataset sizes.
dslabel | specify the hdf5 dataset label to be measured. |
dims_flag | will fetch dataset dimensions on H5_GETDIMS, and dataset maximum dimensions on H5_GETMAXDIMS. |
Returns vector object containing sizes of dataset on each dimensions.
|
pure virtual |
Fetch dataset type.
dslabel | specify the hdf5 dataset label to be checked. |
Returns the stored matrix type. This is an identifier compatible with the CvMat type system, like e.g. CV_16SC5 (16-bit signed 5-channel array), and so on.
|
pure virtual |
|
pure virtual |
Insert or overwrite a Mat object into specified dataset and autoexpand dataset size if unlimited property allows.
Array | specify Mat data array to be written. |
dslabel | specify the target hdf5 dataset label. |
dims_offset | each array member specify the offset location over dataset's each dimensions from where InputArray will be (over)written into dataset. |
dims_counts | each array member specify the amount of data over dataset's each dimensions from InputArray that will be written into dataset. |
Writes Mat object into targeted dataset and autoexpand dataset dimension if allowed.
|
pure virtual |
|
pure virtual |
Read specific dataset from hdf5 file into Mat object.
Array | Mat container where data reads will be returned. |
dslabel | specify the source hdf5 dataset label. |
dims_offset | each array member specify the offset location over each dimensions from where dataset starts to read into OutputArray. |
dims_counts | each array member specify the amount over dataset's each dimensions of dataset to read into OutputArray. |
Reads out Mat object reflecting the stored dataset.
|
pure virtual |
|
pure virtual |
Write or overwrite a Mat object into specified dataset of hdf5 file.
Array | specify Mat data array to be written. |
dslabel | specify the target hdf5 dataset label. |
dims_offset | each array member specify the offset location over dataset's each dimensions from where InputArray will be (over)written into dataset. |
dims_counts | each array member specify the amount of data over dataset's each dimensions from InputArray that will be written into dataset. |
Writes Mat object into targeted dataset.
|
pure virtual |
Create a group.
grlabel | specify the hdf5 group label. |
Create a hdf5 group.
|
pure virtual |
Check if label exists or not.
label | specify the hdf5 dataset label. |
Returns true if dataset exists, and false if does not.
|
pure virtual |
Create and allocate special storage for cv::KeyPoint dataset.
size | declare fixed number of KeyPoints |
kplabel | specify the hdf5 dataset label, any existing dataset with the same label will be overwritten. |
compresslevel | specify the compression level 0-9 to be used, by default H5_NONE means none at all. |
chunks | each array member specify chunking sizes to be used for block i/o, by default H5_NONE means none at all. |
|
pure virtual |
Fetch keypoint dataset size.
kplabel | specify the hdf5 dataset label to be measured. |
dims_flag | will fetch dataset dimensions on H5_GETDIMS, and dataset maximum dimensions on H5_GETMAXDIMS. |
Returns size of keypoints dataset.
|
pure virtual |
Insert or overwrite list of KeyPoint into specified dataset and autoexpand dataset size if unlimited property allows.
keypoints | specify keypoints data list to be written. |
kplabel | specify the target hdf5 dataset label. |
offset | specify the offset location on dataset from where keypoints will be (over)written into dataset. |
counts | specify the amount of keypoints that will be written into dataset. |
Writes vector<KeyPoint> object into targeted dataset and autoexpand dataset dimension if allowed.
|
pure virtual |
Read specific keypoint dataset from hdf5 file into vector<KeyPoint> object.
keypoints | vector<KeyPoint> container where data reads will be returned. |
kplabel | specify the source hdf5 dataset label. |
offset | specify the offset location over dataset from where read starts. |
counts | specify the amount of keypoints from dataset to read. |
Reads out vector<KeyPoint> object reflecting the stored dataset.
|
pure virtual |
Write or overwrite list of KeyPoint into specified dataset of hdf5 file.
keypoints | specify keypoints data list to be written. |
kplabel | specify the target hdf5 dataset label. |
offset | specify the offset location on dataset from where keypoints will be (over)written into dataset. |
counts | specify the amount of keypoints that will be written into dataset. |
Writes vector<KeyPoint> object into targeted dataset.