Commit Graph

369 Commits

Author SHA1 Message Date
Jostein Bø Fløystad 4d307f5315 iradon_sart: Fix docstring typo. 2013-07-09 11:44:28 +02:00
Jostein Bø Fløystad 1cc42bd943 iradon_sart: Reformat references. 2013-07-09 11:44:03 +02:00
Jostein Bø Fløystad 18a06a0add iradon_sart: Format docs correctly. 2013-07-08 14:50:06 +02:00
Jostein Bø Fløystad bea50aa608 iradon: use util.pad for sinogram padding. 2013-07-06 20:55:54 +02:00
Jostein Bø Fløystad b3746b9090 iradon: Cleanup by locating related code in one place. 2013-07-06 20:55:54 +02:00
Jostein Bø Fløystad 643a1bc1f5 iradon: Add test for cubic interpolation. 2013-07-06 20:55:53 +02:00
Jostein Bø Fløystad b90ba783ef iradon: Only allow interpolation methods working well.
Of the interpolation methods provided by scipy.interpolate.interp1d,
only cubic has been found to work well with the tests in skimage (other
methods are either identical to linear or nearest, or they produce bad
reconstructions).
2013-07-06 20:55:53 +02:00
Jostein Bø Fløystad 2be327815e radon: Use numpy.interp/scipy.interpolate.
Scipy supports all interpolation kinds (nearest, linear) we need, while
numpy supports only linear interpolation. The numpy interpolation is
substantially faster, so this is used even though it complicates the
code slightly.
2013-07-06 20:55:53 +02:00
Jostein Bø Fløystad 5955e4e612 iradon: Reduce code duplication. 2013-07-06 20:55:53 +02:00
Jostein Bø Fløystad ac460a9777 iradon: Use util.pad for array padding.
This depends on util.pad accepting 0s in pad_width, which has a proposed
solution in gh-634.
2013-07-06 20:55:53 +02:00
Jostein Bø Fløystad 237fb989b0 radon: Use util.pad for array padding. 2013-07-06 20:55:53 +02:00
Josh Warner 6edd707a1b Merge pull request #637 from sciunto/minorfix
STYLE : PEP8 + import fix in hough_transform tests
2013-07-06 11:06:48 -07:00
François Boulogne cf3efba3c1 use previous import 2013-07-06 16:12:09 +02:00
François Boulogne 2dfeab83df PEP8 + import 2013-07-06 13:49:01 +02:00
Jostein Bø Fløystad 3cdfeccc7a iradon_sart: flip signs to reflect changes to radon.
The changes to radon were introduced in gh-596.
2013-07-05 13:14:39 +02:00
Jostein Bø Fløystad af47941435 iradon_sart: fix comment spelling. 2013-07-05 13:14:39 +02:00
Jostein Bø Fløystad f2790d658c iradon_sart: redefine projection center.
This reflects the bugfixes related to issue gh-592 implemented in
gh-596.
2013-07-05 13:14:39 +02:00
Jostein Bø Fløystad 06857d3b92 Radon tests: Check the correct error metric. 2013-07-05 13:14:39 +02:00
Jostein Bø Fløystad a4870242b6 iradon_sart: Test clip functionality and add a test for it. 2013-07-05 13:14:39 +02:00
Jostein Bø Fløystad dde4288865 test_radon_transform: Style fixes. 2013-07-05 13:14:39 +02:00
Jostein Bø Fløystad 266b202226 iradon_sart: Style fixes. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 116e1dd571 iradon_sart: Also test accuracy with a missing wedge. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad ace07a0b18 iradon_sart: Add test for order_angles_golden_ratio. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 2082b57e41 iradon_sart: Order angles using a golden ratio approach. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad dcd31c1882 radon_transform: Declare encoding. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 8d4b1e6710 iradon_sart: Add Kaczmarz reference and reformat citations. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 89f227c5ff iradon_sart: Remove needless memoryview/ndarray conversion.
image_update is not manipulated in sart_projection_update and the
conversion to memoryview will happen when it is passed to the
subroutines anyway.
2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 5baaf78564 iradon_sart: Reduce code duplication in interpolation. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 91aeb658dd iradon_sart's cython exts: Use typed memoryviews, not ndarrays. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad c977c5974d iradon_sart: Improve argument checking. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 59bdb24c92 iradon_sart: Clean up cython code to minimize python calls. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 1b620a0a12 Tests for iradon_sart: Robust path handling. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 94eba1c911 iradon_sart: Clarify how constants are chosen. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 496902145f iradon_sart: Add wikipedia reference to Kaczmarz method. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 372f0127f9 transform.iradon_sart: Clean up code for ordering projections. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad b474804654 Fix docstrings for transform.iradon_sart with subroutines. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad d5f323eec0 Tests for the projection_shifts functionality of iradon_sart. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 1e1dd180d2 Implement projection shifts. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 8e6468eef5 Add tests for transform.iradon_sart. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad d4b33059cb Make iradon_sart visible in the transform package. 2013-07-05 13:14:38 +02:00
Jostein Bø Fløystad 9484afeed1 Add SART tomography reconstruction to radon_transform. 2013-07-05 13:14:38 +02:00
Johannes Schönberger 24c0c40977 Merge pull request #511 from ankit-maverick/resample
Resampling of nD arrays
2013-07-04 22:47:09 -07:00
Ankit Agrawal 971e7beec5 Correcting typos 2013-07-05 11:10:12 +08:00
Ankit Agrawal 8ac4427d9b Expanding the documentation in transform._warps 2013-07-05 00:21:11 +08:00
Stefan van der Walt bcc249263f Merge pull request #596 from josteinbf/radon-projection-center
Radon transform: Improve tests and address bugs in definition of image and projection center.
2013-07-04 07:24:05 -07:00
Ankit Agrawal 6f9d7c5d1a Cleaning up downsampling for integer factors 2013-07-04 17:34:55 +08:00
Ankit Agrawal c57c865196 Add _sum_blocks 2013-07-04 17:32:20 +08:00
Ankit Agrawal 2f817542b8 Making code compatible with Python 3 2013-07-04 17:31:28 +08:00
Ankit Agrawal 7282f561d4 Added docs, tests for downsample() in skimage.transform._warps 2013-07-04 17:31:27 +08:00
Ankit Agrawal 329cf37ca2 Padding ndarray with zeros to support downsampling by any integer factor 2013-07-04 17:24:14 +08:00