The source code is for MATLAB, and it was taken from the paper:
To generate a simple phantom of resolution 512x512, one should write:
phantom = forbild_gen(512, 512, 1, 1)
This phantom will include both left and right ears, which is specified by flags 1 and 1 respectively.
To save generated phantom as a TIFF file, one may use:
convertDataTo32Tiff('path-to-dir/filename.tif', phantom)