← Back

ofxOceanodeHomography

github.com/PlaymodesStudio/ofxOceanodeHomography · @PlaymodesStudio
OF 0.12 Graphics Video/Camera

Homography warp nodes for ofxOceanode: Corner Pin and ROI Warp

0 0 Last commit 6mo ago Created 6mo ago

README

ofxOceanodeHomography



Homography-based warp nodes for ofxOceanode.

Nodes



Corner Pin

Applies a perspective warp to an input texture by letting you drag its four corners to arbitrary positions. An interactive floating preview window shows the image with draggable handles; the result is rendered into an output FBO at the specified Width × Height.

ROI Warp

Lets you define an arbitrary quadrilateral region of interest on the input texture. The four corners of that region are re-mapped to fill a new output FBO at Width × Height, cropping and perspective-correcting in one step.

Common controls (both nodes)

ActionEffect
Drag handleMove corner
Alt + dragFine movement (÷100)
Arrow keysNudge selected corner (0.001 step)
Alt + arrowFine nudge (0.00001 step)
TabCycle to next corner
Show toggleShow / hide the preview window
The preview window locks to the image's aspect ratio when resized (floating) and works correctly both docked and floating.

Dependencies



Installation



# in your openFrameworks/addons folder:
git clone https://github.com/paulobarcelos/ofxHomography
git clone https://github.com/PlaymodesStudio/ofxOceanodeHomography


Add both to your project's addons.make:
ofxHomography
ofxOceanodeHomography


Then in your ofApp.cpp:
#include "ofxOceanodeHomography.h"
// ...
ofxOceanodeHomography::registerCollection(oceanode);

Get this addon

HTTPS
SSH