The problem is in the following code:
- Code: Select all
String tReader;
try {
IJ.log("Accessing metadata.");
tReader = new TiffParser(imgIn).getComment();
} catch (IOException e) {
tReader = "";
IJ.log("Failure to parse tiffcomment");
e.printStackTrace();
return;
}
//String manipulation.
IJ.log("Tiffcomment: " + tReader);
The final log command returns "Tiffcomment: null". It prints "Accessing metadata." so there's no exception. When I load the image with bioformats the associated metadata is there.
I'm wondering if there's been an update that has maybe broken some functionality of the code.
Does anyone have any ideas?