Package org.encog.util.downsample

Examples of org.encog.util.downsample.Downsample


    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.Downsample

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.