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
#pragma once | |
#include "ofConstants.h" | |
#define OFX_MAKE_OF_VERSION(major, minor, patch) (major * 10000 + minor * 100 + patch) | |
#define OFX_THIS_OF_VERSION OFX_MAKE_OF_VERSION(OF_VERSION_MAJOR, OF_VERSION_MINOR, OF_VERSION_PATCH) | |
#define OFX_THIS_OF_IS_OLDER_THAN(major, minor, patch) (OFX_OF_VERSION < OFX_MAKE_OF_VERSION(major, minor, patch)) | |
#define OFX_THIS_OF_IS_OLDER_THAN_EQ(major, minor, patch) (OFX_OF_VERSION <= OFX_MAKE_OF_VERSION(major, minor, patch)) | |
#define OFX_THIS_OF_IS_NEWER_THAN(major, minor, patch) (OFX_MAKE_OF_VERSION(major, minor, patch) < OFX_OF_VERSION) | |
#define OFX_THIS_OF_IS_NEWER_THAN_EQ(major, minor, patch) (OFX_MAKE_OF_VERSION(major, minor, patch) <= OFX_OF_VERSION) |
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
#pragma once | |
/* | |
USAGE: | |
ofxAutoSaveParam param; | |
class ofApp { | |
public: |
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
// 前提条件 | |
// サクラVPS OS Ubuntu 14.04 | |
// 下準備 | |
$ sudo apt-get update | |
$ sudo apt-get upgrade | |
$ sudo apt-get install pkg-config | |
// linux用のoFをDLしてきて |
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 "ofMain.h" | |
#include "ofxCv.h" | |
const string path_0 = "prev.tif"; | |
const string path_1 = "cur.tif"; | |
class ofApp : public ofBaseApp | |
{ | |
ofVideoGrabber video; | |
ofxCv::FlowFarneback forward; |
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
#!/bin/sh | |
cd `dirname $0` | |
dir_addons=$(cd ../addons; pwd) # {OFRoot}/addons | |
dir_aliases=$(cd $(dirname $0); pwd) # {OFRoot}/addons-alias | |
numOfxAddon=0 | |
cd $dir_addons |
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
Object | |
+---------------------+-------------------------------------------+------------------+----+-------+------------+ | |
Magnitude Collection AbstractFunction Ref Symbol Boolean Nil | |
+--------------+ +-----------------------+ +---------+ ` \ +-----+ | |
Number Char SequenceableCollection Set Function Stream True False | |
| $. | | {} +--------+ | |
SimpleNumber ArrayedCollection Dictionary Thread PauseStream | |
| | +------+ | | | | |
Integer Float Array RawArray IdentityDictionary Routine Task | |
1 1.0 [] | | {:} |
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
.svn | |
.hg | |
.cvs | |
# osx | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
Icon | |
*.app |
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
/* | |
fmod for Javascript, will work with any ECMA-262 implementation. | |
If you need a precision higher than 8, please use another implementation of fmod. | |
1.05 % 0.05 | |
=> 0.04999999999999999 | |
Math.fmod(1.05, 0.05) | |
=> 0 |
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
/* | |
* GLSL HSV to RGB+A conversion. Useful for many effects and shader debugging. | |
* | |
* Copyright (c) 2012 Corey Tabaka | |
* | |
* Hue is in the range [0.0, 1.0] instead of degrees or radians. | |
* Alpha is simply passed through for convenience. | |
*/ | |
vec4 hsv_to_rgb(float h, float s, float v, float a) |
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
/* | |
* "stackblur" | |
* originally, Mario Klingemann, [email protected] | |
* this implementation, Benjamin Yates ([email protected]) | |
* http://incubator.quasimondo.com/processing/stackblur.pde | |
* | |
* this blur routine seems to be quite popular. | |
* | |
* unfortunately, mario didn't comment anything. | |
* but, it's easy to see it's just a flavor of a two-pass |
NewerOlder