1. This is creating the annotations variable:
Use the build_model_2d_from_files to not be exposed to such intricacies.
2. What do you mean? fit_2d is the function to fit. You need to provide a shape to start the fit. As AAMs don't do face detection you need to first apply a face detection algorithm to detect the approximate location of the face and use that to fit your AAM to the detected face.
I have a couple of queries:
1. The examples/fit2d_test.m loads shape using
shapes(:,:,i) = xy2ij(annotations, size(app,1));
but the variable 'annotations' is not declared previously. Where do you get the annotations and load to 'shapes'?
2. How do I fit the AAM to a file with an initial shape? (i.e. a non-annotated image). I am a beginner in this area and can't seem to make it work
Hello all. I tried ASM_2D_example.m
It is working perfectly. When I tried it for my own training data set (Images of Guns), after showing the gun images with landmark points upto figure 4, i got the following error.
Subscripted assignment dimension mismatch.
Error in ASM_MakeShapeModel2D (line 19)
Can anyone help me to resolve this issue?