Antony Lee and Johannes Schönberger
bd2ecff62f
WIP: fix impl. of peak_local_max, update tests.
2016-01-29 09:26:12 +01:00
Antony Lee and Johannes Schönberger
58283e7bd5
Change default min_distance; improve docstring.
2016-01-29 09:26:12 +01:00
Antony Lee and Johannes Schönberger
f3771aba7e
Saner defaults for peak_local_max, untested.
...
First attempt at fixing #1246 .
2016-01-29 09:26:12 +01:00
Juan Nunez-Iglesias
ad51119da1
Merge pull request #1913 from stefanv/contribute_2plus
...
Update contributor's guide: all PRs must get two +1's by core team before merge
2016-01-29 14:22:22 +11:00
Gregory R. Lee
b8e7740159
use dtype=np.float64 in calls to np.mean
2016-01-28 22:10:02 -05:00
Gregory R. Lee
8483a62e76
make suggested naming changes in simple_metrics.py
2016-01-28 22:09:52 -05:00
Stefan van der Walt
9a522c8b44
Update contributor's guide: all PRs must get two +1's by core team before merge
2016-01-28 18:56:57 -08:00
Stefan van der Walt
31b6adb778
Bump numpy requirement to 1.7.2
2016-01-28 11:24:29 -08:00
Stefan van der Walt
772dc48337
Simplify alpha vector generation
2016-01-27 14:28:40 -08:00
Gregory R. Lee
0f71278a10
revert simple_metrics to np.float64 computations for all input types
2016-01-27 12:36:22 -05:00
Gregory R. Lee
64f62032c3
psnr: update dynamic range calculation
...
also moved the identical dtype and shape checks into a separate utility function
2016-01-27 11:56:12 -05:00
Gregory R. Lee
ea3ad97b3e
TST: add MSE, NRMSE test that would fail in case of int overflow
2016-01-27 11:24:56 -05:00
Gregory R. Lee
acef026676
fixed outdated import name _simple_metrics in __init__.py
2016-01-26 18:21:12 -05:00
Gregory R. Lee
a8124166c1
Fix the default dynamic_range in PSNR and warn if inputs don't meet the assumptions made
2016-01-26 18:17:56 -05:00
Gregory R. Lee
f4773e303d
NRMSE, MSE, PSNR: make sure all inputs are float prior to the calculations.
2016-01-26 18:17:02 -05:00
Gregory R. Lee
a681ccd3ee
TST: add test for invalid normalization type in NRMSE
2016-01-26 17:56:38 -05:00
Juan Nunez-Iglesias
aae7f2b615
Merge pull request #1907 from OrkoHunter/threshold_adaptive_block_size
...
Modify threshold_adaptive
2016-01-26 10:26:56 +11:00
Juan Nunez-Iglesias
f3a98250ad
Merge pull request #1903 from OrkoHunter/threshold_otsu_min_color
...
threshold_otsu can't work with one color images
2016-01-26 10:05:09 +11:00
Himanshu Mishra
df18b53aed
Correct example for threshold_adaptive
2016-01-26 01:59:18 +05:30
Josh Warner
e6f66a2691
Merge pull request #1902 from OrkoHunter/test_orb_fix_lena
...
TSTFIX: Do not use lena in test_orb
2016-01-25 13:44:58 -06:00
Himanshu Mishra
41afd05d0a
Modify threshold_adaptive
...
1. Improve docstring
2. Raise error for even block_size
3. Test for the ValueError
2016-01-25 19:46:21 +05:30
Himanshu Mishra
1740767a3a
Add test for threshold_otsu on single color image
2016-01-25 13:56:45 +05:30
Himanshu Mishra
d677015806
Do not use lena in test_orb
2016-01-25 13:48:11 +05:30
Juan Nunez-Iglesias
a2379182dc
Merge pull request #1904 from OrkoHunter/clarify_generic_filter_rag
...
Add comment in ndi.generic_filter for the use of output, in RAG
2016-01-25 18:48:25 +11:00
Himanshu Mishra
b9199fe765
DOC : Add comment for the use of strided output array for generic_filter in RAG
2016-01-25 12:50:45 +05:30
Stefan van der Walt
c8ba77d5f9
Clean up implementation
2016-01-24 19:42:24 -08:00
Juan Nunez-Iglesias
d199ab2dc6
Merge pull request #1839 from grlee77/nd_denoise_tv
...
replace separate 2D and 3D Chambolle TV denoising functions with a single nD function
2016-01-25 13:36:15 +11:00
Gregory R. Lee
72607ca99e
update NRMSE docstrings and include run_module_suite in the corresponding test file
2016-01-24 12:41:18 -05:00
Gregory R. Lee
682f0895e7
TST: add test for constent TV weighting across number of image dimensions for Chambolle algorithm
2016-01-24 12:27:10 -05:00
Himanshu Mishra
28f19d3076
Raise error when single colored image is passed in threshold_otsu method
2016-01-24 20:57:40 +05:30
Panfilov Egor
2d20d4ad39
Merge pull request #1901 from OrkoHunter/test_match_fix_lena
...
Use astronaut instead of lena in test_match
2016-01-24 16:45:46 +03:00
Himanshu Mishra
0b285100a4
Use astronaut instead of lena in test_match
2016-01-24 16:24:45 +05:30
Himanshu Mishra
3ec41555c7
Modify tests for hog after renaming kwarg normalise
2016-01-24 15:16:46 +05:30
Himanshu Mishra
f7d18a56ad
Replace normalise kwarg in hog with transform_sqrt
2016-01-24 15:01:30 +05:30
Gregory R. Lee
53742be9c6
fix axis bug in multichannel case and add a corresponding test
2016-01-24 02:24:37 -05:00
Gregory R. Lee
cfb9c760db
TST: fix broken test
2016-01-23 21:35:36 -05:00
Gregory R. Lee
69e73ea52b
TST: add tests for nrmse, psnr
2016-01-23 21:09:22 -05:00
Gregory R. Lee
ef3896d013
add new metrics to API
2016-01-23 21:09:22 -05:00
Gregory R. Lee and Gregory R. Lee
ee38b920d9
ENH: Add some simple image comparison metrics: PSNR and NRMSE
2016-01-23 21:09:21 -05:00
Stefan van der Walt
731356763e
Draw daisy features using anti-aliasing ( closes #1665 )
2016-01-23 16:02:49 -08:00
Stefan van der Walt
e2f874e75f
draw: Add alpha ability to set_color
2016-01-23 16:02:49 -08:00
Gregory R. Lee
a30592a22a
MAINT: explicitly specify axis argument
2016-01-23 11:23:21 -05:00
Gregory R. Lee
e6a1a19337
update default weight to reflect the bugfix from hardcoded 0.5 to 1/(2*ndim)
...
use the default weight in all the tests as well.
2016-01-23 11:01:48 -05:00
Gregory R. Lee
dd5a708a33
minor bugfix so that weight gives a consistent amount of smoothing regardless of the number of dimensions.
...
As in the original reference, the stepsize should be in both the numerator and denominator of p.
2016-01-23 11:01:15 -05:00
Gregory R. Lee
9f419024ad
Switch _denoise_tv_chambolle to use C-ordering
2016-01-23 10:59:33 -05:00
Gregory R. Lee and Gregory R. Lee
4a8a2189f2
use Fortran order for g and p in _denoise_chambolle_nd to avoid a performance regression
2016-01-23 10:59:32 -05:00
Gregory R. Lee and Gregory R. Lee
4bc4f0a169
remove try/except in _denoise_chambolle_nd. just use the numpy 1.6 compatible case
2016-01-23 10:59:32 -05:00
Gregory R. Lee and Gregory R. Lee
4a0ad77780
update tests for denoise_tv_chambolle
2016-01-23 10:59:32 -05:00
Gregory R. Lee and Gregory R. Lee
c2b86d8a02
fix numpy 1.6 compatibility
2016-01-23 10:59:32 -05:00
Gregory R. Lee and Gregory R. Lee
2d326a464e
ENH: n-dimensional refactor of TV denoising.
...
_denoise_tv_chambolle_2d and _denoise_tv_chambolle_3d are replaced by _denoise_tv_chambolle_nd
The restriction to 2D and 3D in denoies_tv_chambolle was removed.
2016-01-23 10:59:32 -05:00