Reading metadata from java plugin
Posted: Mon Dec 07, 2015 4:26 pm
Hi,
I'm wondering how to read seriesName with bioformat API from a java plugin. Start some code, but I'm stuck at this level :
Thanks
Philippe
I'm wondering how to read seriesName with bioformat API from a java plugin. Start some code, but I'm stuck at this level :
- Code: Select all
IFormatReader reader;
for (int f = 0; f < imageFile.length;f++) {
if (imageFile[f].endsWith(".nd")) {
try {
imageName = imageFile[f].substring(0, imageFile[f].indexOf(".nd"));
reader.setId(imageDir+imageFile);
int series = reader.getSeriesCount();
for (int s = 0; s < series; s++) {
reader.setSeries(s);
int channels = reader.getSizeC();
int zStack = reader.getSizeZ();
int timePoint = reader.getSizeT();
String seriesName =
Thanks
Philippe