Classes | Defines | Functions | Variables
openni_image.cpp File Reference
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/common/time.h>
#include <pcl/io/openni_grabber.h>
#include <boost/thread/condition.hpp>
#include <boost/circular_buffer.hpp>
#include <csignal>
#include <limits>
#include <pcl/io/lzf_image_io.h>
#include <pcl/visualization/boost.h>
#include <pcl/visualization/common/float_image_utils.h>
#include <pcl/visualization/image_viewer.h>
#include <pcl/io/openni_camera/openni_driver.h>
#include <pcl/console/parse.h>
#include <pcl/console/time.h>
#include <pcl/visualization/mouse_event.h>
Include dependency graph for openni_image.cpp:

Go to the source code of this file.

Classes

class  Buffer
class  Driver
struct  Frame
class  Viewer
class  Writer

Defines

#define FPS_CALC_DRIVER(_WHAT_, buff1, buff2)
#define FPS_CALC_VIEWER(_WHAT_, buff)
#define FPS_CALC_WRITER(_WHAT_, buff)

Functions

void ctrlC (int)
int main (int argc, char **argv)
void usage (char **argv)

Variables

int buff_size = BUFFER_SIZE
const int BUFFER_SIZE = 200
bool global_visualize = true
boost::mutex io_mutex
bool is_done = false
int nr_frames_total = 0
bool save_data = false
bool toggle_one_frame_capture = false
bool visualize = true

Define Documentation

#define FPS_CALC_DRIVER (   _WHAT_,
  buff1,
  buff2 
)
Value:
do \
{ \
    static unsigned count = 0;\
    static double last = getTime ();\
    double now = getTime (); \
    ++count; \
    if (now - last >= 1.0) \
    { \
      if (visualize && global_visualize) \
        cerr << "Average framerate("<< _WHAT_ << "): " << double(count)/double(now - last) << " Hz. Queue size: " << buff1.getSize () << " (w) / " << buff2.getSize () << " (v)\n"; \
      else \
        cerr << "Average framerate("<< _WHAT_ << "): " << double(count)/double(now - last) << " Hz. Queue size: " << buff1.getSize () << " (w)\n"; \
      count = 0; \
      last = now; \
    } \
}while(false)

Definition at line 121 of file openni_image.cpp.

#define FPS_CALC_VIEWER (   _WHAT_,
  buff 
)
Value:
do \
{ \
    static unsigned count = 0;\
    static double last = getTime ();\
    double now = getTime (); \
    ++count; \
    if (now - last >= 1.0) \
    { \
      cerr << "Average framerate("<< _WHAT_ << "): " << double(count)/double(now - last) << " Hz. Queue size: " << buff.getSize () << "\n"; \
      count = 0; \
      last = now; \
    } \
}while(false)

Definition at line 106 of file openni_image.cpp.

#define FPS_CALC_WRITER (   _WHAT_,
  buff 
)
Value:
do \
{ \
    static unsigned count = 0;\
    static double last = getTime ();\
    double now = getTime (); \
    ++count; \
    if (now - last >= 1.0) \
    { \
      cerr << "Average framerate("<< _WHAT_ << "): " << double(count)/double(now - last) << " Hz. Queue size: " << buff.getSize () << ", number of frames written so far: " << nr_frames_total << "\n"; \
      count = 0; \
      last = now; \
    } \
}while(false)

Definition at line 91 of file openni_image.cpp.


Function Documentation

void ctrlC ( int  )

Definition at line 654 of file openni_image.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 663 of file openni_image.cpp.

void usage ( char **  argv)

Definition at line 620 of file openni_image.cpp.


Variable Documentation

Definition at line 89 of file openni_image.cpp.

const int BUFFER_SIZE = 200

Definition at line 86 of file openni_image.cpp.

bool global_visualize = true

Definition at line 59 of file openni_image.cpp.

boost::mutex io_mutex

Definition at line 60 of file openni_image.cpp.

bool is_done = false

Definition at line 59 of file openni_image.cpp.

int nr_frames_total = 0

Definition at line 61 of file openni_image.cpp.

bool save_data = false

Definition at line 59 of file openni_image.cpp.

Definition at line 59 of file openni_image.cpp.

bool visualize = true

Definition at line 59 of file openni_image.cpp.



pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:46