int newSynapseCount = 5;
_inputData = new byte[inputSizeX*inputSizeY];
Region.FULL_DEFAULT_SPATIAL_PERMANENCE = true;
final Region region = new Region(inputSizeX, inputSizeY,
colGridSizeX, colGridSizeY,
pctInputPerCol, pctMinOverlap, localityRadius,
pctLocalActivity, cellsPerCol, segActiveThreshold,
newSynapseCount, _inputData);
region.setSpatialHardcoded(true);
region.setSpatialLearning(false);
region.setTemporalLearning(true);
return region;
}