ImageYUVGraphic#

ImageYUVGraphic#

Constructor#

ImageYUVGraphic(data[, vmin, vmax, gamma, ...])

Create an ImageYUVGraphic.

Properties#

ImageYUVGraphic.alpha

The opacity of the graphic

ImageYUVGraphic.alpha_mode

How the alpha is handled by the renderer

ImageYUVGraphic.axes

ImageYUVGraphic.block_events

Used to block events for a graphic and prevent recursion.

ImageYUVGraphic.block_handlers

Used to block event handlers for a graphic and prevent recursion.

ImageYUVGraphic.cmap

ImageYUVGraphic.cmap_interpolation

ImageYUVGraphic.colorrange

the color range, see docstring for details

ImageYUVGraphic.colorspace

image's colorspace

ImageYUVGraphic.cpu_buffer

whether or not a cpu buffer is used for the image data.

ImageYUVGraphic.data

YUV Texture data, note that no local buffer exists for YUV images, you can only set values but not get them

ImageYUVGraphic.deleted

used to emit an event after the graphic is deleted

ImageYUVGraphic.event_handlers

Registered event handlers.

ImageYUVGraphic.gamma

gamma correction applied to the image

ImageYUVGraphic.imgui_right_click

The imgui popup that is opened by a right-click on this graphic.

ImageYUVGraphic.interpolation

Data interpolation method

ImageYUVGraphic.legend_item

The legend item of this graphic, created with create_legend_item().

ImageYUVGraphic.name

Graphic name

ImageYUVGraphic.offset

[x, y, z]

ImageYUVGraphic.rotation

Orientation of the graphic as a quaternion

ImageYUVGraphic.scale

(x, y, z) scaling factor

ImageYUVGraphic.supported_events

events supported by this graphic

ImageYUVGraphic.tooltip_format

set a custom tooltip format function which takes a pick_info dict and returns a str to be displayed in the tooltip

ImageYUVGraphic.visible

Whether the graphic is visible

ImageYUVGraphic.vmax

upper contrast limit

ImageYUVGraphic.vmin

lower contrast limit

ImageYUVGraphic.world_object

Associated pygfx WorldObject.

Methods#

ImageYUVGraphic.add_axes()

Add axes onto this Graphic

ImageYUVGraphic.add_event_handler(*args)

Register an event handler.

ImageYUVGraphic.add_linear_region_selector([...])

Add a LinearRegionSelector.

ImageYUVGraphic.add_linear_selector([...])

Adds a LinearSelector.

ImageYUVGraphic.add_polygon_selector([...])

Add a PolygonSelector.

ImageYUVGraphic.add_rectangle_selector([...])

Add a RectangleSelector.

ImageYUVGraphic.append_imgui_right_click([gui])

Append imgui elements to the right-click popup of this graphic.

ImageYUVGraphic.clear_event_handlers()

clear all event handlers added to this graphic

ImageYUVGraphic.format_pick_info(pick_info)

Takes a pygfx.PointerEvent and returns formatted pick info.

ImageYUVGraphic.map_model_to_world(position)

map position from model (data) space to world space, basically applies the world affine transform

ImageYUVGraphic.map_world_to_model(position)

map position from world space to model (data) space, basically applies the inverse world affine transform

ImageYUVGraphic.remove_event_handler(...)

remove a registered event handler

ImageYUVGraphic.remove_imgui_right_click()

Remove and return the right-click popup of this graphic

ImageYUVGraphic.reset_vmin_vmax()

reset vmin, vmax to (0, 255)

ImageYUVGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

ImageYUVGraphic.set_imgui_right_click([...])

Set the imgui popup that is opened by a right-click on this graphic, replaces the popup of the subplot or Figure for this graphic.