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
virtual void set_grab_type(Device_output_type ot)
Allow switching of type of data delivered by the device

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(Image &image, int x, int y, float angle = 0.0, int sampw =1, int samph =1, short int mask = 0xff)
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(Image &image, float &x, float &y, 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_aligned(Image &image, int x, int y, 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_region(Image &image, int lx, int ly, 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)
virtual int grab_static(Image &image, int x, int y, float angle = 0.0, int sampw =1, int samph =1, short int mask = 0xff)
int height()
int in_view(const Image &x, int cx, int cy)
int in_view(int cx, int cy, int w, int h)
int in_view(int cx, int cy, int w, int h, float angle)
int in_view(const Image &x, int cx, int cy, float angle)
int in_view2(int x1, int y1, int x2, int y2)
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)
virtual int show(Image &im, int x=100, int y=100)
int width()

Protected Fields

int _bytesperpixel
int _is_mappable
int fg_ncols
int fg_nrows
Device_output_type input_type
int ncols
int nrows
Device_output_type output_type

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 map_image(Image &x)
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).

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


Direct child classes:
way
WANTED
RTVC
MPEG
IT_icpci

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