Changes between Initial Version and Version 1 of recipes/AnalysingMasculinityFromShape


Ignore:
Timestamp:
Mar 23, 2012, 8:46:33 PM (13 years ago)
Author:
Dave Hunter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • recipes/AnalysingMasculinityFromShape

    v1 v1  
     1
     2== Recipe for analysing masculinity from shape ==
     3
     4By: Dan Re
     5
     6
     7Put all men and women’s face tems /jpegs in one directory.
     8
     9Make sure all aligned to same grand average of men and women.
     10
     11
     12
     13== Reducing templates (Updated 20 December 2011) ==
     14
     15Used for morphological masculinity analysis, etc.
     16
     17
     18This 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
     20THIS 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]]
     26Make 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]]
     32This should create a new set of templates without the lines for the points you deleted.
     33
     34 
     35
     36== PCA ==
     37
     38Build asm file
     39
     40Select menu option (Dual window>PCA>Build Shape PCA (ASM)>Create file name for saving> Open list of trimmed_templates).[[BR]]
     41Create PCA of shape >n components[[BR]]
     42Select menu option  (PCA>Batch PCA Analyse Shape> ASM file> Save output directory> List of images and tems).[[BR]]
     43This 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
     45Note: PCA components do not come out in terms of decreasing importance in Psychomorp
     46
     47Using 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
     52Take into spss for regression/discriminate analysis
     53
     54(incomplete)
     55
     56