IJ.openImage returning NULL after using BioFormats to open?
Posted by
Kenneth Sloan-2 on
Aug 25, 2020; 7:25pm
URL: http://imagej.273.s1.nabble.com/IJ-openImage-returning-NULL-after-using-BioFormats-to-open-tp5023882.html
I'm dealing with a new (to me) image format. I have two very similar images, with extensions .hdr and .img. Both behave the same.
When I call (from Java):
ImagePlus ipl = IJ.openImage(path);
...the Bio-Formats Import Options screen appears.
I accept all defaults (I've also tried "Standard ImageJ" instead of "Hyperstack") and a single image is displayed (perhaps it's actually a one-slice stack?)
But, ipl is null!
I'm going to workaround this by saving the image as a .tif and proceed from there - but I thought I'd ask: "what am I doing wrong"?
Question 2 - should I be surprised that the image is DISPLAYED? My plugin wants the ImageProcessor, and will use it to create a custom ImagePlus (with a few minor extensions). I'm guessing that once Bio-Formats is called, all bets are off?
--
Kenneth Sloan
[hidden email]
Vision is the art of seeing what is invisible to others.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html