"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "skimage/future/manual_segmentation.py" between
scikit-image-0.19.2.tar.gz and scikit-image-0.19.3.tar.gz

About: scikit-image is a collection of algorithms for image processing in Python.

manual_segmentation.py  (scikit-image-0.19.2):manual_segmentation.py  (scikit-image-0.19.3)
skipping to change at line 100 skipping to change at line 100
undo_pos = fig.add_axes([0.85, 0.05, 0.075, 0.075]) undo_pos = fig.add_axes([0.85, 0.05, 0.075, 0.075])
undo_button = matplotlib.widgets.Button(undo_pos, u'\u27F2') undo_button = matplotlib.widgets.Button(undo_pos, u'\u27F2')
undo_button.on_clicked(_undo) undo_button.on_clicked(_undo)
def _extend_polygon(event): def _extend_polygon(event):
# Do not record click events outside axis or in undo button # Do not record click events outside axis or in undo button
if event.inaxes is None or event.inaxes is undo_pos: if event.inaxes is None or event.inaxes is undo_pos:
return return
# Do not record click events when toolbar is active # Do not record click events when toolbar is active
if fig.canvas.manager.toolbar._active is not None: if ax.get_navigate_mode():
return return
if event.button == LEFT_CLICK: # Select vertex if event.button == LEFT_CLICK: # Select vertex
temp_list.append([event.xdata, event.ydata]) temp_list.append([event.xdata, event.ydata])
# Remove previously drawn preview polygon if any. # Remove previously drawn preview polygon if any.
if preview_polygon_drawn: if preview_polygon_drawn:
poly = preview_polygon_drawn.pop() poly = preview_polygon_drawn.pop()
poly.remove() poly.remove()
# Preview polygon with selected vertices. # Preview polygon with selected vertices.
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)