| 1 | |
| 2 | == Recipe for analysing masculinity from shape == |
| 3 | |
| 4 | By: Dan Re |
| 5 | |
| 6 | |
| 7 | Put all men and women’s face tems /jpegs in one directory. |
| 8 | |
| 9 | Make sure all aligned to same grand average of men and women. |
| 10 | |
| 11 | |
| 12 | |
| 13 | == Reducing templates (Updated 20 December 2011) == |
| 14 | |
| 15 | Used for morphological masculinity analysis, etc. |
| 16 | |
| 17 | |
| 18 | This recipe is for deleting lines from templates, which is useful for conducting PCA on face shape. We used this to create morphological masculinity scores. |
| 19 | |
| 20 | THIS RECIPE WORKS WITH THE NEWEST VERSION OF PSYCHOMORPH, WHICH HAS A PLUGIN CALLED “BATCH BATCH DELETE LINES.” |
| 21 | |
| 22 | '''Step 1''': Create a list of jpegs and templates for the images you want to delete lines from (the list would look the same as a list for averaging faces). |
| 23 | |
| 24 | '''Step 2''': Create a list of points that you want to delete. You can find the point labels by clicking “View>Draw Labels” in the Transform (single) window. Create the list by naming the points with a space in between. For example, to delete the left and right cheekbone lines in a 3dsk face, you would create the following list:[[BR]] |
| 25 | “164 165 166 167 168 169”.[[BR]] |
| 26 | Make sure to save the list of images and templates and the list of points in the same directory.[[BR]] |
| 27 | '''Step 3''': To batch delete points, go to the Transform window and click “Plugins>Perception Lab.jar>Batch Batch Delete Points.” This will prompt you four times.[[BR]] |
| 28 | '''Step 4''': Open the LIST OF POINTS you want to delete first.[[BR]] |
| 29 | '''Step 5''': Open the LIST OF IMAGES AND TEMPLATES second.[[BR]] |
| 30 | '''Step 6''': Name your output directory[[BR]] |
| 31 | '''Step 7''': Enter a string to append[[BR]] |
| 32 | This should create a new set of templates without the lines for the points you deleted. |
| 33 | |
| 34 | |
| 35 | |
| 36 | == PCA == |
| 37 | |
| 38 | Build asm file |
| 39 | |
| 40 | Select menu option (Dual window>PCA>Build Shape PCA (ASM)>Create file name for saving> Open list of trimmed_templates).[[BR]] |
| 41 | Create PCA of shape >n components[[BR]] |
| 42 | Select menu option (PCA>Batch PCA Analyse Shape> ASM file> Save output directory> List of images and tems).[[BR]] |
| 43 | This creates a list of PCA components of decreasing importance (variance explained (see bottom line) and the list has the same order of faces as the list of images and tems |
| 44 | |
| 45 | Note: PCA components do not come out in terms of decreasing importance in Psychomorp |
| 46 | |
| 47 | Using excel, determine which components in the model explain greater than average variance and truncate the model to include only these. |
| 48 | |
| 49 | |
| 50 | == Stage 3 building shape model predicting sex == |
| 51 | |
| 52 | Take into spss for regression/discriminate analysis |
| 53 | |
| 54 | (incomplete) |
| 55 | |
| 56 | |