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