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
Tony S Yu
b14514e018
BUG: Fix nosetest and autodoc errors when PyQt4 not available
...
nose and autodoc imports the viewer modules so all PyQt4 imports must be wrapped in a try-except block. In addition, any classes derived from PyQt4 must be proxied since the class definition are run on import. This is really hacky.
2012-08-25 12:06:03 -04:00
Tony S Yu
2c84a2135f
Remove custom dtype range
...
Bool support was added in gh-#260
2012-08-24 22:36:20 -04:00
Tony S Yu
398b320477
BUG: reset image when plugin is closed.
2012-08-03 22:21:59 -04:00
Tony S Yu
4ab583ba31
ENH: Add SaveButtons widget.
2012-08-03 21:50:28 -04:00
Tony S Yu
54af4176dd
ENH: Add RequiredAttr to raise warnings when attr not set.
2012-08-03 20:45:01 -04:00
Tony S Yu
b6045a8d5f
BUG: Fix behavior when initial overlay limits are bad.
...
Intensity limits are calculated by the initial input image. If this image has, for example, all black pixels, then subsequent overlays will remain all black because of the initialized limits. Set limits based on data type to fix this issue.
2012-07-28 00:13:33 -04:00
Tony S Yu
7615a856c5
Remove lineprofile temporarily (saved in a branch)
2012-07-27 22:32:42 -04:00
Tony S Yu
4620ee734e
ENH: Create new Slider with editbox.
...
Also, make the behavior more consistent between updating plugin and widget parameters.
2012-07-27 22:21:26 -04:00
Tony S Yu
539b12dc2c
STY: Refactor MatplotlibCanvas from ImageCanvas and PlotCanvas.
2012-07-27 21:57:46 -04:00
Tony S Yu
9285898d39
DOC: Add class docstring
2012-07-25 00:41:54 -04:00
Tony S Yu
f261e76ef0
DOC: cleanup docstring and reuse parameter defined by parent class
2012-07-25 00:40:36 -04:00
Tony S Yu
49bdc3ae6f
DOC: clean up docstring for PlotPlugin
2012-07-25 00:36:51 -04:00
Tony S Yu
d72baa484f
STY: reorder methods for clarity.
2012-07-25 00:32:26 -04:00
Tony S Yu
260a336eb9
ENH: allow color to be set by name
2012-07-25 00:31:08 -04:00
Tony S Yu
51e61b3e46
DOC: Improve docstrings for Plugin class.
2012-07-25 00:21:56 -04:00
Tony S Yu
c2d2919bae
BUG: Don't override image_filter method if defined by subclass
2012-07-24 01:31:47 -04:00
Tony S Yu
c1a859acae
ENH: Change inplace-add to normal add to support alternate syntax
...
Widgets can be added to Plugins inline, and Plugins can be added inline to Viewers.
2012-07-24 00:58:35 -04:00
Tony S Yu
4b3f6d6c30
BUG: in-place add should return object
...
Actually, I didn't mean to add `__iadd__` a couple of commits ago, so this was supposed to be an enhancement that allows you to access `add_widget` using in place adding.
2012-07-24 00:51:31 -04:00
Tony S Yu
1ae662f712
ENH: filter image when Plugin is attached to ImageViewer
2012-07-24 00:35:26 -04:00
Tony S Yu
0e8f444fbb
ENH: Display overlay by default
2012-07-24 00:28:37 -04:00
Tony S Yu
36b0fbd84e
Rename (dis)connect_event to (dis)connect_image_events.
...
This clarifies action since these events are on the image viewer, not the plugin.
2012-07-23 01:22:05 -04:00
Tony S Yu
92ca837471
ENH: Let Qt handle most of the window sizing.
2012-07-23 01:13:03 -04:00
Tony S Yu
977d17134d
Change image_viewer to Plugin property.
...
Raise an error when using Plugin.image_viewer before it is set. This error prevents other, more obscure, errors from getting raised.
2012-07-23 00:45:11 -04:00
Tony S Yu
df18d40290
Minor cleanup.
2012-07-23 00:18:32 -04:00
Tony S Yu
f47312a3d1
API Change: Attach ImageViewer to Plugin after init.
...
Plugin is now added to the viewer using an inplace add on the viewer instead of on initialization of the plugin. This change means that operations requiring the viewer must be delayed until attach operation.
2012-07-23 00:12:21 -04:00
Tony S Yu
86b428952d
ENH: Allow Plugin.add_widget to hook into Plugin attributes.
...
The `ptype` parameter of widget can now be set to 'plugin'. When this is the case, the plugin will set a plugin attribute whenever the widget is updated.
As an example, this commit adds a ComboBox widget which is hooked into the overlay color of the OverlayPlugin.
2012-07-22 13:24:41 -04:00