void Faces::load(BinaryFileReader& file) { resize(file.readInt()); width=file.readInt(); height=file.readInt(); vector_size=width*height; for (int i=0; i<getSize(); i++) { (*this)[i].load(file); } average_face.load(file); std::cout << "Loaded faces from '" << file.getFilename() << "'" << std::endl; }
void Users::load(BinaryFileReader& file) { int size=file.readInt(); for(int i=0; i<size; i++) { User new_user; new_user.load(file); addUser(new_user); } std::cout << "Loaded users from '" << file.getFilename() << "'" << std::endl; }