| 65 | } |
| 66 | |
| 67 | void WriteProtoToBinaryFile(const Message& proto, const char* filename) { |
| 68 | fstream output(filename, ios::out | ios::trunc | ios::binary); |
| 69 | CHECK(proto.SerializeToOstream(&output)); |
| 70 | } |
| 71 | |
| 72 | #ifdef USE_OPENCV |
| 73 | cv::Mat ReadImageToCVMat(const string& filename, |
no outgoing calls