Example #1
0
 /// <summary>
 /// Create and allocate storage for two dimensional single or multi channel dataset.
 /// </summary>
 /// <param name="rows">Declare amount of rows</param>
 /// <param name="cols">Declare amount of columns</param>
 /// <param name="depthType">The pixel depth type</param>
 /// <param name="channels">The number of channels</param>
 /// <param name="dsLabel">Specify the hdf5 dataset label. Existing dataset label will cause an error.</param>
 /// <param name="compressLevel">Specify the compression level 0-9 to be used, -1 is the default value and means no compression. The value 0 also means no compression. A value 9 indicating the best compression ration. Note that a higher compression level indicates a higher computational cost. It relies on GNU gzip for compression.</param>
 /// <param name="dimsChunks">Each array member specifies the chunking size to be used for block I/O, by default null means none at all.</param>
 public void DsCreate(int rows, int cols, DepthType depthType, int channels, String dsLabel, int compressLevel = -1, VectorOfInt dimsChunks = null)
 {
     using (CvString csDsLabel = new CvString(dsLabel))
     {
         HdfInvoke.cveHDF5DsCreate(_ptr, rows, cols, CvInvoke.MakeType(depthType, channels), csDsLabel, compressLevel, dimsChunks);
     }
 }
Example #2
0
 public void cveHDF5DsCreate(int rows, int cols, int type, String dslabel, int compresslevel = -1, VectorOfInt dimsChunks = null)
 {
     using (CvString csDsLabel = new CvString(dslabel))
     {
         HdfInvoke.cveHDF5DsCreate(_ptr, rows, cols, type, csDsLabel, compresslevel, dimsChunks);
     }
 }