Juan Nunez-Iglesias
ea1566fffb
Fix image dimension sanitizing at function start
...
`np.atleast_3d` will add a singleton dimension at the end of an array
if needed. This is not the correct thing to do if `multichannel=False`
based on the subsequent lines. If the input image was 2D with shape
`(40, 50)` and `multichannel=False`, then `np.atleast_3d` gives it
shape `(40, 50, 1)`, and then, because `multichannel=False`, the rest
of the code gives it shape `(40, 50, 1, 1)`. This results in the final
returned array having shape `(40, 50, 1)` instead of the desired
`(40, 50)`.
This commit fixes that and updates the test to detect this failure.
2013-09-16 16:02:24 +10:00
Johannes Schönberger
05aaeef5ac
Change default value of sigma
2013-09-14 10:08:07 +02:00
Johannes Schönberger
22ca0ae457
Fix indentation
2013-09-03 20:31:24 +02:00
Johannes Schönberger
8137c41e22
Add optional description to parameters
2013-09-03 10:48:53 +02:00
Johannes Schönberger
770e28d2bb
Rename clusters to segments
2013-09-03 10:47:49 +02:00
Johannes Schönberger
d9e64b43e6
Make image C-contiguous
2013-09-03 08:40:18 +02:00
Johannes Schönberger
80ed875147
Add missing rgb2lab import
2013-09-01 17:12:10 +02:00
Johannes Schönberger
a6d1b10e25
Use absolute imports
2013-09-01 16:53:05 +02:00
Johannes Schönberger
eeddd9e35f
Revert multichannel magic and improve parameter docs
2013-09-01 16:46:01 +02:00
Johannes Schönberger
e5eea8e135
Improve documentation of sigma
2013-09-01 16:46:01 +02:00
Johannes Schönberger
f5cfbcfe97
Reorder variable declarations
2013-09-01 16:46:01 +02:00
Johannes Schönberger
bd388383a0
Fix bug in window extent determination
2013-09-01 16:46:01 +02:00
Johannes Schönberger
bc7efb01e4
Fix dtype bug
2013-09-01 16:46:01 +02:00
Johannes Schönberger
84579a6c2c
Remove legacy comment
2013-09-01 16:46:01 +02:00
Johannes Schönberger
471b293a9e
Remove unnecessary parameters and update doc string
2013-09-01 16:46:00 +02:00
Johannes Schönberger
6b5556b279
Reduce memory footprint
2013-09-01 16:46:00 +02:00
Johannes Schönberger
fd729a4e30
Improve SLIC
2013-09-01 16:46:00 +02:00
Juan Nunez-Iglesias
55e42309b8
Merge pull request #712 from emmanuelle/gaussian_filter
...
Add a wrapper around `scipy.ndimage.gaussian_filter` with useful default behaviors.
2013-08-30 10:27:41 -07:00
Emmanuelle Gouillart
9795d3fad4
Gaussian filter function: changed the default value of multichannel
...
Now we try to guess automatically whether the image is grayscale or RGB
2013-08-29 23:14:30 +02:00
Emmanuelle Gouillart
b4242ca3fb
[BUG] iterable sigma and multichannel
...
+ docstring improvement
2013-08-25 16:41:37 +02:00
Emmanuelle Gouillart
15b4a4d979
DOC: corrected description of multichannel parameter
2013-08-25 15:04:22 +02:00
Emmanuelle Gouillart
082586c10c
Added a wrapper around ndimage's Gaussian filter
...
This version of the Gaussian filter
* uses 'nearest' as the default boundary mode. This can be discussed,
but I had the impression that for images this is the most relevant
mode ('extending' boundaries)
* has a `multichannel` keyword, so that each color channel can be
filtered separately. For now no attempt is made at guessing whether
the image has color channels or not.
2013-08-25 14:50:55 +02:00
Emmanuelle Gouillart
1a4ea5c970
Merge pull request #710 from jni/pyamg-depends
...
Add pyamg to the optional dependencies
2013-08-25 04:56:41 -07:00
Emmanuelle Gouillart
4d80670925
Merge pull request #672 from jni/chull-fix
...
Convex hull fix
2013-08-25 04:48:20 -07:00
Juan Nunez-Iglesias
13e83be692
Update PyAMG URL (no longer in Google Code)
2013-08-25 12:44:19 +02:00
Juan Nunez-Iglesias
072eb7640a
Add docstring note explaining coord use case
2013-08-25 11:06:31 +02:00
Juan Nunez-Iglesias
cb28bba6ee
Add note describing array copy if discontiguous
2013-08-25 11:04:50 +02:00
Stefan van der Walt
7df2ef1e85
Add tests for image tags.
2013-08-21 17:50:21 +02:00
Stefan van der Walt
2b0f037422
Remove Image wrapper from io. Improve tags handling.
2013-08-21 17:46:38 +02:00
Johannes Schönberger
9a5a767ce8
Merge pull request #700 from stefanv/remove_logger
...
Remove logger in favor of warnings.
2013-08-21 02:45:24 -07:00
Stefan van der Walt
4215ad11a1
Remove leftover debug statement.
2013-08-21 11:09:02 +02:00
Stefan van der Walt
4b39779382
Merge pull request #697 from ahojnnes/memoryviews
...
Memoryview refactoring: Part 2.
2013-08-20 23:56:25 -07:00
Johannes Schönberger
05aeb7c7fe
Convert to int for Py_ssize_t
2013-08-21 07:48:39 +02:00
Stefan van der Walt
ca768b0b95
Remove unnecessary import of Warning.
2013-08-21 00:59:37 +02:00
Stefan van der Walt
d9836a6add
Remove logger in favor of warnings.
2013-08-21 00:10:33 +02:00
Matt Terry
7e7fb2fc85
comma usage
2013-08-19 11:26:07 -07:00
Matt Terry
600305eb85
doc quickfix
2013-08-19 11:04:29 -07:00
Johannes Schönberger
5f82c206b4
Fix bugs in usage of typed memoryviews
2013-08-19 19:31:40 +02:00
Johannes Schönberger
c8f619e384
Use typed memoryviews in transform package
2013-08-19 19:22:28 +02:00
Johannes Schönberger
b8b2a63884
Use typed memoryviews in morphology package
2013-08-19 19:14:56 +02:00
Johannes Schönberger
8524203f13
Use typed memoryviews in measure package
2013-08-19 18:42:08 +02:00
Johannes Schönberger
93e83b347f
Improve tests of graph package
2013-08-19 18:37:30 +02:00
Juan Nunez-Iglesias
b6f72c606d
Merge pull request #665 from mrterry/deltae
...
Add deltaE functions and lab2lch color conversion utils
2013-08-18 00:32:07 -07:00
Stefan van der Walt
561d20a9bd
Merge pull request #695 from ahojnnes/memoryviews
...
Use typed memoryviews for draw, feature, filter.
2013-08-17 15:40:40 -07:00
Johannes Schönberger
a8f0d46ab2
Fix missing conversion of typed memoryview to numpy array
2013-08-17 23:17:05 +02:00
Johannes Schönberger
5b38bdac59
Fix missing conversion of typed memoryview to numpy array
2013-08-17 23:07:00 +02:00
Johannes Schönberger
e78f9ad39d
Fix reference of corner_foerstner
2013-08-17 22:56:11 +02:00
Johannes Schönberger
f76ba9dff3
Use typed memoryviews in filter package
2013-08-17 22:47:03 +02:00
Johannes Schönberger
3172f508d6
Use typed memoryviews in feature package
2013-08-17 22:35:13 +02:00
Johannes Schönberger
cd9f3bd92e
Use typed memoryviews in draw package
2013-08-17 22:07:45 +02:00