Skip to content

Instantly share code, notes, and snippets.

View lucasbrigida's full-sized avatar

Lucas Pereira Brígida lucasbrigida

View GitHub Profile
@lucasbrigida
lucasbrigida / gist:cb390335339a6bdfdf0f721ed63e699d
Created March 23, 2017 09:48 — forked from yiling-chen/gist:88f263804b4cc764b6fa
Convert a fisheye image to panorama view
#include <cmath>
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace cv;
int main(int argc, const char * argv[]) {
Mat img = imread("lillestromfisheye.jpg");
// assume the source image is square, and its width has even number of pixels
var btn = document.getElementById("copy-button");
btn.addEventListener("click", clickHandler, false);
btn.addEventListener("copy", copyHandler, false);
function clickHandler(e) {
e.target.dispatchEvent(new ClipboardEvent("copy"));
}
function copyHandler(e) {
e.clipboardData.setData("text/plain", "Simulated copy. Yay!");

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

DocPad: Absolute URL Helper

Uses a docpad configuration file to specify template data that we can use in our document to generate absolute urls.