|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.contrib.imgrec.ImageRecognitionHelper
public class ImageRecognitionHelper
Provides methods to create neural network and training set for image recognition. This class is mostly based on the code from tileclassification utility by Jon Tait
Constructor Summary | |
---|---|
ImageRecognitionHelper()
|
Method Summary | |
---|---|
static TrainingSet |
createBlackAndWhiteTrainingSet(java.util.List<java.lang.String> imageLabels,
java.util.Map<java.lang.String,FractionRgbData> rgbDataMap)
Creates binary black and white training set for the specified image labels and rgb data |
static NeuralNetwork |
createNewNeuralNetwork(java.lang.String label,
java.awt.Dimension samplingResolution,
ColorMode colorMode,
java.util.List<java.lang.String> imageLabels,
java.util.Vector<java.lang.Integer> layersNeuronsCount,
TransferFunctionType transferFunctionType)
Creates and returns new neural network for image recognition. |
static TrainingSet |
createTrainingSet(java.util.List<java.lang.String> imageLabels,
java.util.Map<java.lang.String,FractionRgbData> rgbDataMap)
Creates training set for the specified image labels and rgb data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageRecognitionHelper()
Method Detail |
---|
public static NeuralNetwork createNewNeuralNetwork(java.lang.String label, java.awt.Dimension samplingResolution, ColorMode colorMode, java.util.List<java.lang.String> imageLabels, java.util.Vector<java.lang.Integer> layersNeuronsCount, TransferFunctionType transferFunctionType)
label
- neural network labelsamplingResolution
- sampling resolution (image size)imageLabels
- image labelslayersNeuronsCount
- neuron counts in hidden layerstransferFunctionType
- type of transfer function to use for neurons in networkcolorMode
- color modepublic static TrainingSet createTrainingSet(java.util.List<java.lang.String> imageLabels, java.util.Map<java.lang.String,FractionRgbData> rgbDataMap)
imageLabels
- image labelsrgbDataMap
- map collection of rgb data
public static TrainingSet createBlackAndWhiteTrainingSet(java.util.List<java.lang.String> imageLabels, java.util.Map<java.lang.String,FractionRgbData> rgbDataMap)
imageLabels
- image labelsrgbDataMap
- map collection of rgb data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |