Measuring 2-dimensional shapes