Package model

Examples of model.Retina


    }

    public void test_saveRegionObject() throws IOException {
        Region LGNRegion = new Region("LGN", 8, 8, 1, 50, 3);

        Retina retina = new Retina(66, 66);

        AbstractSensorCellsToRegionConnect retinaToLGN = new SensorCellsToRegionRectangleConnect();
        retinaToLGN.connect(retina.getVisionCells(), LGNRegion, 0, 0);

        // run spatial pooling on a image
        SpatialPooler spatialPooler = new SpatialPooler(LGNRegion);
        spatialPooler.setLearningState(true);

        retina.seeBMPImage("2.bmp");
        Set<Column> LGNNeuronActivity = spatialPooler
                .performPooling();

        assertEquals(11, LGNNeuronActivity.size());
View Full Code Here


    public void test_performSpatialPoolingOnRegion() throws IOException {
        Region region = new Region("region", 8, 8, 4, 50, 1);
        this.spatialPooler.changeRegion(region);

        Retina retina = new Retina(66, 66);

        AbstractSensorCellsToRegionConnect connectType2 = new SensorCellsToRegionRectangleConnect();
        connectType2.connect(retina.getVisionCells(), region, 2, 2);

        retina.seeBMPImage("2.bmp");
        this.spatialPooler.performPooling();
        Set<ColumnPosition> columnActivityAfterSeeingImage2 = this.spatialPooler
                .getActiveColumnPositions();

        assertEquals(5, columnActivityAfterSeeingImage2.size());
View Full Code Here

TOP

Related Classes of model.Retina

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.