|
Bugzilla – Bug 989 |
HDF5 plugin doesnt load |
Last modified: 2015-02-05 08:04:38 CST |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
Here is some code snipplet from my HDF5ImageJ class. I translate the data type into strings (e.g. "uint8") to make the comparison easier: IHDF5ReaderConfigurator conf = HDF5Factory.configureForReading(filename); conf.performNumericConversions(); IHDF5Reader reader = conf.reader(); HDF5DataSetInformation dsInfo = reader.object().getDataSetInformation(dsetName); HDF5DataTypeInformation dsType = dsInfo.getTypeInformation(); String typeText = ""; if (dsType.isSigned() == false) { typeText += "u"; } switch( dsType.getDataClass()) { case INTEGER: typeText += "int" + 8*dsType.getElementSize(); break; case FLOAT: typeText += "float" + 8*dsType.getElementSize(); break; default: typeText += dsInfo.toString(); }