** The MonoVideo class supports acquisition of eight bit monochrome images * If the underlying device is monochrome then the only possible output * is what the device supplies If the underlying device is color it is * also possible to get other projections hue saturation r g b of the * color image By default luminance band averaged data is returned * class MonoVideo : public Video


Inheritance:


Public Methods

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

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

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).


Direct child classes:
way
way
WANTED

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