Commit Graph

93 Commits

Author SHA1 Message Date
Josh Warner (Mac) 6f775400b5 FIX: No longer reset for each update 2013-06-29 15:34:03 -05:00
Josh Warner (Mac) 19a3d33573 FIX: only reset axes when gray <-> rgb, not every update 2013-06-29 15:18:53 -05:00
Josh Warner (Mac) b4e71ecd43 FIX: remove blit, fix 0-length error on grayscale images 2013-06-29 15:09:58 -05:00
Josh Warner (Mac) e790fcc44e FIX: lineprofile no longer flips on left half and cardinals work 2013-06-29 14:24:16 -05:00
Josh Warner (Mac) e20aa7c381 FIX: refactor code, fix linewidth calculation 2013-06-29 14:24:16 -05:00
Josh Warner (Mac) 9ece0b576c FEAT: Automatically switch between RGB / grayscale lineprofile 2013-06-29 14:24:15 -05:00
Stefan van der Walt a1adfa8d54 Correctly check for string type. 2013-06-29 10:17:41 -05:00
Josh Warner 173fec01c7 Merge pull request #575 from tonysyu/feature/viewer-linking
Linked image viewers and docked plugins
2013-06-28 08:32:34 -07:00
tonysyu ed7c75d4c6 Raise ImageViewer to front on start.
Currently only works for main window, does not work for linked viewers.
2013-06-26 11:00:24 -05:00
Tony S Yu dae0156230 Make histogram threshold adjustable 2013-06-25 23:20:12 -05:00
François Boulogne 3926f1873d use items/values for python2/3 compat 2013-06-20 11:16:23 +02:00
François Boulogne cc249baa6c fix iteritems for python3 compat 2013-06-13 14:06:23 +02:00
Tony S Yu afd1b1b835 Fix display of overlay plugin when original image is updated 2013-06-08 19:24:50 -05:00
Tony S Yu cc2f1854b5 Fix plugin interaction with CollectionViewer
* Signal updates to original image when image changed in CollectionViewer.
* Update plugin arguments for the filter.
* Also fixes image updates when opening a new image from the file menu.
2013-06-08 19:06:23 -05:00
tonysyu 2ca77c42be Fix PySide compatibility for signal defs 2013-06-05 11:22:24 -05:00
Tony S Yu 55386ec785 Add smart window-layout for multi-viewer display 2013-05-30 22:37:36 -05:00
Tony S Yu e373e13f03 Fix sizing of PlotPlugin 2013-05-30 22:21:55 -05:00
Tony S Yu 07630a93e6 Dock plugins to image viewer. 2013-05-30 22:21:21 -05:00
Tony S Yu bd860b7720 Add infrastructure for conneting plugin output to a viewer. 2013-05-28 23:52:10 -05:00
Tony S Yu a5d42a3940 Add skimage.viewer.qt wrapper.
This allows the viewer to use either PyQt4 or PySide as the toolkit.
2013-05-17 16:22:17 -05:00
Tony S Yu 230fefa748 ENH: Improve usability of watershed_demo.
* Replace 0 label with 'Erase'
* Use OK button instead of enter key to calculate watershed.
2013-01-24 21:47:42 -06:00
Tony S Yu 9c4eb3a6fc Use print function for python 3 compatibility 2012-12-26 22:21:24 -08:00
Tony S Yu df916713f5 ENH: Add PaintTool and LabelPlugin 2012-12-26 22:03:59 -08:00
Tony S Yu 16f159fb3e ENH: Remove unnecessary clean up functions.
Connecting matplotlib events are now the responsibility of canvastools, not the viewer.
2012-12-26 21:41:03 -08:00
Tony S Yu 6c1b969b21 BUG: Fix clean up of canvastools
NOTE: The rectangle tool doesn't seem to clean up properly.
2012-12-26 21:39:39 -08:00
Tony S Yu 0e08acd7c9 ENH: Warn if using OverlayPlugin w/ matplotlib < 1.2 2012-12-16 22:56:04 -05:00
Tony S Yu 9c88dd8644 ENH: Let CannyPlugin adapt to input image
Add `dtype_limits` helper function.
2012-12-16 22:15:11 -05:00
Tony S Yu 9bf512da8b ENH: Allow Save buttons to save overlay
Closes Github #264
2012-12-15 09:32:26 -05:00
Tony S Yu 829479512f BUG: Update measure for change in line_tool API 2012-12-13 22:26:26 -05:00
Tony S Yu 2e7e92f536 STY: Simplify imports 2012-12-13 21:31:54 -05:00
Tony S Yu 34de6d323a BUG: Fix line thickness change call back 2012-12-13 21:21:36 -05:00
Tony S Yu e5dfb8c7ac STY: Remove linewidth parameter to simplify API 2012-12-13 20:56:27 -05:00
Tony S Yu 3fab96fb09 STY: Rename end_pts to end_points 2012-12-13 20:49:58 -05:00
Tony S Yu 3d631eadc3 Remove x, y parameters from line tool to simplify API 2012-12-13 20:40:47 -05:00
Tony S Yu 8e4f24af00 ENH: Add color histogram plugin 2012-12-13 18:02:40 -05:00
Tony S Yu cfe9e7def9 Fix typo 2012-12-13 17:58:08 -05:00
Tony S Yu 43fecd0cb8 BUG: Fix renamed parameter 2012-12-13 17:47:27 -05:00
Tony S Yu 631e97d973 ENH: Add rectangle tool and crop plugin example 2012-12-12 23:59:40 -05:00
Tony S Yu 36bc6da757 STY: Refactors general parts of line tool to base tool 2012-12-12 23:42:15 -05:00
Tony S Yu cb30c24427 ENH: Add measure tool plugin 2012-12-12 21:46:08 -05:00
Tony S Yu 67aada9adc ENH: Increase default selection threshold for ease of use 2012-12-12 15:58:10 -05:00
Tony S Yu 16a720770a STY: Clean up unused blitting-related code 2012-12-12 13:34:53 -05:00
Tony S Yu 211bba0195 ENH: Default to blitting
Since the Qt4 Agg backend is always used, it's always safe to use blitting.
2012-12-09 21:11:06 -05:00
Tony S Yu ef2bb54c45 Fix figure canvas creation.
Avoid use of matplotlib's pyplot functions for creating figure canvases. In particular, key press events were ignored by the canvas.
2012-12-09 20:51:18 -05:00
Tony S Yu 9d653fec78 BUG: Clean up imports 2012-11-15 23:53:47 -05:00
Tony S Yu 5be5813070 STY: Reuse ThickLineTool in LineProfile 2012-11-15 00:16:19 -05:00
Andreas Mueller 6c59e04714 MISC remove unused imports, some pep8 corrections. 2012-09-27 20:01:45 +01:00
Tony S Yu fcf2a9bc97 DOC: Fix doctests in viewer subpackage
The doctests in the viewer subpackage weren't originally written as proper doctests.
2012-09-11 23:38:00 -04:00
Tony S Yu d1e012ea30 BUG: Initialize QApplication when creating Plugin.
QWidgets cannot be initialized unless QApplication has been created. In cases where the Plugin is created before the ImageViewer, ensure that QApplication exists.
2012-09-04 22:07:59 -04:00
Tony S Yu 41ea3ba7fd Add line profile plugin back in.
I saved a copy of the line profile plugin in a branch and then deleted the plugin from the main qtmpl-viewer branch. Unfortunately, I forgot that rebasing off the main branch would erase the plugin. This commit just adds the plugin back.
2012-09-01 15:42:52 -04:00