ImageD11.nbGui.draw_mask module#

class ImageD11.nbGui.draw_mask.InteractiveMask(image)#

Bases: object

get_mask(doplot=True)#

Waits for user to draw polygon and then returns the mask.

on_key(event)#

Closes the figure when Enter is pressed.

on_select(verts)#

Callback function for polygon selection.

ImageD11.nbGui.draw_mask.plot_mask_result(image, mask)#
ImageD11.nbGui.draw_mask.threshold_mask(image, manual_threshold=None, doplot=True)#