I need some help urgently. I have been trying to implement the AAM_2D_example model for fetal ultrasound images. It works perfectly for some training data but generates the below mentioned error in other data sets. I am of the opinion if it is so because of change in image scales for the training sets. So i ran the code for certain similar scale images too still i get stuck sometimes with this error. Although I have made the contours keeping the number of major Landmarks same across all the training images. Please will be grateful if any one of u could give some suggestion to get rid of this error.
??? Error using ==> minus
Matrix dimensions must agree.
Error in ==> AAM_align_data2D at 25
Error in ==> AAM_MakeShapeModel2D at 19
Error in ==> AAM_2D_US at 95
[ShapeData,TrainingData] = AAM_MakeShapeModel2D(TrainingData,options);
Also does the training contours drawn using DrawContourGui need to have same number of major land marks and have to have closed loops?
Will be looking forward to some early replies.