Measuring Squareness and Orientation of Shapes

  • Authors:
  • Paul L. Rosin;Joviša Žunić

  • Affiliations:
  • School of Computer Science, Cardiff University, Cardiff, UK CF24 3AA;Department of Computer Science, University of Exeter, Exeter, UK EX4 4QF and Mathematical Institute, Serbian Academy of Arts and Sciences, Belgrade, Serbia

  • Venue:
  • Journal of Mathematical Imaging and Vision
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we propose a measure which defines the degree to which a shape differs from a square. The new measure is easy to compute and being area based, is robust--e.g., with respect to noise or narrow intrusions. Also, it satisfies the following desirable properties: it ranges over (0,1] and gives the measured squareness equal to 1 if and only if the measured shape is a square; it is invariant with respect to translations, rotations and scaling. In addition, we propose a generalisation of the new measure so that shape squareness can be computed while controlling the impact of the relative position of points inside the shape. Such a generalisation enables a tuning of the behaviour of the squareness measure and makes it applicable to a range of applications. A second generalisation produces a measure, parameterised by 驴, that ranges in the interval (0,1] and equals 1 if and only if the measured shape is a rhombus whose diagonals are in the proportion 1:驴.The new measures (the initial measure and the generalised ones) are naturally defined and theoretically well founded--consequently, their behaviour can be well understood.As a by-product of the approach we obtain a new method for the orienting of shapes, which is demonstrated to be superior with respect to the standard method in several situations.The usefulness of the methods described in the manuscript is illustrated on three large shape databases: diatoms (ADIAC), MPEG-7 CE-1, and trademarks.