Commit Graph

5928 Commits

Author SHA1 Message Date
Stefan van der Walt 53b1860a72 Merge pull request #287 from ahojnnes/morph
ENH: Improve performance of erosion and dilation.
2012-09-02 04:36:19 -07:00
Johannes Schönberger 2c37c70ca3 Fix support for predefined output array 2012-09-02 13:35:12 +02:00
Johannes Schönberger 373b3293ee Use numpy testing functions 2012-09-02 13:28:07 +02:00
Johannes Schönberger de47332bd2 Add fast morphological operations for binary images 2012-09-02 13:25:52 +02:00
Johannes Schönberger 2842515dc3 Improve doc string layout 2012-09-02 10:34:09 +02:00
Johannes Schönberger 224fcb5d01 Convert selem to uint8 2012-09-02 09:58:02 +02: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 7d858a8ba9 ENH: Add CollectionViewer 2012-09-01 15:31:34 -04:00
Stefan van der Walt f500ed0b8f Merge pull request #288 from tonysyu/bento-update
PKG: Bento update.
2012-09-01 08:40:49 -07:00
Tony S Yu ed05b88740 BUG: Update bento.info to match setup.py files 2012-09-01 10:52:15 -04:00
Tony S Yu 2314cfd8d6 ENH: Add script to check that bento.info is up-to-date. 2012-09-01 10:48:07 -04:00
Tony S Yu 6facfd27a1 BUG: Bento version must end with number 2012-09-01 10:48:07 -04:00
Johannes Schönberger a5fe574bd9 Remove unused imports and add missing types 2012-09-01 14:57:56 +02:00
Johannes Schönberger b05c062d24 Refactor erosion and dilation for better performance 2012-09-01 14:54:17 +02:00
Johannes Schönberger 74797d6205 Fix decision whether to use warping or fast warping 2012-09-01 09:17:16 +02:00
Johannes Schönberger 06d9f7110f Revert to non parallelized execution 2012-09-01 09:09:25 +02:00
Stefan van der Walt c8c1d5c7e7 Merge pull request #275 from ahojnnes/warps
ENH: Refactor image warps.
2012-08-31 18:12:08 -07:00
Johannes Schönberger b2e4fd6f32 Add parallel execution support 2012-08-31 23:46:23 +02:00
Emmanuelle Gouillart 06092023b8 Merge pull request #285 from ahojnnes/label-example
Add example script for image labelling
2012-08-31 14:01:00 -07:00
Johannes Schönberger f360316f17 Explicitly define colormap 2012-08-31 22:55:24 +02:00
Emmanuelle Gouillart e3c68e3bbc Merge pull request #284 from ahojnnes/regionprops-coords
Add new Coordinates property to regionprops
2012-08-31 13:53:26 -07:00
Johannes Schönberger c9291718f9 Update description with more detailed explanation of applied steps 2012-08-31 22:30:09 +02:00
Johannes Schönberger 6e9d6e2857 Improve visualization of labelling 2012-08-31 22:25:10 +02:00
JDWarner e8ddcefae3 PEP8 compliance, removed scaling, different data parsing.
This commit represents all recommended changes since the last
commit, notably:

* PEP8 compliance (in new sections; a few old ones still
  noncompliant w/indentations)

* Moved `depth` kwarg to end of list and in docstring.
  Clarified `depth` docstring, and added section in Notes
  further explaining this parameter.

* Added section in Notes warning that for multichannel inputs,
  all channels are combined during scaling.  The user must
  separately normalize each channel prior to calling
  random_walker()

* New method for parsing data, allowing more elegant gradient
  calculation code. Probably also more extensible. The 2D
  multispectral case forced this change.

* New test: `test_multispectral_2d()`
2012-08-31 14:14:46 -05:00
Emmanuelle Gouillart 873aa6a5dc Merge pull request #281 from mkcor/harris_threshold
Harris threshold
2012-08-31 11:56:02 -07:00
Johannes Schönberger da3f2b5f4d Add example script for image labelling 2012-08-30 22:00:43 +02:00
Johannes Schönberger cdff128a43 Add new Coordinates property to regionprops 2012-08-30 21:38:33 +02:00
Emmanuelle Gouillart 38c3eb54ca Merge pull request #248 from ahojnnes/clear-border
Add function to clear border in binary images
2012-08-30 11:24:37 -07:00
Johannes Schönberger b2036aee5c Add image resize function 2012-08-30 18:41:00 +02:00
Johannes Schönberger 15cc7f1779 Add biquadratic interpolation 2012-08-30 18:14:42 +02:00
Johannes Schönberger 146d5a3f5b Remove duplicate subtraction 2012-08-30 17:13:30 +02:00
Johannes Schönberger 4cd1f8798b Add nearest mode for positions outside image 2012-08-30 12:08:21 +02:00
Johannes Schönberger 4dfdc7f74f Update doc string of _warp_fast for bicubic interpolation 2012-08-30 11:57:05 +02:00
Johannes Schönberger cb870fd069 Fix example of estimate_transform 2012-08-30 09:53:41 +02:00
Johannes Schönberger 1592e47e66 Apply clipping also to fast cython implementation 2012-08-30 09:47:00 +02:00
Johannes Schönberger dd45f15ced Use explicit keyword for dtype 2012-08-30 09:40:54 +02:00
Johannes Schönberger bbeaec6b3f Add examples to doc string of clear_border 2012-08-30 09:36:28 +02:00
Johannes Schönberger abe5dc3cec Add (bi-)cubic interpolation 2012-08-30 09:28:03 +02:00
Johannes Schönberger 7a0e0b8f33 Simplify mode determination 2012-08-30 07:37:07 +02:00
Johannes Schönberger 9b44e24f8e Use function pointer for different interpolation methods 2012-08-30 07:33:39 +02:00
JDWarner 99238c44a5 sqrt(gradients) line removed 2012-08-29 17:07:13 -05:00
JDWarner 61320957eb Changes based on PR review recommendations: input format, scaling, and bugfix.
In this new version, all instances of 'spectrum' have been replaced with 'channel'.  The documentation also reflects this change, and the new multichannel kwarg used to indicate multichannel input is named appropriately.

New boolean multichannel kwarg added, which controls if the input has multiple channels or not.  Input 'data' is now array_like for both gray-level and multichannel.  This kwarg is needed mainly because a 3-D array could be either 3 spatial dimensions or a set of different 2-D channels.

New scaling kwarg added (may be removed in future), controlling if data scaling is applied to ALL channels or each channel individually, if multichannel=True. No effect for gray-level data.

Removed np.sqrt(gradients) in _compute_weights_3d(), which was a bug. Tests now pass consistently.

New method for maintaining shape from input to output, where dims = data.shape prior to np.atleast_3d().  A theoretical (70,100,1) array passed should now result in a (70,100,1) shaped output, for example.

Updated and fixed multispectral test script to work with new version.  TODO: Additional test(s) likely needed to cover code branches from new kwargs.
2012-08-29 16:33:56 -05:00
JDWarner 682d0535cd Added multispectral random walker test.
Since the multispectral path is equivalent except for gradient calcs,
only one test case is needed.  This test is modeled on the 3-D
non-multispectral version.  If deemed necessary, adding a 2-D case
would be simple.
2012-08-27 13:41:41 -05:00
Andreas Wuerl 42ae537a69 convert image to float before performing tv_denoise operation now
removed keep_type argument from tv_denoise which becomes obsolete with the previos change
adapted tests
2012-08-27 19:44:30 +02:00
Johannes Schönberger 1177cf1393 Move clear_border to segmentation package 2012-08-27 18:56:05 +02:00
Johannes Schönberger 156b484bc2 Refactor clear_border for better performance 2012-08-27 18:55:05 +02:00
Johannes Schönberger bb51f62f93 Add function to clear border in binary images 2012-08-27 18:55:04 +02:00
JDWarner feca48cc49 Added return_full_prob kwarg to solve call if pyamg not present. 2012-08-27 11:48:32 -05:00
JDWarner 8955dad32e Multispectral modifications applied to random walker. 2012-08-27 11:42:30 -05:00
Marianne Corvellec f8e0dcfaca Fixed layout (bracket alignment). 2012-08-27 18:18:47 +02:00