Skip to content

Instantly share code, notes, and snippets.

View panovr's full-sized avatar

Yili Zhao panovr

View GitHub Profile
#include <opencv2/opencv.hpp>
#include <iostream>
#include <vector>
#include <cmath>
#include <assert.h>
using namespace std;
using namespace cv;
@panovr
panovr / info.txt
Created July 6, 2012 12:25
Gaussian filter with libgil2 and cmlib
1213 910
3
data/input/STA_2713.JPG
data/input/STB_2714.JPG
data/input/STC_2715.JPG
@panovr
panovr / HsvToRgb.cpp
Created June 28, 2012 11:37
RGB colorspace to HSV colorspace conversion and vice versa
/**
* R: [0, 255]
* G: [0, 255]
* B: [0, 255]
*
* H: [0.0, 360.0)
* S: [0.0, 1.0]
* V: [0.0, 1.0]
*
* If output is RGB of ByteImage3, then R, G, B is scaled to [0, 255];