Commit Graph

148 Commits

Author SHA1 Message Date
François Boulogne 92b9ebc0e9 MAINT: remove 2 weird lines 2014-03-14 20:28:30 -04:00
Johannes Schönberger ef63523ab0 Move denoise functions to restoration submodule 2014-03-13 19:39:54 -04:00
Johannes Schönberger 107f1d607c Move phase unwrapping algorithms to restoration submodule 2014-03-13 18:50:39 -04:00
Johannes Schönberger bfd693cd43 Merge pull request #908 from cgohlke/patch-2
Define M_PI (not part of C89)
2014-03-11 07:14:00 -04:00
jaimefrio e6fc72011f BUG: wrong search for pivot in quicker_sort
This PR corrects an error in the search for the existence of a distinct
pivot for sorting in the `quicker_sort` routines. This could lead to
`quicker_sort` wrongly believing that all items in a subarray are equal and
hence require no sorting.

While this doesn't explain #835 and #902, it may be related.
2014-03-11 00:48:10 -07:00
cgohlke 44f26ce9ee Define M_PI (not part of C89) 2014-03-10 20:57:33 -07:00
cgohlke a3067c572a Define M_PI (not part of C89) 2014-03-10 20:56:27 -07:00
Juan Nunez-Iglesias d652a9ce9a Merge pull request #897 from tonysyu/named-rescale_intensity-params
Add string inputs for range parameters of `rescale_intensity`

This supports common ranges for scientific cameras: 10, 12, and 14-bit uint.
2014-02-24 18:04:06 +11:00
Tony S Yu 28d6787a87 Add tests for uint12 and uint14 limits 2014-02-23 23:13:13 -06:00
Johannes Schönberger 181d030952 Remove six copy in _shared as it is a required dependency 2014-02-23 20:42:40 -05:00
Tony S Yu 7b104fdf14 Add string inputs for range parameters of rescale_intensity 2014-02-23 14:36:31 -06:00
Stefan van der Walt cff007827c Merge pull request #825 from ahojnnes/coverage
MRG: Increase test coverage
2013-12-03 00:29:15 -08:00
Johannes Schönberger 5b3c21a4d4 Add test for neggative gamma parameter 2013-11-22 12:33:21 +01:00
Johannes Schönberger 0a2ed35253 Add test for negative input image 2013-11-22 12:30:49 +01:00
Jostein Bø Fløystad ccbd3bfced unwrap: Do not include debug symbols in extension builds. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad 37b5a946c8 unwrap tests: PEP8 fixes. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad 8ad3d1df17 unwrap: Simplify code after completing float->double. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad 593a7d63ce unwrap: Change 1D unwrapper from float to double. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad cd5cc84aa9 unwrap: Change 3D wrapper code from float to double. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad d0ccbe71c1 unwrap: Change 3D C code from float to double. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad 9091d2759a unwrap: Change 2D wrapper code from float to double. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad 9bacb0d54a unwrap: Use UNIX line endings. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad ebf457cea8 unwrap: Convert 2D C code from float to double. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad a6e7bd4a00 unwrap: Use constants from math.h in C code. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad f53a4e0764 unwrap: Add naive 1D unwrapper.
The naive 1D unwrapper does not support masked arrays because the
1D unwrapping problem has an infite number of solutions when faced with
missing data. Wrap around is not implemented because 1D phase unwrapping
must start at a certain pixel, and there will always be a risk of a
discontinuity there, wrap around or not.
2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad f87fadf0f0 unwrap: Rename C files. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad b2ac1a5872 unwrap: Add docstring example. 2013-11-22 10:45:07 +01:00
Jostein Bø Fløystad 27c13a1193 unwrap: Warn about singleton dimensions in 3D arrays. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 781ead2c9f unwrap: Rename function unwrap() -> unwrap_phase(). 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 4cfec880b6 unwrap: Small style-like fixes.
Based on comments by ahojnnes.
2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad e0b7fe32a1 unwrap: PEP8 fixes. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 9e50686c8f unwrap: Add test for unwrapping masked images. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 8a93677db0 unwrap: Delete "example" from the test file. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad c0d0984049 unwrap: Make sure test data wraps along all dimensions. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 619da811d8 unwrap: Reduce code duplication.
Use the yield functionality in nose to minimize setup.
2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad b0c21ea972 unwrap: Reduce duplication in tests. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 43d110627b unwrap: PEP8 fixes. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad b9f119a428 unwrap: Python 3 compatibility. 2013-11-22 10:45:06 +01:00
Jostein Bø Fløystad 9644ed5655 unwrap: rename variables in cython extensions 2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad 5022cfb699 unwrap: PEP8 fixes for cython extensions. 2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad 676ba5a07e unwrap: rename cython functions. 2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad e8fa4998ad unwrap: Whitespace fixes and comment removal. 2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad 12268ff555 unwrap: Refactor and fix wrap around functionality. 2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad 6dbe6965e6 unwrap: Test wrap_around functionality.
This test is currently failing. Most likely, the axes are swapped.
2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad 0e8be31ba6 unwrap: Simplify handling of masked arrays. 2013-11-22 10:42:29 +01:00
Jostein Bø Fløystad ac330662b9 unwrap: Remove unused imports 2013-11-22 10:42:28 +01:00
Jostein Bø Fløystad 54865ecb23 unwrap: reformat references 2013-11-22 10:42:28 +01:00
Jostein Bø Fløystad ebef821a70 unwrap: Add citation for 3D. 2013-11-22 10:42:28 +01:00
Jostein Bø Fløystad 0e56ee9577 unwrap: Remove plotting code. 2013-11-22 10:42:28 +01:00
Jostein Bø Fløystad 8a81624ba8 unwrap: Format references correctly. 2013-11-22 10:42:28 +01:00