Fawkes API
Fawkes Development Version
|
Camera image control interface. More...
#include <>>
Public Member Functions | |
virtual | ~CameraControlImage () |
Empty virtual destructor. More... | |
virtual const char * | format () |
Get the image format the camera currently uses. More... | |
virtual void | set_format (const char *format) |
Set the image format the camera should use. More... | |
virtual unsigned int | width ()=0 |
Get the current width of the image. More... | |
virtual unsigned int | height ()=0 |
Get the current height of the image. More... | |
virtual void | size (unsigned int &width, unsigned int &height) |
Get the current image size. More... | |
virtual void | set_size (unsigned int width, unsigned int height)=0 |
Set the image size the camera should use. More... | |
virtual bool | horiz_mirror () |
Return whether the camera image is horizontally mirrored. More... | |
virtual bool | vert_mirror () |
Return whether the camera image is vertically mirrored. More... | |
virtual void | mirror (bool &horiz, bool &vert) |
Get information about current camera image mirroring. More... | |
virtual void | set_horiz_mirror (bool enabled) |
Set whether the camera should mirror images horizontally. More... | |
virtual void | set_vert_mirror (bool enabled) |
Set whether the camera should mirror images vertically. More... | |
virtual void | set_mirror (bool horiz, bool vert) |
Set whether the camera should mirror images. More... | |
virtual unsigned int | fps () |
Get the number of frames per second the camera tries to deliver. More... | |
virtual void | set_fps (unsigned int fps) |
Set the number of frames per second the camera tries to deliver. More... | |
virtual unsigned int | lens_x_corr () |
Get current lens x correction. More... | |
virtual unsigned int | lens_y_corr () |
Get current lens y correction. More... | |
virtual void | lens_corr (unsigned int &x_corr, unsigned int &y_corr) |
Get current lens correction. More... | |
virtual void | set_lens_x_corr (unsigned int x_corr) |
Set lens x correction. More... | |
virtual void | set_lens_y_corr (unsigned int y_corr) |
Set lens y correction. More... | |
virtual void | set_lens_corr (unsigned int x_corr, unsigned int y_corr) |
Set lens correction. More... | |
![]() | |
virtual | ~CameraControl () |
Virtual empty destructor. More... | |
Camera image control interface.
Some cameras feature adjustable image controls like size, format or mirroring.
This interface shall be implemented by such cameras.
|
virtual |
|
virtual |
Get the image format the camera currently uses.
Check implementation documentation for details on the format.
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
|
virtual |
Get the number of frames per second the camera tries to deliver.
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
|
pure virtual |
Get the current height of the image.
Implemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Referenced by size().
|
virtual |
Return whether the camera image is horizontally mirrored.
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 107 of file image.cpp.
Referenced by mirror().
|
virtual |
Get current lens correction.
[out] | x_corr | where the current lens x correction will be stored |
[out] | y_corr | where the current lens y correction will be stored |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::DummyCameraControl.
Definition at line 222 of file image.cpp.
References lens_x_corr(), and lens_y_corr().
|
virtual |
Get current lens x correction.
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 199 of file image.cpp.
Referenced by lens_corr().
|
virtual |
Get current lens y correction.
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 210 of file image.cpp.
Referenced by lens_corr().
|
virtual |
Get information about current camera image mirroring.
[out] | horiz | upon return contains flag if horizontal mirroring is enabled |
[out] | vert | upon return contains flag if vertical mirroring is enabled |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::DummyCameraControl.
Definition at line 130 of file image.cpp.
References horiz_mirror(), and vert_mirror().
|
virtual |
Set the image format the camera should use.
Check implementation documentation for details on the format.
format | the new image format |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
|
virtual |
Set the number of frames per second the camera tries to deliver.
fps | the new fps |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
|
virtual |
Set whether the camera should mirror images horizontally.
enabled | if true, images should be mirrored horizontally |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 142 of file image.cpp.
Referenced by set_mirror().
|
virtual |
Set lens correction.
x_corr | new lens x correction |
y_corr | new lens y correction |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::DummyCameraControl.
Definition at line 257 of file image.cpp.
References set_lens_x_corr(), and set_lens_y_corr().
|
virtual |
Set lens x correction.
x_corr | new lens x correction |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 234 of file image.cpp.
Referenced by set_lens_corr().
|
virtual |
Set lens y correction.
y_corr | new lens y correction |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 245 of file image.cpp.
Referenced by set_lens_corr().
|
virtual |
Set whether the camera should mirror images.
horiz | true to mirror images horizontally, false to disable mirroring |
vert | true to mirror images vertically, false to disable mirroring |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::DummyCameraControl.
Definition at line 165 of file image.cpp.
References set_horiz_mirror(), and set_vert_mirror().
|
pure virtual |
Set the image size the camera should use.
width | new width of the image |
height | new height of the image |
Exception | thrown for instance if size setting at run-time is not supported |
Implemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
|
virtual |
Set whether the camera should mirror images vertically.
enabled | if true, images should be mirrored vertically |
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 153 of file image.cpp.
Referenced by set_mirror().
|
virtual |
Get the current image size.
[out] | width | upon return contains the width of the image |
[out] | height | upon return contains the height of the image |
Reimplemented in firevision::DummyCameraControl.
Definition at line 96 of file image.cpp.
References height(), and width().
Referenced by firevision::NaoCamera::NaoCamera().
|
virtual |
Return whether the camera image is vertically mirrored.
NotImplementedException | Not implemented by this control |
Reimplemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Definition at line 118 of file image.cpp.
Referenced by mirror().
|
pure virtual |
Get the current width of the image.
Implemented in firevision::V4L2Camera, and firevision::DummyCameraControl.
Referenced by size().