Commit Graph

3324 Commits

Author SHA1 Message Date
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 cae693cb69 Change QApp default to previous behavior. 2013-06-25 23:24:06 -05:00
Tony S Yu dae0156230 Make histogram threshold adjustable 2013-06-25 23:20:12 -05:00
Tony S Yu e305677de5 Fix PyQt4 segfault caused by PySide fix.
I guess PySide saves the QApplication internally, while PyQt4 doesn't.
Saving the QApplication as a global prevents it from getting garbage
collected. Saving the QApplication as an instance variable in the
ImageViewer also works, but that might prevent the ImageViewer from getting
garbage collected in an interactive session. (weakref doesn't seem to work here.)
2013-06-25 23:15:42 -05:00
tonysyu c4299c4637 Fix execution in IPython with qt backend.
New QApplication and event-loop implementation stolen shamelessly from
IPython. Strangely, running the viewer at the IPython prompt will
open an orphan Matplotlib figure window, but running a script using
`%run` does not.

Only tested on PySide (not PyQt4).
2013-06-25 14:37:01 -05:00
Tony S Yu 0a8ff1b364 Fix docstring for CollectionViewer slider. 2013-06-09 05:38:08 -05: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 a6293fd84b Add example of connecting plugins to CollectionViewer 2013-06-08 19:11:33 -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 484e5693b2 Add attributes to Mock object to fix Travis build 2013-05-31 08:15:26 -05:00
Tony S Yu 87afe3e175 Accidental deletion 2013-05-31 00:14:25 -05:00
Tony S Yu 9393eac1b0 Third attempt at getting Travis to build 2013-05-31 00:06:59 -05:00
Tony S Yu 86c2c1a37c Second attempt to get Travis to pass 2013-05-30 23:38:26 -05:00
Tony S Yu 3e3ead7d9e Add mock pyqtSignal to try to get Travis to build 2013-05-30 23:14:30 -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 16b6411059 Display title in docked plugins 2013-05-30 22:25:02 -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 177a1fdb39 Add example of connected viewers/plugins 2013-05-28 23:52:48 -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 e7ca4b6138 Fix parameter name in docstring 2013-05-28 23:51:53 -05:00
Tony S Yu 124e38751c Fix RequiredAttrs definition.
The example in python's descriptor tutorial creates a singleton so multiple,
instances share the same attribute. This update fixes the issue based on [1].

[1] http://stackoverflow.com/questions/8718052/where-does-a-python-descriptors-state-go
2013-05-28 23:34:52 -05:00
Tony S Yu d183cce16c Remove alignment kwarg (left out from previous commit). 2013-05-26 18:28:12 -05:00
Tony S Yu a49502a7b1 Remove alignment kwarg for compatibility with older PyQt4 2013-05-26 14:05:02 -05:00
Tony S Yu 3baa7fe8f3 Fix file open dialog for PySide 2013-05-19 22:58:04 -05:00
tonysyu c7fa6206cf Add PySide compatibility for save dialogs 2013-05-17 17:12:52 -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
Josh Warner 210a25053a Merge pull request #545 from odebeir/master
fix: docstring in rank/percentile and remove unused p1
2013-05-11 14:12:39 -07:00
Olivier Debeir 809e285250 fix:remove unused parameters in rank.percentile 2013-05-10 16:23:10 +02:00
Olivier Debeir cdca3f9d40 remove long lines 2013-05-10 16:04:15 +02:00
Olivier Debeir 59b37afea8 typo 2013-05-10 16:02:27 +02:00
Olivier Debeir e23c4f3841 fix:doctring rank/percentile 2013-05-10 09:10:26 +02:00
Stefan van der Walt 2eae93124a Merge pull request #440 from ahojnnes/fitting
ENH: Line, Circle, Ellipse total least squares fitting and RANSAC algorithm.
2013-05-07 04:34:54 -07:00
Johannes Schönberger 219d621725 Set random seed to avoid random test failures 2013-05-06 18:34:34 +02:00
Johannes Schönberger 13bfd603f3 Add simple RANSAC example script 2013-05-06 18:25:15 +02:00
Johannes Schönberger 54e3757cb0 Wrap lines 2013-05-06 18:08:46 +02:00
Johannes Schönberger 01124f5bcc Use boolean mask for inlier return value of RANSAC 2013-05-06 18:08:21 +02:00
Tony S Yu 4d7905951b Merge pull request #536 from ahojnnes/edge-weights
Some tweaks for edges.py
2013-05-06 08:17:00 -07:00
Johannes Schönberger 785e602aba Fix last remaining PEP8 errors 2013-05-06 15:32:33 +02:00
Johannes Schönberger cec8516f69 Readd Cellprofiler license notes to edges.py 2013-05-06 12:11:09 +02:00
Johannes Schönberger 231596b351 Add test cases for residuals 2013-05-06 12:08:12 +02:00
Johannes Schönberger 434eb48620 Add test case for underdetermined LineModel estimation 2013-05-06 11:51:20 +02:00
Johannes Schönberger f18eef6bc0 Add title of wikipedia reference 2013-05-06 11:43:52 +02:00
Johannes Schönberger 63577f275c Update doc string of ransac with new validation functions 2013-05-06 11:41:08 +02:00
Johannes Schönberger 252c889427 Add missing double quotes for equations and code 2013-05-06 11:38:46 +02:00
Johannes Schönberger 9e7fb07d67 Add missing double colons for equations 2013-05-06 11:36:38 +02:00
Johannes Schönberger 5656feb61b Use double quotes for code in doc string 2013-05-06 07:10:05 +02:00
Johannes Schönberger d6c49ea6b8 Add comment to explain commented out code 2013-05-06 07:08:50 +02:00
Johannes Schönberger ef7b82e116 Clarify SSD description 2013-05-06 07:04:17 +02:00