Package model

Examples of model.ImageViewer


    }

    public void test_HowToRunSingleLearningAlgorithmOnNervousSystem() throws IOException {
        Neocortex neocortex = this.partialNervousSystem.getCNS().getBrain().getCerebrum().getCerebralCortex().getNeocortex();

        ImageViewer imageViewer = new ImageViewer("imageOfHumanFace1000x1000pixels.bmp",
                this.partialNervousSystem.getPNS().getSNS().getRetina());

        final int NUMBER_OF_TIMES_TO_RUN_LEARNING_ALGORITHM = 1000;
        for (int i = 0; i < NUMBER_OF_TIMES_TO_RUN_LEARNING_ALGORITHM; i++) {

            neocortex.runSingleLearningAlgorithmOneTimeStep();

            Layer5Region layer5Region = (Layer5Region) neocortex.getRegion("M");
            Point3D nextRetinaPosition = layer5Region
                    .getMotorOutput(imageViewer.getBoxRetinaIsStuckIn());
            imageViewer.saccadeRetinaToNewPositionAndGetWhatItSees(nextRetinaPosition);
        }

        // save partialNervousSystemObject object in JSON format
        String partialNervousSystemObject = this.gson
                .toJson(this.partialNervousSystem);
View Full Code Here

TOP

Related Classes of model.ImageViewer

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.