<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - HDF5 plugin doesnt load"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=989#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - HDF5 plugin doesnt load"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=989">bug 989</a>
from <span class="vcard"><a class="email" href="mailto:ronneber@informatik.uni-freiburg.de" title="Olaf Ronneberger <ronneber@informatik.uni-freiburg.de>"> <span class="fn">Olaf Ronneberger</span></a>
</span></b>
<pre>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();
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>