interactive_location_picker_pyqtgraph

This module contains two classes which allow for interactive selection of images. PyQtGraph is used to create the GUI.

class KeyPressWindow(pyqtgraph.GraphicsWindow)

class microscope_automation.samples.interactive_location_picker_pyqtgraph.KeyPressWindow(*args, **kwargs)[source]

Creating a class to define a custom key press signal for selecting modes.

keyPressEvent(self, QKeyEvent)[source]

class ImageLocationPicker(object)

class microscope_automation.samples.interactive_location_picker_pyqtgraph.ImageLocationPicker(image=None, location_list=[], app=None, spot_size=10, spot_brush='r', spot_symbol='+', spot_pen='r')[source]
flip_coordinates(location_list)[source]

ZEN has the image origin in the upper left corner, QTgraph in the lower left corner. This methods transforms coordinates between the two systems.

Input:

location_list: List of tuples (or single tuple) in the form of (x,y) coordinates to be transformed

Output:

flipped_location_list: list with (x, y) tuples after transformation

plot_points(window_title)[source]

Plots a given list of location on the image, gives the user ability to edit them using add and delete modes

Input:

window_title: name to give the GUI window

Output:

none