[ImageJ-bugs] [Bug 989] HDF5 plugin doesnt load
bugzilla at fiji.sc
bugzilla at fiji.sc
Thu Feb 5 06:21:13 CST 2015
http://fiji.sc/bugzilla/show_bug.cgi?id=989
--- Comment #10 from Olaf Ronneberger <ronneber at informatik.uni-freiburg.de> ---
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();
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20150205/fba5872a/attachment.html>
More information about the Imagej-bugs
mailing list