area histogram constructor and parser