Commit [2a57c3]  Maximize  Restore  History

Updates to ImageMontage class to support highlighting clicked tiles. If

the montage is created with highlight_selected = True, then when a tile
is clicked, it becomes highlighted in yellow. This toggles, so that if a
highlighted tile is clicked it becomes normal. There are two additional
methods, setHighlighted() and getHighlighted(). The first might
typically be used before showing the montage to initialize a set of
tiles to be highlighted. getHighlighted() might typically be used after
the montage is closed, for the calling program to determine the final
set of tiles selected by the user. This feature works independently of
the setSelectHandler() callback, which can still be used to invoke
arbitrary actions when a tile is clicked. Now, however, the tile label
is passed as an element in the dictionary of the signature of the select
handler function. The changes are intended to not break any previous
code.

sohara sohara 2014-02-14

changed src/pyvision/analysis/Montage.py
src/pyvision/analysis/Montage.py Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks