Skip to content
Joseph Pan edited this page Aug 21, 2015 · 6 revisions

Welcome to the 2dMorphing wiki!

On How to Create Input Files

2DMorphing requires two kinds of image files:

  1. BW image.
  2. Mesh file, a.k.a. .XY file.

BW image

To get the .BW files, you will firstly need to get a .rgb file. A convenient way to have one is converting from other formats via ImageMagicK. e.g.

convert -compress none a.png out.rgb

Mesh file

You can specify some points to construct a mesh manually with help of graphical tools like Photoshop. See the format of mesh file:

two integers to specify width and height, followed by float data for x-coordinates, followed by float data for y-coordinates.

You can firstly create a .BW file, see how the contents look like. That will help you create a mesh file.

Clone this wiki locally