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
Johannes Schönberger
99e4264e15
Add missing return type to matrix transform function
2012-08-27 18:15:39 +02:00
Marianne
7bbb0aaa63
Fixed deprecated threshold.
2012-08-27 18:07:13 +02:00
Johannes Schönberger
501c401dda
Move image transform functions to _geometric file
2012-08-27 18:05:18 +02:00
Emmanuelle Gouillart
6b86d4beee
DOC: docstring of route_through_array
2012-08-27 17:47:34 +02:00
Emmanuelle Gouillart
d5710c82ab
Example in route_through_array
2012-08-27 17:04:25 +02:00
Emmanuelle Gouillart
06065f640a
PEP 8: _quickshift module
2012-08-27 16:23:11 +02:00
Andreas Wuerl
bcf4594170
use existing functionality for fix
2012-08-27 15:18:03 +02:00
Johannes Schönberger
9a46111e76
Apply numpy doc style for deprecation warning
2012-08-27 13:35:36 +02:00
Johannes Schönberger
f4a3b44355
Rename parameter of image rotation
2012-08-27 13:31:34 +02:00
Johannes Schönberger
c0538c03e9
Fix translation bug in image rotate
2012-08-27 13:31:34 +02:00
Johannes Schönberger
00e1d14294
Fix rotate translation bug
2012-08-27 13:31:34 +02:00
Johannes Schönberger
6ec4c21cf7
Fix import of rotate function
2012-08-27 13:31:33 +02:00
Johannes Schönberger
6f4c2ad268
Add function for image rotation
2012-08-27 13:31:33 +02:00
Johannes Schönberger
a0649791ae
Fix doc string example of warp_coords
2012-08-27 13:31:33 +02:00
Johannes Schönberger
772a1cb4b0
Update radon transform with new warp function
2012-08-27 13:31:33 +02:00
Johannes Schönberger
cfea01b9ff
Fix import error in geometric test cases
2012-08-27 13:31:33 +02:00
Johannes Schönberger
a6532a8dae
Refactor image warps
...
* Fix cval bug in interpolation which was ignored
* Remove fast_homography as standalone function and automatically include
functionality in warp
* Fix bug in warp_coords for graylevel images
* move warp functions to warp file
2012-08-27 13:31:33 +02:00
Johannes Schönberger
77f1e0ba47
Add deprecation warning in doc string to homography
2012-08-27 13:30:12 +02:00
Emmanuelle Gouillart
0293403b68
DOC: example in slic segmentation docstring
2012-08-27 12:57:24 +02:00
Andreas Wuerl
14d0923959
fixed data of tv_denoise result images with float datatype to be in default range [0.0:1.0]
2012-08-27 12:41:29 +02:00
Emmanuelle Gouillart
bc1582ced2
acronym --> full name of algorithm in example
2012-08-27 12:18:14 +02:00
Stefan van der Walt
571151958f
Merge pull request #277 from emmanuelle/fix_tests_draw
...
BUG: Fixed two tests that were failing because of draw imports.
2012-08-27 03:16:40 -07:00
Emmanuelle Gouillart
0644026250
Fixed two tests that were failing because of draw imports
2012-08-27 12:04:30 +02:00
Stefan van der Walt
8d54380dc0
Merge pull request #259 from emmanuelle/fix_random_walker
...
ENH: Fix random walker.
2012-08-27 02:40:56 -07:00
Stefan van der Walt
b0d3c053f9
Merge pull request #272 from ahojnnes/template-contiguous
...
BUG: Fix C-contiguous array bug in match template.
2012-08-27 02:39:24 -07:00
Emmanuelle Gouillart
9d29d5df78
PEP8: indentation in random_walker_segmentation
2012-08-27 11:26:11 +02:00
Stefan van der Walt
6de72cc03f
Merge pull request #276 from tonysyu/reconstruction-fix
...
BUG: Fix division error for Python 3 in reconstruction
2012-08-26 14:16:04 -07:00