Example #1
0
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;
    }
}
Example #2
0
void ASMModel::resultToPointList(const FitResult& fitResult, vector< Point_<int> >& pV)
{
    ShapeVec sv;
    projectParamToShape(fitResult.params, sv);
    sv.restoreToPointList(pV, fitResult.transformation);
}
Example #3
0
void ASMFitResult::toPointList(vector< Point_<int> > &pV) const {
    ShapeVec sv;
    asmModel->projectParamToShape(params, sv);
    sv.restoreToPointList(pV, transformation);
}