Added reference to osgstereomatch example to osgmultiplerendertargets.

Added usage example use OpenSceneGraph-Data/Images examples
This commit is contained in:
Robert Osfield 2008-04-11 13:04:21 +00:00
parent 52c9acade3
commit 6fed4022a6
2 changed files with 18 additions and 4 deletions

View File

@ -34,6 +34,14 @@
#include <iostream>
//
// Below is relatively straight forward example of use OpenGL multiple render targets extension
// to FrameBufferObjects/GLSL shaders.
//
// Another, more sophisticated MRT example can be found in the osgstereomatch example.
//
// The callback modifies an input image.
struct MyCameraPostDrawCallback : public osg::Camera::DrawCallback
{

View File

@ -4,14 +4,20 @@ A simple algorithm is implemented in both a single- and multi-pass way to show t
The normal osgviewer is used for display and one can obtain the time spent on the GPU by pressing the "s" key twice.
The sample data was downloaded from the Middlebury Stereo Vision Page at http://vision.middlebury.edu/stereo/
Usage examples:
---------------
osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5
osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5 --single
osgstereomatch --left teddyL.png --right teddyR.png --min 10 --max 57 --window 7
Using sample data in OpenSceneGraph-Data distribution:
osgstereomatch --left Images/dog_left_eye.jpg --right Images/dog_right_eye.jpg --min 0 --max 31 --window 9
osgstereomatch --left Images/dog_left_eye.jpg --right Images/dog_right_eye.jpg --min 0 --max 31 --window 9 --single
Using sample data available from the Middlebury Stereo Vision Page at http://vision.middlebury.edu/stereo/ :
osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5
osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5 --single
osgstereomatch --left teddyL.png --right teddyR.png --min 10 --max 57 --window 7
Algorithm and implementation details: