ui
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
================ ui2.py Interface ================ Usage: ui2.py [options] moviefile [dataprefix] Options: -h, --help show this help message and exit -t, -T, --transpose transpose images [default: False] --frame=N Start browsing at the N'th frame [default: 0] -c CURSOR_SIZE, --cursorsize=CURSOR_SIZE Initial cursor radius in pixels [default: 10 px] --cursorpos Show cursor's center coordinates [default: False] --adjuststripes Adjust odd-scanline bias [default: True] --noadjuststripes Prevent adjust odd-scanline bias [default: False] --fps Display rendering speed [default: False] Examples: python ui2.py S0.tif python ui2.py S0.tif S0 python ui2.py S0.tif S0.whisker S0.measurements S0.bar If no data_files_prefix is given, a default set will be created. The prefix will be used to load/save the appropriate files. Ordering of the filenames isn't important. Filetype is detected accrording to the file extension. ----------------- Keyboard Controls ----------------- key function --- -------- < (,) Jump to the beginning of the movie > (.) Jump to the end of the movie ] Jump to next gap in current trajectory [ Jump to previous gap in current trajectory Shift-] Jump to next gap in any trajectory Shift-[ Jump to previous gap in any trajectory Up Increment current whisker id Down Decrement current whisker id Left Rewind one frame Right Advance one frame Shift ( Modifies arrow keys ) speed up 10x | Ctrl ( Modifies arrow keys ) speed up 10x | Effects multiply Alt ( Modifies arrow keys ) speed up 10x | Delete Delete whisker in currently displayed frame Space Turn auto mode on and off d Change draw mode Shift-d Enter debug console Shift-s Save ESC Save and Quit = Increment search radius - Decrement search radius f Scroll through face hints to indicate which side of the image the face is on. See Notes (below). -------------- Mouse Controls -------------- Action function ------ -------- Right click Mark seed for whisker tracking. Attempt backbone tracing. Draw traced whisker backbone. Advance 1 frame. Left click Add nearest segment within cursor to current whisker If no segment found in cursor, clear any segments in that frame assigned to the whisker Advance 1 frame Mouse wheel up Advance 1 frame Mouse wheel down Rewind 1 frame ----- Notes ----- If filenames are not completely specified, default names will be guessed. If an existing data file is found, the whisker data will be loaded. Normally the left and right arrow keys advance or rewind by one frame. Holding down shift, ctrl, and/or alt keys will increase the step size by 10x each. Hence, holding shift and ctrl (or ctrl and alt, etc...) results in a 100 frame step. Holding shift ctrl and alt and pressing left or right, jumps 1000 frames. The face hint is used on saving to a .measurements file. The .measurements file contains, in addition to the identity of segments, measures of follicle position, angle, etc... Some of these measures require approximate knowledge of the center of the whisker pad, which is indicated by the face hint. Currently, the hint only takes values of 'left','right','top' or 'bottom' that indicate the side of the movie the face is on. These options work for a specific class of data where the image is cropped so the mouse's face is on one side.