npm install babel-loader imports-loader webpack --save
- Create
webpack.config.js
- Move
index.ios.js
tosrc/index.ios.jsx
webpack --watch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <opencv2/imgcodecs.hpp> | |
#include <opencv2/opencv_modules.hpp> | |
#include <opencv2/stitching.hpp> | |
#include <opencv2/stitching/detail/warpers.hpp> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Taken from https://www.cybercom.net/~dcoffin/dcraw/dcraw.c */ | |
/* Which itself attributes this algorithm to "Frank Markesteijn" */ | |
#define TS 512 /* Tile Size */ | |
#define fcol(row,col) xtrans[(row+6) % 6][(col+6) % 6] | |
void CLASS xtrans_interpolate (int passes) | |
{ | |
int c, d, f, g, h, i, v, ng, row, col, top, left, mrow, mcol; | |
int val, ndir, pass, hm[8], avg[4], color[3][8]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
}; | |
NodeList.prototype.__proto__ = Array.prototype; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DNG 1.4 Parser | |
This tutorial describes how to build the Adobe DNG SDK on Linux. | |
It generates the dng_validate C++ program that can parse any DNG images, a bit like a "Hello world" for DNG image processing. | |
Adobe DNG SDK 1.4 | |
XMP SDK | |
DNG SDK | |
dcraw issue | |
Compatibility issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn clj->js | |
"Recursively transforms ClojureScript maps into Javascript objects, | |
other ClojureScript colls into JavaScript arrays, and ClojureScript | |
keywords into JavaScript strings." | |
[x] | |
(cond | |
(string? x) x | |
(keyword? x) (name x) | |
(map? x) (.strobj (reduce (fn [m [k v]] | |
(assoc m (clj->js k) (clj->js v))) {} x)) |