public void AtWrite(double value, String atlabel) { using (CvString csAtLabel = new CvString(atlabel)) HdfInvoke.cveHDF5AtWriteDouble(_ptr, value, csAtLabel); }
public void AtWrite(String value, String atlabel) { using (CvString csValue = new CvString(value)) using (CvString csAtLabel = new CvString(atlabel)) HdfInvoke.cveHDF5AtWriteString(_ptr, csValue, csAtLabel); }
/// <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); }
/// <summary> /// Close and release hdf5 object. /// </summary> public void Close() { HdfInvoke.cveHDF5Close(_ptr); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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)); }