class ColorVideo : public Video

ColorVideo is derived from Video

Inheritance:


Public Methods

ColorVideo(int nbytes = 4, int nc_in = 640, int nr_in = 480)
Input and output data types set to PIX_PACKED by default
MonoVideo(int nbytes = 1, int nc_in = 640, int nr_in = 480)
Input and output data types set to PIX_LUMINANCE by default
virtual void set_grab_type(Device_output_type ot)
Allow switching of type of data delivered by the device
virtual void set_grab_type(Device_output_type ot)
Allow switching of type of data delivered by the device, provided it is a legal monochrome type (See Device_output_type enumeration in Video

Inherited from Video:

Public Methods

virtual int bytesperpixel()
virtual void circle(float x, float y, int r, Color color = default_color)
virtual void clearcircle(float x, float y, int r)
virtual void clearcubic(float x, float y, int length, float angle, float a, float b, float c)
virtual void clearline(float x, float y, int length, float angle, int samp = 1)
virtual void clearline2(float x1, float y1, float x2, float y2)
virtual void close()
virtual void cubic(float x, float y, int length, float angle, float a, float b, float c, Color color = default_color)
virtual void* current_frame_ptr()
virtual char* device_info()
virtual void* direct_memptr()
virtual int grab(int *image, int x, int y, int width, int height, float angle = 0.0, int sampw =1, int samph =1, short int mask = 0xff)
virtual int grab_aligned(int *image, float &x, float &y, int width, int height, int sampw =1, int samph =1, short int mask = 0xff)
virtual int grab_region(int *image, int lx, int ly, int ux, int uy, int sampw =1, int samph = 1)
virtual int grab_static(int *image, int x, int y, int width, int height, float angle = 0.0, int sampw =1, int samph =1, short int mask = 0xff)
int height()
int in_view(int cx, int cy, int w, int h)
virtual int is_mappable()
virtual void line(float x, float y, int length, float angle, Color color = default_color, int samp = 1)
virtual void line2(float x1, float y1, float x2, float y2, Color color = default_color)
Device_output_type output_data_type()
virtual int post_grab()
virtual int pre_grab()
virtual int show(int x, int y, int width, int height, int *image)
int width()

Protected Methods

int adjust_to_first_coord(float &x, int width)
virtual int map_color(Color colin)
void map_image(int *x, int npixels)
void set_fg_size(int nrows_in, int ncols_in)
Device_output_type set_input_type(Device_output_type ot)
void set_size(int nrows_in, int ncols_in)

Documentation

ColorVideo is derived from Video.

The ColorVideo class adds full colormapping support to the video class. In general, for hardware with color, it is better to instantiate both a color class and a monochrome class which puts the device on mono mode and keeps it there. This allows for better static type checking (instead of dynamic errors).

MonoVideo(int nbytes = 1, int nc_in = 640, int nr_in = 480)
Input and output data types set to PIX_LUMINANCE by default

virtual void set_grab_type(Device_output_type ot)
Allow switching of type of data delivered by the device, provided it is a legal monochrome type (See Device_output_type enumeration in Video.hh).

ColorVideo(int nbytes = 4, int nc_in = 640, int nr_in = 480)
Input and output data types set to PIX_PACKED by default

virtual void set_grab_type(Device_output_type ot)
Allow switching of type of data delivered by the device


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de