摘要: 如果我们想把OpenCV中的矩阵数据类型cv::Mat保存在一个文件中,可以使用如下的代码:void writeMatToFile(cv::Mat& m, const char* filename) { ofstream fout(filename); if(!fout) { ... 阅读全文
posted @ 2015-03-20 23:33 Grandyang 阅读(5025) 评论(0) 推荐(0) 编辑
摘要: You are given an m x n integer array grid. There is a robot initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to th 阅读全文
posted @ 2015-03-20 15:13 Grandyang 阅读(16076) 评论(7) 推荐(1) 编辑
摘要: There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom-rig 阅读全文
posted @ 2015-03-20 14:30 Grandyang 阅读(22835) 评论(7) 推荐(2) 编辑
摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2015-03-20 11:50 Grandyang 阅读(17682) 评论(4) 推荐(3) 编辑
Fork me on GitHub