Ejemplo n.º 1
0
 public void AtWrite(double value, String atlabel)
 {
     using (CvString csAtLabel = new CvString(atlabel))
         HdfInvoke.cveHDF5AtWriteDouble(_ptr, value, csAtLabel);
 }
Ejemplo n.º 2
0
 public void AtWrite(String value, String atlabel)
 {
     using (CvString csValue = new CvString(value))
         using (CvString csAtLabel = new CvString(atlabel))
             HdfInvoke.cveHDF5AtWriteString(_ptr, csValue, csAtLabel);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Open or create hdf5 file.
 /// </summary>
 /// <param name="fileName">Specify the HDF5 filename.</param>
 public HDF5(String fileName)
 {
     using (CvString csFileName = new CvString(fileName))
         _ptr = HdfInvoke.cveHDF5Create(csFileName, ref _sharedPtr);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Close and release hdf5 object.
 /// </summary>
 public void Close()
 {
     HdfInvoke.cveHDF5Close(_ptr);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Write an attribute inside the root group.
 /// </summary>
 /// <param name="value">Attribute value.</param>
 /// <param name="atLabel">Attribute name.</param>
 public void AtWrite(IInputArray value, String atLabel)
 {
     using (InputArray iaValue = value.GetInputArray())
         using (CvString csAtLabel = new CvString(atLabel))
             HdfInvoke.cveHDF5AtWriteArray(_ptr, iaValue, csAtLabel);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Read an attribute from the root group.
 /// </summary>
 /// <param name="atLabel">Attribute name</param>
 /// <param name="array">The output value</param>
 public void AtReadArray(IOutputArray array, String atLabel)
 {
     using (OutputArray oaArray = array.GetOutputArray())
         using (CvString csAtLabel = new CvString(atLabel))
             HdfInvoke.cveHDF5AtReadArray(_ptr, oaArray, csAtLabel);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Write an attribute inside the root group.
 /// </summary>
 /// <param name="value">Attribute value.</param>
 /// <param name="atLabel">Attribute name.</param>
 public void AtWrite(int value, String atLabel)
 {
     using (CvString csAtLabel = new CvString(atLabel))
         HdfInvoke.cveHDF5AtWriteInt(_ptr, value, csAtLabel);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Delete an attribute from the root group.
 /// </summary>
 /// <param name="atLabel">The attribute to be deleted.</param>
 public void AtDelete(String atLabel)
 {
     using (CvString csAtLabel = new CvString(atLabel))
         HdfInvoke.cveHDF5AtDelete(_ptr, csAtLabel);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Check whether a given attribute exits or not in the root group.
 /// </summary>
 /// <param name="atLabel">The attribute name to be checked.</param>
 /// <returns>True if the attribute exists, False otherwise.</returns>
 public bool AtExists(String atLabel)
 {
     using (CvString csAtLabel = new CvString(atLabel))
         return(HdfInvoke.cveHDF5AtExists(_ptr, csAtLabel));
 }