This module provide a Control Point Selection Tool

class image.gui.point_selection.PointSelection[source]

Bases: PySide.QtGui.QMainWindow

add_point(pos, my_pid=None)[source]

Add a new point

Parameters:
  • pos (QPointF) - position of the point on the screen
coordinates((i, j, k))[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]
mouse_moved(event)[source]
mouse_pressed(pos)[source]
palette_name_changed(palette_index)[source]
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]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x2adee8586dd0>
image.gui.point_selection.point_selection(image, palette_name='grayscale', color_index_max=None)[source]

This Page