pixelwise area function

Added flag to determine wheter to compute the area pixelwise or using
green's formula.
pixelwise area test

pixelwise area test modification to test function