Commit Graph

55 Commits

Author SHA1 Message Date
Jostein Bø Fløystad d5b72f91ab iradon: Do not suppress 0 frequency for filter=None. 2013-07-14 17:40:17 +02:00
Jostein Bø Fløystad 4549204507 iradon: Clean up filter code. 2013-07-14 17:39:48 +02:00
Jostein Bø Fløystad 60444ee4d3 Radon transform: PEP8 fixes. 2013-07-13 20:32:15 +02:00
Jostein Bø Fløystad 462173a53a Radon transform: Include boundary in reconstruction circle.
A test criterion needed to be relaxed slightly to have tests still
passing. This is ok, as the reconstruction circle is now larger, meaning
larger errors should be expected. Moreover, the test in question uses
random data, and changing the seed causes greater changes in accuracy
than the amount the test criterion was relaxed by.
2013-07-13 20:32:15 +02:00
Jostein Bø Fløystad 288ee69483 radon: Correct docstring of order_angles_golden_ratio. 2013-07-13 20:32:15 +02:00
Jostein Bø Fløystad 41c6f6d740 radon: Reduce duplication; simplifications. 2013-07-13 20:32:13 +02:00
Jostein Bø Fløystad 47b6d0c5a6 Radon transform: Document rotation axis location. 2013-07-13 20:31:28 +02:00
Jostein Bø Fløystad 2bfaafd9e2 Radon transform: Redefine projection center for sinograms.
This definition is chosen because it is simple to express in the
documentation. No changes in accuracy are to be expected, but comparing
sinograms and reconstructions before and after this commit will give
different results in the cases where ``circle=False`` for ``radon`` or
``iradon``.
2013-07-13 19:31:43 +02:00
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 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
Jostein Bø Fløystad af47941435 iradon_sart: fix comment spelling. 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 266b202226 iradon_sart: Style fixes. 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 c977c5974d iradon_sart: Improve argument checking. 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 1e1dd180d2 Implement projection shifts. 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
Jostein Bø Fløystad 4b25c48245 transform.iradon: Correct determination of center of projection. 2013-06-23 12:48:14 +02:00
Jostein Bø Fløystad cca66a04ef transform.radon: Robust determination of center of projection. 2013-06-23 12:48:14 +02:00
Jostein Bø Fløystad b8a6b4fa00 radon_transform: Stylistic changes. 2013-06-23 12:48:13 +02:00
Jostein Bø Fløystad b61ff7513e transform.iradon: Refactoring for shorter functions.
Will facilitate testing.
2013-06-23 12:48:13 +02:00
Jostein Bø Fløystad 131cfc73ed transform.iradon: Redefine slice and projection center.
These changes should match those made to radon.
2013-06-23 12:48:13 +02:00
Jostein Bø Fløystad a44f1d4ef9 transform.radon: Consistent definition of center of array.
The center is now defined as shape[i] // 2.
2013-06-23 12:48:13 +02:00
Jostein Bø Fløystad 380c916c92 transform.radon: Use correct padding for rectangular images. 2013-06-23 12:48:13 +02:00
Jostein Bø Fløystad 28de2f978a transform.radon: Remove unneccesary matrix inverse. 2013-06-23 12:48:13 +02:00
Jostein Bø Fløystad bec5a20441 Style improvements in docstrings in transform.radon_transform 2013-05-27 20:43:51 +02:00
Jostein Bø Fløystad c9ae913d32 PEP8 style changes for transform.radon_transform and its tests 2013-05-27 20:42:59 +02:00
Jostein Bø Fløystad 8208293c93 Correct documentation and string formatting. 2013-05-26 21:21:33 +02:00
Jostein Bø Fløystad 5876d80414 Add reconstruction circle option to transform.iradon. 2013-05-26 19:48:16 +02:00
Jostein Bø Fløystad b872648441 Add reconstruction circle option to transform.radon. 2013-05-26 19:48:16 +02:00
Johannes Schönberger 772a1cb4b0 Update radon transform with new warp function 2012-08-27 13:31:33 +02:00
Johannes Schönberger 4fe9f39c45 Fix shape format of arrays in doc strings 2012-08-26 00:16:52 +02:00
Stefan van der Walt 1dcc172f60 TST: Check number of input angles in radon tf. 2012-07-09 11:29:37 -07:00
Andreas Mueller 46e959a9d9 COSMIT some manual pep8, removed unused imports, removed unused variables and fixed a bug in a ValueError statement. 2012-06-29 11:27:23 +02:00
Andreas Mueller f7c56202d0 COSMIT no spaces around power `**`. Fun: https://gist.github.com/1671995 2012-06-29 11:27:23 +02:00
Andreas Mueller f7b3d8062c COSMIT pep8 2012-06-29 11:27:23 +02:00