void Cylinder::setMinutia(const Minutia& other){ X=other.getX(); Y=other.getY(); T=other.getT(); index=other.getIndex(); valid = false; if(bit) { cmBit1.resize(NUMCELLS,false); cmBit2.resize(NUMCELLS,false); } else cmVector.resize(NUMCELLS,0); }
double distance(const Minutia & m1, const Minutia & m2) { double dx = m1.getX()-m2.getX(); double dy = m1.getY()-m2.getY(); return std::sqrt(dx*dx+dy*dy); }