gdesk.panels.imgview.proxy module¶
- class gdesk.panels.imgview.proxy.ImageGuiProxy¶
Bases:
gdesk.core.gui_proxy.GuiProxyBase
- attach(gui)¶
- property buff¶
- category = 'image'¶
- static close_all()¶
- static cmap(cmap)¶
- static get_clipboard_image()¶
- static get_distance()¶
- static get_image_view_buffer()¶
- get_image_view_region()¶
- static get_image_view_source(shared=True)¶
- static get_roi()¶
Get the region of interest of the current viewport as a tuple of integers.
- Return tuple(int, int, int, int)
x0, y0, width, height.
- static get_roi_slices()¶
Get the current region of interest as a tupple of slice objects
- static get_selected_pixel()¶
- static high_pass_current_image()¶
- static jump_to(x, y)¶
Select a certain pixel and zoom to it
- static mirror_x()¶
- static new(cmap=None, viewtype='image-profile', title=None)¶
- static open(filepath, new=False)¶
- opens_with = ['.tif', '.png', '.gif']¶
- refresh()¶
- static repaint()¶
- static select(panid=- 1)¶
Select or create an image panel with id image_id or auto id
- static set_offset_gain(offset=0, gain=1, gamma=1, as_default=False)¶
- static set_range(black, white)¶
- static set_roi(x0, y0, width=1, height=1)¶
Set the region of interest on the current viewport.
- Parameters
x0 (int) – first column of the roi
y0 (int) – first row of the roi
width (int) – width of the roi
height (int) – height of the roi
- static set_roi_slices(slices, yonfirst=True)¶
Set the region of interest on the current viewport.
- Parameters
slices (tuple) – Tuple of slices accross the dimensions.
yonfirst (bool) – True if first slice is the y direction.
- show(array, cmap=None)¶
Show array in the image viewer.
- Parameters
array (ndarray) –
cmap (str) – ‘grey’, ‘jet’ or ‘turbo’
- static show_array(array=None, cmap=None)¶
- static show_mask(array=None, composition='sourceover')¶
- property vr¶
- property vs¶
- static zoom_fit()¶
Zoom the image to fitting the image viewer area. Snap on the default zooming values.
- static zoom_full()¶
Zoom the image to fully fitting the image viewer area.
- static zoom_region(x, y, width, height)¶
Zoom the image to a certain region.