Package org.encog.util.downsample

Examples of org.encog.util.downsample.SimpleIntensityDownsample


    this.downsampleWidth = Integer.parseInt(strWidth);

    if (strType.equals("RGB")) {
      this.downsample = new RGBDownsample();
    } else {
      this.downsample = new SimpleIntensityDownsample();
    }

    this.training = new ImageNeuralDataSet(this.downsample, false, 1, -1);
    System.out.println("Training set created");
  }
View Full Code Here


    g.fillRect(0,0,10,10);
    g.setColor(Color.WHITE);
    g.fillRect(0, 0, 5, 5);
    g.dispose();
   
    Downsample downsample = new SimpleIntensityDownsample();
    ImageNeuralDataSet set = new ImageNeuralDataSet(downsample,true,-1,1);
    BasicMLData ideal = new BasicMLData(1);
    ImageNeuralData input = new ImageNeuralData(image);
    set.add(input,ideal);
    set.downsample(2,2);
View Full Code Here

    FileUtil.copyResource("org/encog/data/img/a.png", IMG_A);
    FileUtil.copyResource("org/encog/data/img/b.png", IMG_B);
    FileUtil.copyResource("org/encog/data/img/c.png", IMG_C);
   
   
    Downsample downsampler = new SimpleIntensityDownsample();
    ImageMLDataSet training = new ImageMLDataSet(downsampler, false, 1, -1);
   
    ImageMLData inputImage1 = new ImageMLData(ImageIO.read(IMG_A));
    ImageMLData inputImage2 = new ImageMLData(ImageIO.read(IMG_B));
    ImageMLData inputImage3 = new ImageMLData(ImageIO.read(IMG_C));
View Full Code Here

    g.fillRect(0,0,10,10);
    g.setColor(Color.WHITE);
    g.fillRect(0, 0, 5, 5);
    g.dispose();
   
    Downsample downsample = new SimpleIntensityDownsample();
    ImageMLDataSet set = new ImageMLDataSet(downsample,true,-1,1);
    BasicMLData ideal = new BasicMLData(1);
    ImageMLData input = new ImageMLData(image);
    set.add(input,ideal);
    set.downsample(2,2);
View Full Code Here

TOP

Related Classes of org.encog.util.downsample.SimpleIntensityDownsample

Copyright © 2018 www.massapicom. 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.