Juan Nunez-Iglesias
838617cb39
Fix incorrect test function signature
2014-07-28 13:01:41 +10:00
Juan Nunez-Iglesias
278a0d6862
Bug fix: nbins can be >256 in threshold_isodata
...
The threshold_isodata function created an arange of values up to the
number of bins, but gave it type np.uint8, limiting the number of bins
to 256.
Fixes #1085 .
2014-07-28 12:38:34 +10:00
Juan Nunez-Iglesias
85a5cea533
Merge pull request #1054 from blink1073/add_test_seeds
...
Add random seeds to tests per #1044
Additionally, change all `np.random.random` to `np.random.rand` calls, as the former are not affected by `np.random.seed`.
2014-07-20 07:48:49 -05:00
blink1073
caaf75ebd1
Fix failing doctests
2014-07-19 19:16:46 -05:00
blink1073
5677dafe41
Move away from random.random in favor of random.rand
2014-07-19 18:18:23 -05:00
Juan Nunez-Iglesias
6aa0b9e0b9
Merge pull request #1073 from tonysyu/feature/adapt_rgb
...
Add `adapt_rgb` decorator and helpers
2014-07-18 08:27:57 -05:00
Juan Nunez-Iglesias
0c31487fd9
Merge pull request #1072 from blink1073/add-viewer-tests
...
Add Viewer Tests
2014-07-18 06:05:08 -05:00
Tony S Yu
ee3b9f2d66
Remove orphaned import
2014-07-17 20:50:39 -05:00
blink1073
243d550537
Make skip condition cleaner
2014-07-17 19:52:45 -05:00
blink1073
acbac35616
Skip tests if matplotlib is not present
2014-07-17 12:33:59 -05:00
Juan Nunez-Iglesias
a2e28955b4
Merge pull request #1063 from nlsn/3d-fallback
...
Add fallback decorator for 3D images
When an image is 3D or higher, our morphology functions will now call out to scipy.
2014-07-17 00:55:29 -05:00
Tony S Yu
34d7fdb138
Fix docstring for wrapped functions
2014-07-16 23:45:55 -05:00
Tony S Yu
d9a39d44eb
Remove cast and rescale and adjust test values to match
2014-07-16 23:24:03 -05:00
Tony S Yu
c24adec714
Add adapt_rgb decorator and helpers.
...
This applies `adapt_rgb` to `equalize_adapthist` and removes the
special-casing of RGB images in that function. Note that tests of
`adapt_rgb` fail because some type conversion and intensity scaling
were added to pass tests for `equalize_adapthist`.
2014-07-16 23:13:04 -05:00
Nelson Brown
6e8ae37f07
Change ndimage test image to fit uint8 range
2014-07-16 20:03:37 -07:00
Nelson Brown
eb4725826d
Change test of ndimage equivalence to use uint8 test image
2014-07-16 19:57:25 -07:00
blink1073
97d920cc6b
Another travis fix
2014-07-16 21:04:13 -05:00
blink1073
0b73d69144
Address travis failures
2014-07-16 20:39:37 -05:00
blink1073
1a01f1a83b
Fix failing tests
2014-07-16 19:58:13 -05:00
blink1073
9576df45f8
Add tests for all of viewer subpackage, with necessary file mods
2014-07-16 19:38:23 -05:00
blink1073
736de2c403
Rename module to be more explicit
2014-07-16 14:10:10 -05:00
blink1073
94bbb58274
Minor cleanup of adapthist module
2014-07-16 14:06:08 -05:00
Nelson Brown
4449c77884
Fix calls to ndimage to use footprint argument
2014-07-15 08:39:34 -07:00
Nelson Brown
7976520e7a
Add test that the 2D results correspond to scipy's
...
Remove trailing whitespace
2014-07-15 08:25:17 -07:00
Nelson Brown
8c2b9b1784
Updated docstrings
2014-07-15 08:07:30 -07:00
Nelson Brown
001a63bd21
Remove repeated comments
2014-07-15 08:03:31 -07:00
Nelson Brown
a1519a015e
Change binary morphology functions to output numpy.bool dtype
2014-07-13 19:59:43 -07:00
Nelson Brown
b677c400df
Add whitespace following comma
2014-07-13 16:55:06 -07:00
Nelson Brown
042d85ad43
Adjust hanging indentation whitespace in dict comprehension
2014-07-13 16:31:58 -07:00
Nelson Brown
d9909c4db9
Add tests for ndimage fallback for 3D white_tophat & black_tophat
2014-07-13 12:36:05 -07:00
Nelson Brown
f1a8132fbf
Add doctrings and comments in response to reviewers
2014-07-13 11:28:27 -07:00
blink1073
70a3760bca
Remove unused deprecation import.
2014-07-12 19:43:57 -05:00
blink1073
0392299fae
Refactor to use np.pad, naming changes, update test.
2014-07-12 19:12:53 -05:00
blink1073
a924e55b52
Fix handling of border pixels and update tests
2014-07-12 19:12:53 -05:00
Tony S Yu
5cafbd95e6
Add tests for intensity_range and rename parameter
2014-07-12 19:12:53 -05:00
blink1073
cc68b0c392
Start removing optional edge pixel handling
2014-07-12 19:10:32 -05:00
blink1073
2bdfcc7d5e
Fix failing tests and turn module level testing back ony
2014-07-12 19:10:32 -05:00
blink1073
ba010a3191
Update adapthist tests, add test for alpha channel and rgb mode handling.
2014-07-12 19:10:32 -05:00
blink1073
909f23baab
Switch to HSV, refactor equalize_adapthist, fix #757 , cleanup docstring
2014-07-12 19:10:31 -05:00
blink1073
95a208eec5
Add test for adapthist modes
2014-07-12 19:10:31 -05:00
blink1073
9f7119b1c0
Change 'trim' to 'crop'
2014-07-12 19:10:31 -05:00
blink1073
9fa39e564a
Update docstring
2014-07-12 19:10:31 -05:00
blink1073
61fb831d31
Implement a mode enum
2014-07-12 19:10:31 -05:00
blink1073
196205956e
Set the unused portion of the image to 0
2014-07-12 19:10:31 -05:00
Nelson Brown
ea3e65f25a
Add 3d-fallback tests for binary functions
2014-07-12 16:54:35 -07:00
Nelson Brown
2b91c259d6
Add fallback decorator for 3D images
...
We don't support images greater than 2D, so fall back on ndimage
2014-07-12 15:22:48 -07:00
Juan Nunez-Iglesias
9cd276f754
Merge pull request #1058 from nlsn/default-selem
...
Default structuring element (selem)
2014-07-12 10:06:11 -05:00
Nelson Brown
3518e65ab4
Add newline at EOF of selem.py
2014-07-11 23:39:07 -07:00
Nelson Brown
c2bbca6113
Add a newline at EOF
2014-07-11 23:32:36 -07:00
Stefan van der Walt
2c9d22c5e1
Merge pull request #1032 from tonysyu/better-rescale-intensity
...
Tweak range definition in `rescale_intensity`
2014-07-12 00:56:06 +02:00