a couple optimizations; disregard "shadow" pixels that have no correspondence in the mound scan; remove outlying error pixels by replacing them with avg. of their neighbors.