Fawkes API  Fawkes Development Version
stereo_processor.h
1 
2 /***************************************************************************
3  * stereo_processor.h - Stereo processor interface
4  *
5  * Created: Fri May 18 15:58:30 2007
6  * Copyright 2007 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef _FIREVISION_FVUTILS_STEREO_STEREO_PROCESSOR_H_
25 #define _FIREVISION_FVUTILS_STEREO_STEREO_PROCESSOR_H_
26 
27 #include <sys/types.h>
28 
29 namespace firevision {
30 
31 class ROI;
32 
33 class StereoProcessor
34 {
35 public:
36  virtual ~StereoProcessor();
37 
38  virtual bool get_xyz(unsigned int px, unsigned int py, float *x, float *y, float *z) = 0;
39 
40  virtual bool get_world_xyz(unsigned int px, unsigned int py, float *x, float *y, float *z) = 0;
41 
42  virtual void preprocess_stereo() = 0;
43  virtual void calculate_disparity(ROI *roi = 0) = 0;
44  virtual void calculate_yuv(bool both = false) = 0;
45 
46  virtual unsigned char *disparity_buffer() = 0;
47  virtual size_t disparity_buffer_size() const = 0;
48  virtual unsigned char *yuv_buffer_right() = 0;
49  virtual unsigned char *yuv_buffer_left() = 0;
50 };
51 
52 } // end namespace firevision
53 
54 #endif
firevision::StereoProcessor::disparity_buffer_size
virtual size_t disparity_buffer_size() const =0
firevision::StereoProcessor::yuv_buffer_right
virtual unsigned char * yuv_buffer_right()=0
firevision::StereoProcessor::get_xyz
virtual bool get_xyz(unsigned int px, unsigned int py, float *x, float *y, float *z)=0
firevision::ROI
Definition: roi.h:60
firevision::StereoProcessor::preprocess_stereo
virtual void preprocess_stereo()=0
firevision::StereoProcessor::calculate_yuv
virtual void calculate_yuv(bool both=false)=0
firevision::StereoProcessor::calculate_disparity
virtual void calculate_disparity(ROI *roi=0)=0
firevision::StereoProcessor::disparity_buffer
virtual unsigned char * disparity_buffer()=0
firevision::StereoProcessor::get_world_xyz
virtual bool get_world_xyz(unsigned int px, unsigned int py, float *x, float *y, float *z)=0
firevision::StereoProcessor::~StereoProcessor
virtual ~StereoProcessor()
Virtual empty destructor.
Definition: stereo_processor.cpp:116
firevision::StereoProcessor::yuv_buffer_left
virtual unsigned char * yuv_buffer_left()=0