static centerFromEnd(stateCount, end /*int*/) {
			return (end - stateCount[2]) - stateCount[1] / 2.0;
		}
Given a count of black/white/black pixels just seen and an end position,
figures the location of the center of this black/white/black run.