Openalea.Image.Gui Package#

Gui.Animator#

openalea.image.gui.animator#

This module defines a widget to animate a sequence of images

class openalea.image.gui.animator.FrameAnimator(parent=None)[source]#

Animate a list of frames

append_frame(frame)[source]#

Append a new frame at the end of current list

Parameters:
  • frame (str or QPixmap) - filename or pixmap

clear_frames()[source]#

Clear the list of frames

close_window()[source]#
nb_frame_changed()[source]#

Function to call when the number of frame has changed

pause()[source]#
play()[source]#
set_current_frame(ind)[source]#

Set the index of the frame to be displayed

Parameters:
  • ind (int) - index of the frame to display

set_fps(fps)[source]#

Set number of frame per second

Parameters:
  • fps (int)

set_frames(frames)[source]#

Set frame names

Parameters:
  • frames (list of str or QPixmap) - list of pixmap or frame path

set_loop(loop)[source]#

Set animation to loop

Parameters:
  • loop (bool) - if True animation will restart from start each time

    the end is reached

step()[source]#
stop()[source]#
toggle_running()[source]#
update_pix()[source]#

Change currently displayed frame

openalea.image.gui.animator.clone_action(ref_action, clone)[source]#

Gui.Point_Selection#

openalea.image.gui.point_selection#

This module provide a Control Point Selection Tool

class openalea.image.gui.point_selection.PointSelection[source]#
add_point(pos, my_pid=None)[source]#

Add a new point

Parameters:
  • pos (QPointF) - position of the point on the screen

coordinates(xxx_todo_changeme)[source]#
del_point(pos, my_pid=None)[source]#

Delete a new point

Parameters:
  • pos (QPointF) - position of the point on the screen

fill_infos()[source]#
get_pixel_value_str(img, x, y, z)[source]#
get_points()[source]#

Return the list of points in voxels

load_points()[source]#
on_mouse_moved()[source]#
on_mouse_pressed()[source]#
palette_name_changed(palette_index)[source]#
points_changed#

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

rotate_left()[source]#
rotate_right()[source]#
save_points()[source]#
set_image(img)[source]#
set_palette(palette, palette_name=None)[source]#
set_points(points)[source]#

Set a point to a new ID

Parameters:
  • pos (QPointF) - position of the point on the screen

slice_changed(ind)[source]#
update_pix()[source]#
update_points()[source]#
openalea.image.gui.point_selection.point_selection(image, palette_name='grayscale', color_index_max=None)[source]#

Gui.Slide_Viewer#

openalea.image.gui.slide_viewer#

This module contains a widget that allows viewing of image stacks. It should thus be called slice_viewer, not slide_viewer.

This module provide a simple viewer to display 3D stacks

class openalea.image.gui.slide_viewer.SlideViewer(parent=None)[source]#

Display each image in a stack using a slider

A pure QWidget (instead of QMainWindow) is also available, see openalea.image.gui.slide_viewer_widget.

change_axis(ind)[source]#
fill_infos()[source]#
get_pixel_value_str(img, x, y, z)[source]#
on_mouse_pressed_moved()[source]#
palette_name_changed(palette_index)[source]#
rotate_left()[source]#
rotate_right()[source]#
set_image(img)[source]#
set_palette(palette, palette_name=None)[source]#
set_title(title=None)[source]#
slice_changed(ind)[source]#
snapshot()[source]#

write the current image

update_pix()[source]#
viewer_count = 0#
wheelEvent(self, a0: QWheelEvent | None)[source]#
openalea.image.gui.slide_viewer.display(image, palette_name='grayscale', title=None, color_index_max=None)[source]#