factory TermCriteria(int type, int cound, double eps) { final p = calloc<cvg.TermCriteria>() ..ref.type = type ..ref.maxCount = cound ..ref.epsilon = eps; return TermCriteria.fromPointer(p); }