Research Repository

See what's under the surface

Distance transform: a tool for the study of animal colour patterns

Taylor, Christopher H.; Gilbert, Francis; Reader, Tom


Christopher H. Taylor

Francis Gilbert

Tom Reader


The information in animal colour patterns plays a key role in many ecological interactions; quantification would help us to study them, but this is problematic. Comparing patterns using human judgement is subjective and inconsistent. Traditional shape analysis is unsuitable as patterns do not usually contain conserved landmarks. Alternative statistical approaches also have weaknesses, particularly as they are generally based on summary measures that discard most or all of the spatial information in a pattern.
We present a method for quantifying the similarity of a pair of patterns based on the distance transform of a binary image. The method compares the whole pattern, pixel by pixel, while being robust to small spatial variations among images.
We demonstrate the utility of the distance transform method using three ecological examples. We generate a measure of mimetic accuracy between hoverflies (Diptera: Syrphidae) and wasps (Hymenoptera) based on abdominal pattern and show that this correlates strongly with the perception of a model predator (humans). We calculate similarity values within a group of mimetic butterflies and compare this with proposed pairings of Müllerian comimics. Finally, we characterise variation in clypeal badges of a paper wasp (Polistes dominula) and compare this with previous measures of variation.
While our results generally support the findings of existing studies that have used simpler ad hoc methods for measuring differences between patterns, our method is able to detect more subtle variation and hence reveal previously overlooked trends.

Journal Article Type Article
Publication Date Aug 1, 2013
Journal Methods in Ecology and Evolution
Electronic ISSN 2041-210X
Publisher Wiley
Peer Reviewed Peer Reviewed
Volume 4
Issue 8
Keywords Keywords:
image analysis; individual recognition; MATLAB ; mimicry; signalling; similarity
Publisher URL
Copyright Statement Copyright information regarding this work can be found at the following address:


Christopher_Taylor--distance_transform.pdf (1.5 Mb)

NA - Not Applicable (or Unknown)

Downloadable Citations