ImgLib2 is a multidimensional image processing library. It provides a general mechanism for writing image analysis algorithms, without writing case logic for bit depth, or worrying about the source of the pixel data (arrays in memory, files on disk, etc.).
The SCIFIO project provides an ImgOpener utility class for reading data into ImgLib2 data structures using Bio-Formats.