Making Chernoff Faces with Perl

Today being a Saturday, I decided to noodle around with the GD::Simple module and constructed rudimentary Chernoff faces – Cartoon data visualization.

The results are satisfying, but the code needs some work to make it more generic… Click the image to see it animated.

The program reads-in a text file of 5-dimensional comma separated values and builds a cartoon face having dimensions for head width, mouth width, eye spacing, eye size (diameter) and nose width, for each data row.

Here is the data file that was used to make the accompanying animated image:

Here are three reference images showing the data minimum, mid-point and maximum that were used to analyze the above data: