Commit e4bff4ec authored by André Anjos's avatar André Anjos 💬

[gui] More improvements to the help message

parent a1ac434d
......@@ -19,8 +19,8 @@ where inserted.
It is recommended you familiarize yourself with the keyboard and pointer (mouse
use is recommended) bellow so you can use this tool more efficiently. A few
key actions are displayed on the left of the tool canvas and provides a
faster start for new users.
key actions are displayed on the left of the tool canvas and provides a faster
start for new users.
You can start this application in editing (default) or viewing mode. If you
use it to view annotations only, you will not be able to edit the keypoints.
......@@ -31,14 +31,14 @@ Keyboard shortcuts
? : opens a dialog with this help message
a | Zero | KP_Zero : places new point under pointer cursor, on the currently
active (annotation) object
a | Zero | <KP_Zero> : places new point under pointer cursor, on the currently
active (annotation) object
i | Shift-Zero | Shift-KP_Zero : inserts new point on a currently active
object, before the current active point
i | <Shift>-Zero | <Shift>-KP_Zero : inserts new point on a currently active
object, before the current active point
d | Delete : deletes the currently active point on the currently active
object (marked in different color)
d | <Del> : deletes the currently active point on the currently active object
(marked in different color)
o : edit the next object
......@@ -63,11 +63,11 @@ q : quits the application, saving annotations for the current image
<Alt> : Temporarily shows line connections or polygon decorations (while
pressed)
<Esc> : Quits the application, does not save anything
<Esc> : Quits the application **without saving**
Annotation displacement
-----------------------
Annotation movement
-------------------
N.B.: Only works with the last annotated point (or the one closest to pointer)
......@@ -79,20 +79,23 @@ k | Up : moves active annotation by 1 pixel up
j | Down : moves active annotation by 1 pixel down
Shift + movement : moves active annotation by 5 pixels on that direction
<Shift> + motion keys : moves active annotation by 5 pixels on that direction
Mouse shortcuts
---------------
Left : places new annotation under the pointer cursor
Pointer shortcuts
-----------------
Shift-Left : inserts new annotation before the current annotation
N.B.: Tested with a mouse. Trackpads do not normally offer these keys.
Right : deletes the currently active annotation
<Left> : places new annotation under the pointer cursor
Wheel Down : moves to the next image
<Shift>-<Left> : inserts new annotation before the current annotation
Wheel Up : moves to the previous image
<Right> : deletes the currently active annotation
<Wheel Down> : moves to the next image
<Wheel Up> : moves to the previous image
"""
......@@ -115,7 +118,7 @@ import logging
logger = logging.getLogger(__name__)
# image filters:
from skimage import exposure
import skimage.exposure
class HelpDialog(tkinter.Toplevel):
......@@ -301,7 +304,7 @@ class AnnotatorApp(tkinter.Tk):
nr = math.ceil(self.image.shape[0] / kernel_size)
nc = math.ceil(self.image.shape[1] / kernel_size)
clip = self.variables['adaheq-clip'].get()
self.image = exposure.equalize_adapthist(self.image,
self.image = skimage.exposure.equalize_adapthist(self.image,
kernel_size=(nr, nc), clip_limit=clip)
self.image = self.image * 255
self.image = Image.fromarray(self.image.astype(numpy.uint8))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment