LOGGER.debug("Getting image dimensions from: {}", file);
}
final ImageRecord dim = new ImageRecord(file);
final Opener o = new Opener();
final ImagePlus imp = o.openImage(file);
if (imp == null) {
return null;
}
ImageProcessor ip = imp.getProcessor();
final int width = ip.getWidth();
final int height = ip.getHeight();
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("{} (width: {} | height: {})", file, Integer.toString(width), Integer.toString(height));