org.neuroph.easyneurons.imgrec
Class ImagesLoader

java.lang.Object
  extended by org.neuroph.easyneurons.imgrec.ImagesLoader

public class ImagesLoader
extends java.lang.Object


Constructor Summary
ImagesLoader()
           
 
Method Summary
static java.util.Map<java.lang.String,org.neuroph.contrib.imgrec.FractionRgbData> getFractionRgbDataForDirectory(java.io.File imgDir, java.awt.Dimension samplingResolution)
          Loads images from the specified dir, scales to specified resolution and creates RGB data for each image Puts RGB data in a Map using filenames as keys, and rerurns that amp
static java.awt.image.BufferedImage loadImage(java.io.File imgFile, java.awt.Dimension samplingResolution)
          Loads image from file into BufferedImage object and scales image to sampling resolution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagesLoader

public ImagesLoader()
Method Detail

getFractionRgbDataForDirectory

public static java.util.Map<java.lang.String,org.neuroph.contrib.imgrec.FractionRgbData> getFractionRgbDataForDirectory(java.io.File imgDir,
                                                                                                                        java.awt.Dimension samplingResolution)
                                                                                                                 throws java.io.IOException
Loads images from the specified dir, scales to specified resolution and creates RGB data for each image Puts RGB data in a Map using filenames as keys, and rerurns that amp

Parameters:
imgDir -
samplingResolution -
Returns:
Throws:
java.io.IOException

loadImage

public static java.awt.image.BufferedImage loadImage(java.io.File imgFile,
                                                     java.awt.Dimension samplingResolution)
                                              throws java.io.IOException
Loads image from file into BufferedImage object and scales image to sampling resolution

Parameters:
imgFile -
samplingResolution -
Returns:
Throws:
java.io.IOException