/** * Loads a PGM image from an {@link InputStream}. * * @param fileName InputStream for PGM image * @param storage (Optional) Storage for output image. Must be the width and height of the image being read. * If null a new image will be declared. * @return The read in image * @throws IOException */ public static GrayU8 loadPGM_U8(String fileName , GrayU8 storage ) throws IOException { return loadPGM_U8(new FileInputStream(fileName),storage); }