OpenCV  3.1.0
Open Source Computer Vision
Classes | Enumerations | Functions
Hierarchical Data Format version 5

Classes

class  cv::hdf::HDF5
 Hierarchical Data Format version 5 interface. More...
 

Enumerations

enum  {
  cv::hdf::HDF5::H5_UNLIMITED = -1,
  cv::hdf::HDF5::H5_NONE = -1,
  cv::hdf::HDF5::H5_GETDIMS = 100,
  cv::hdf::HDF5::H5_GETMAXDIMS = 101
}
 

Functions

Ptr< HDF5 > cv::hdf::open (String HDF5Filename)
 Open or create hdf5 file. More...
 

Detailed Description

Hierarchical Data Format version 5

Enumeration Type Documentation

anonymous enum
Enumerator
H5_UNLIMITED 
H5_NONE 
H5_GETDIMS 
H5_GETMAXDIMS 

Function Documentation

Ptr<HDF5> cv::hdf::open ( String  HDF5Filename)

Open or create hdf5 file.

Parameters
HDF5Filenamespecify the HDF5 filename.

Returns pointer to the hdf5 object class

Note
If hdf5 file does not exist it will be created. Any operations except dscreate() functions on object will be thread safe. Multiple datasets can be created inside single hdf5 file, and can be accessed from same hdf5 object from multiple instances as long read or write operations are done over non-overlapping regions of dataset. Single hdf5 file also can be opened by multiple instances, reads and writes can be instantiated at the same time as long non-overlapping regions are involved. Object is released using close().
hdfview_demo.gif
Visualization of 10x10 CV_64FC2 (Hilbert matrix) using HDFView tool
  • Text dump (3x3 Hilbert matrix) of hdf5 dataset using h5dump tool:
    $ h5dump test.h5
    HDF5 "test.h5" {
    GROUP "/" {
    DATASET "hilbert" {
    DATATYPE H5T_ARRAY { [2] H5T_IEEE_F64LE }
    DATASPACE SIMPLE { ( 3, 3 ) / ( 3, 3 ) }
    DATA {
    (0,0): [ 1, -1 ], [ 0.5, -0.5 ], [ 0.333333, -0.333333 ],
    (1,0): [ 0.5, -0.5 ], [ 0.333333, -0.333333 ], [ 0.25, -0.25 ],
    (2,0): [ 0.333333, -0.333333 ], [ 0.25, -0.25 ], [ 0.2, -0.2 ]
    }
    }
    }
    }