#include <StereoAutoFocuser.h>
cinder::gl::StereoAutoFocuser::StereoAutoFocuser |
( |
| ) |
|
Attempts to set an ideal convergence and eye separation. cam is the CameraStereo you use to render the scene and which should be auto-focussed. area is the area that you want to sample. If your autoFocusSpeed is less than 1.0, repeatedly call this function from your update() method.
Attempts to set an ideal convergence and eye separation. cam is the CameraStereo you use to render the scene and which should be auto-focussed. buffer is the FBO depth buffer you want to sample. If your autoFocusSpeed is less than 1.0, repeatedly call this function from your update() method.
float cinder::gl::StereoAutoFocuser::getSpeed |
( |
| ) |
const |
Returns the speed at which auto-focussing takes place.
void cinder::gl::StereoAutoFocuser::setSpeed |
( |
float |
factor | ) |
|
Sets the speed at which auto-focussing takes place. A value of 1.0 will immediately focus on the measured value. Lower values will gradually adjust the convergence. If your autoFocusSpeed is less than 1.0, repeatedly call the autoFocus() function from your update() method.
float cinder::gl::StereoAutoFocuser::getDepth |
( |
| ) |
const |
Returns the auto-focus depth, which influences the parallax effect.
void cinder::gl::StereoAutoFocuser::setDepth |
( |
float |
factor | ) |
|
Sets the auto-focus depth. A value of 1.0 will adjust the convergence in such a way that the nearest objects are at the plane of the screen and cause no parallax. Lower values will cause the nearest objects to appear behind your screen (positive parallax). Values greater than 1.0 will cause objects to appear in front of your screen (negative parallax). Avoid values much greater than 2.0 to reduce eye strain.
void cinder::gl::StereoAutoFocuser::draw |
( |
| ) |
|
Draws a visualizer, showing the sample area and the location of the nearest pixel.
const int cinder::gl::StereoAutoFocuser::AF_WIDTH = 64 |
|
static |
width and height of the auto focus sample
const int cinder::gl::StereoAutoFocuser::AF_HEIGHT = 64 |
|
static |
The documentation for this class was generated from the following files: