Stream image that is returned, when the ring buffer interface is available on a device. More...
Inherits StreamImage.
Public Member Functions | |
None | unlock (self) |
Unlocks the ring buffer. | |
![]() | |
cvb.Image | clone (self) |
Creates a new image object, that is a copy of the current instance. | |
None | copy (self, cvb.Image target_image, Optional[cvb.Rect] source_rect, Optional[cvb.Point2D] target_position) |
Copies the image data from the source rectangle of this image to the target position inside the target image. | |
cvb.Image | create (int width, int height, Optional[int] num_planes, Optional[cvb.DataType] data_type) |
Creates an uninitialized image with the given parameters. | |
cvb.Image | create (cvb.Size2D size, Optional[int] num_planes, Optional[cvb.DataType] data_type) |
Creates an uninitialized image with the given parameters. | |
cvb.Image | from_images (int mapping, List[cvb.Image] images) |
Create an image that is the result of concatenating a series of input images. | |
cvb.Image | from_pixel_format (cvb.Size2D size, int format) |
Creates an uninitialized image with the given parameters. | |
cvb.Image | from_pixel_format (int width, int height, int format) |
Creates an uninitialized image with the given parameters. | |
cvb.Image | from_planes (int mapping, List[cvb.ImagePlane] planes) |
Create an image that is the result of concatenating a series of input planes. | |
List[float] | get_pixel (self, cvb.Point2D position) |
Gets the pixel values for all planes at a give position (as float list). | |
cvb.Point2D | image_to_pixel_coordinates (self, cvb.Point2D point) |
Convert a point from image to pixel coordinates. | |
cvb.Area2D | image_to_pixel_coordinates (self, cvb.Area2D area) |
Convert an area from image to pixel coordinates. | |
cvb.Image | load (str file_name) |
Loads an image with the given file name. | |
cvb.Image | map (self, cvb.Rect source_rect, Optional[cvb.Size2D] target_size) |
Creates a mapped image of the region of that image scaled to the size. | |
cvb.Image | map_rotated (self, int rotation) |
Creates a mapped image of this whole image rotated by the given rotation. | |
cvb.Point2D | pixel_to_image_coordinates (self, cvb.Point2D point) |
Convert a point from pixel to image coordinates. | |
cvb.Point2D | pixel_to_image_coordinates (self, cvb.Point2D area) |
Convert an area from pixel to image coordinates. | |
None | raise_pixel_content_changed (self, cvb.Rect rect) |
Inform clients listening to the pixel content changed event, that the image data has been updated in the given rectangle. | |
cvb.EventCookie | register_event_pixel_content_changed (self, Callable[[cvb.Image, cvb.Rect], None] handler) |
Register a listener to the pixel content changed event. | |
None | save (self) |
Write the current content of the image into a file. | |
None | save (self, str file_name, float quality) |
Write the current content of the image into a file with the given quality. | |
None | unregister_event_pixel_content_changed (self, cvb.EventCookie event_cookie) |
Manually unregister a listener from the pixel content changed event. | |
Properties | |
buffer_index = property | |
int: Gets the index of this buffer in the parent device's ring buffer. | |
![]() | |
raw_timestamp = property | |
float: Gets the raw timestamp as reported by the driver. | |
![]() | |
bounds = property | |
cvb.Rect: Bounding rectangle of the image in pixels. | |
color_model = property | |
int: Color model realized by this image (see cvb.ColorModel). | |
coordinate_system = property | |
cvb.AffineMatrix2D: Gets or sets the coordinate system of the image. | |
height = property | |
int: Height of the image in pixels. | |
plane_data_types_identical = property | |
bool: Check if all planes have the same data type. | |
planes = property | |
List[cvb.ImagePlane]: Access all planes for this image. | |
size = property | |
cvb.Size2D: Size of the image in pixels. | |
width = property | |
int: Width of the image in pixels. | |
Stream image that is returned, when the ring buffer interface is available on a device.
None unlock | ( | self | ) |
Unlocks the ring buffer.
If LockMode.On is set use this to return the buffer into the acquisition que.
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.