Calculate contour area

Calculate contour area