Skip to content

Instantly share code, notes, and snippets.

View zhou-chao's full-sized avatar

Zhou Chao zhou-chao

View GitHub Profile
@zhou-chao
zhou-chao / writeCSV.cpp
Created September 15, 2015 14:45
Save OpenCV mat as CSV format
#include <fstream>
void writeCSV(string filename, Mat m)
{
ofstream myfile;
myfile.open(filename.c_str());
myfile<< cv::format(m, cv::Formatter::FMT_CSV) << std::endl;
myfile.close();
}
@zhou-chao
zhou-chao / realTimeTex.sh
Last active August 29, 2015 14:07
Update .pdf file whenever the .tex is modified.
#!/bin/sh
#########################################
# created by
# Zhou Chao
# at
# 2014.11
# args
# $1: tex file name to be edited
#########################################