24 #ifndef _FIREVISION_CAMERA_H_ 25 #define _FIREVISION_CAMERA_H_ 27 #include <fvutils/color/colorspaces.h> 28 #include <utils/time/time.h> 30 namespace firevision {
37 virtual void open() = 0;
38 virtual void start() = 0;
39 virtual void stop() = 0;
40 virtual void close() = 0;
42 virtual void flush() = 0;
44 virtual bool ready() = 0;
48 virtual unsigned char *
buffer() = 0;
virtual unsigned int buffer_size()=0
Size of buffer.
Camera interface for image aquiring devices in FireVision.
virtual void stop()=0
Stop image transfer from the camera.
virtual unsigned int pixel_width()=0
Width of image in pixels.
A class for handling time.
virtual colorspace_t colorspace()=0
Colorspace of returned image.
virtual void print_info()=0
Print out camera information.
virtual bool ready()=0
Camera is ready for taking pictures.
virtual void capture()=0
Capture an image.
virtual fawkes::Time * capture_time()
Get the Time of the last successfully captured image.
virtual void set_image_number(unsigned int n)=0
Set image number to retrieve.
virtual void flush()=0
Flush image queue.
virtual void open()=0
Open the camera.
virtual void close()=0
Close camera.
virtual ~Camera()
Virtual empty destructor.
virtual unsigned char * buffer()=0
Get access to current image buffer.
virtual unsigned int pixel_height()=0
Height of image in pixels.
virtual void start()=0
Start image transfer from the camera.
virtual void dispose_buffer()=0
Dispose current buffer.