/** * Reads a PPM image file directly into a Planar<GrayU8> image. To improve performance when reading * many images, the user can provide work space memory in the optional parameters * * @param fileName Location of PPM file * @param storage (Optional) Where the image is written in to. Will be resized if needed. * If null or the number of bands isn't 3, a new instance is declared. * @param temp (Optional) Used internally to store the image. Can be null. * @return The image. * @throws IOException */ public static Planar<GrayU8> loadPPM_U8(String fileName , Planar<GrayU8> storage , GrowQueue_I8 temp ) throws IOException { return loadPPM_U8(new FileInputStream(fileName),storage,temp); }