Package org.encog.platformspecific.j2se.data.image

Examples of org.encog.platformspecific.j2se.data.image.ImageNeuralData.downsample()


  public void processWhatIs() throws IOException {
    final String filename = getArg("image");
    final File file = new File(filename);
    final Image img = ImageIO.read(file);
    final ImageNeuralData input = new ImageNeuralData(img);
    input.downsample(this.downsample, false, this.downsampleHeight,
        this.downsampleWidth, 1, -1);
    final int winner = this.network.winner(input);
    System.out.println("What is: " + filename + ", it seems to be: "
        + this.neuron2identity.get(winner));
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.