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);