|
Fawkes API
Fawkes Development Version
|
Draw images from camera in texture. More...
#include "image_drawer.h"

Public Member Functions | |
| SkelGuiDepthDrawer (firevision::Camera *depth_cam, firevision::Camera *label_cam, unsigned int max_depth) | |
| Constructor. | |
| ~SkelGuiDepthDrawer () | |
| Destructor. | |
| virtual void | fill_texture () |
| Fill texture. | |
| void | toggle_show_labels () |
| Toggle label state. | |
Draw images from camera in texture.
Uses texture mapping to show an image acquired from a camera in the background.
| SkelGuiDepthDrawer::SkelGuiDepthDrawer | ( | firevision::Camera * | depth_cam, |
| firevision::Camera * | label_cam, | ||
| unsigned int | max_depth | ||
| ) |
Constructor.
| depth_cam | camera to capture depth image |
| label_cam | label to capture label frame |
| max_depth | maximum depth value to expect |
Definition at line 51 of file depth_drawer.cpp.
References SkelGuiTextureDrawer::__width, and SkelGuiTextureDrawer::__height.
| SkelGuiDepthDrawer::~SkelGuiDepthDrawer | ( | ) |
Destructor.
Definition at line 65 of file depth_drawer.cpp.
| void SkelGuiDepthDrawer::fill_texture | ( | ) | [virtual] |
Fill texture.
Implements SkelGuiTextureDrawer.
Definition at line 82 of file depth_drawer.cpp.
References firevision::Camera::capture(), fawkes::Exception::print_trace(), firevision::Camera::buffer(), SkelGuiTextureDrawer::__width, SkelGuiTextureDrawer::__height, firevision::Camera::dispose_buffer(), and SkelGuiTextureDrawer::copy_rgb_to_texture().
| void SkelGuiDepthDrawer::toggle_show_labels | ( | ) |
Toggle label state.
Turns on or off the label coloring of the depth map.
Definition at line 75 of file depth_drawer.cpp.