wiki:autodelineation

Version 2 (modified by Dave Hunter, 14 years ago) ( diff )

--

Autodelineation using ASMs

Psychomorph has a built in auto-delineation system using Active Shape Models. These shape models can be constructed from a set of pre-delineated images or a set can be downloaded from our website. Downloading and Installation. To install, unzip the ASM files into a new directory. Each ASM is composed of multiple files; all must be in the same directory in order to correctly function. Each ASM should be installed in a separate directory to avoid conflicts.

Basic Use (single image)

  1. In the ‘Transformer’ window of the main Psychomorph program select ’Load ASM’ from the file menu. Browse to the location of the ASM for the type of faces you wish to auto-delineate. You will be prompted as to whether you wish to display the ASM average image. If you select ‘Yes’ the image will load and will be displayed with three shapes, a circle, a square and an oval overlaid in key locations. These shapes indicate the location on the face of key points that must be selected in order to initialise the auto-delineator for each image. These shapes represent precise locations (e.g. corner of eye, centre of the mouth, the place where the lobe meets the ear), and should be centred exactly on these locations.
  2. To delineate a single image; load the image into Psychomorph (File->Load Image). The three shapes (circle, square, and oval) should be displayed on the face image, but will not be in the appropriate locations. Click inside the shapes and drag them to the correct locations (if unsure of the correct location see step 1.) If the shapes do not appear toggle the ‘Display 3 Points’ menu option in the ‘View’ menu.
  3. Once the shapes are in the correct location (accuracy is advised or the auto-delineation will perform poorly), Select the ‘Delineate’ menu, the ‘ASM’ sub-menu and ‘Auto Delineate.’ The template should be automatically fitted to the face and will appear once fitted.

Batch Auto-delineation (multiple images)

  1. In the ‘Transformer’ window of the main Psychomorph program select ’Load ASM’ from the file menu. Browse to the location of the ASM for the type of faces you wish to auto-delineate. You will be prompted as to whether you wish to display the ASM average image. If you select ‘Yes’ the image will load and will be displayed with three shapes, a circle, a square and an oval overlaid in key locations. These shapes indicate the location on the face of key points that must be selected in order to initialise the auto-delineator for each image. These shapes represent precise locations (e.g. corner of eye, centre of the mouth, the place where the lobe meets the ear), and should be centred exactly on these locations.
  2. You will need to create a batch file containing a list of all the images in the directory. See ‘Make an image and template list file’ in ‘Constructing Averages'. In the ‘Delineate’ menu, under ‘ASM’ select ‘Batch Auto Delineate’. Next open the file you saved the image list in. Select a directory to store the template files created by the auto-delineator and final specify text to add to the template name (by default the template name is the same as the image name but with the file type changed to .tem).
  3. The auto-delineator will require three points to be specified for each image. Three shapes, a circle, a square and an oval will be displayed, click and drag each such that the centre of the shape is positioned exactly over a particular landmark. If you are unsure of which shape matches which landmark see step 1.
  4. Click next. The image will be auto-delineated and the template saved before the next image is displayed.
  5. Repeat 3,4 for each image in the list.
Note: See TracWiki for help on using the wiki.