void ASMFitResult::toDiffPointList(vector< Point_<int> > &pV) const { ShapeVec sv; asmModel->projectParamToShape(params, sv); sv.restoreToPointList(pV, transformation); vector<Point_<int> > pV2; toMeanPointList(pV2); int i,len=pV.size(); for(i=0;i<len;i++){ pV[i].x-=pV2[i].x; pV[i].y-=pV2[i].y; } }
void ASMModel::resultToPointList(const FitResult& fitResult, vector< Point_<int> >& pV) { ShapeVec sv; projectParamToShape(fitResult.params, sv); sv.restoreToPointList(pV, fitResult.transformation); }
void ASMFitResult::toPointList(vector< Point_<int> > &pV) const { ShapeVec sv; asmModel->projectParamToShape(params, sv); sv.restoreToPointList(pV, transformation); }