Skip to content

Instantly share code, notes, and snippets.

@horiken4
horiken4 / gist:5f40ed1e769da4d412d4
Created November 20, 2015 10:57
Solve curve fitting problem by OpenCV CvLevMarq
#include <opencv2/opencv.hpp>
#include <random>
using namespace std;
using namespace cv;
void make_samples(int num, double xlb, double xub, Mat param,
vector<Vec2d>& samples) {
random_device rd;
mt19937 mt(rd());
@horiken4
horiken4 / post-proc.sh
Created October 17, 2015 06:09
Post process for build OpenCV iOS framework with opencv_contrib
#!/bin/bash
# Replace include path
modules=(
adas
aruco
bgsegm
bioinspired
ccalib