Commit Graph

195 Commits

Author SHA1 Message Date
Robin Wilson 5cf7a2013d Fixed tests to use assertRaises as a function not a context manager 2015-08-30 22:49:24 +01:00
Robin Wilson 9f878affbc Renamed keyword arg to use_quantiles 2015-08-29 16:25:42 +01:00
Robin Wilson f9887e61e5 Added test for invalid quantile inputs 2015-08-29 14:14:13 +01:00
Robin Wilson b29ad8ef6d Added quantile_threshold option to canny edge detection
This allows you to specify the high and low thresholds as quantiles of the edge magnitude
image, rather than as absolute edge magnitude values
2015-08-28 22:30:42 +01:00
Steven Silvester 09c8a84a54 Merge pull request #1518 from stefanv/relative_imports
Consistently use relative imports
2015-07-12 14:41:06 -05:00
Jonathan Helmus 89a717ef3f TST: Reduced size of image in test_blob:test_blob_log for speed 2015-07-11 16:40:32 -05:00
Jonathan Helmus 9c6ab1bc18 TST: Use quarter size images to speed up test_censure unit tests 2015-07-11 16:28:58 -05:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Josh Warner 91f74fd6c6 Merge pull request #1536 from warmspringwinds/mb-lbp
FEAT: multi-block local binary patterns (MB-LBP)
2015-06-16 12:43:32 -05:00
dan 88e3ac45fc Documentation correction. 2015-06-15 22:12:02 +02:00
dan c3e23b0604 Changed x/y to r/c notation. Documentation correction. 2015-06-15 22:04:09 +02:00
dan 496e8c090e the function name was shortened to multiblock_lbp 2015-06-12 20:41:38 +02:00
dan 61442e040e Switched to using integrate Cython function from skimage._shared. All changes were made to make it fit. 2015-06-10 11:38:20 +02:00
Juan Nunez-Iglesias 0d134987f9 Harmonize all ndimage usage across the library
Only two forms remain in use:

- `from scipy import ndimage as ndi`
- `from scipy.ndimage import function`
2015-06-09 15:18:37 +10:00
dan 83c3bd10c8 Cython implementation of MB-LBP. Updated MB-LBP visualization without matplotlib.Examples to gallery were added. Tests are made more easily readable. 2015-06-08 09:16:22 +02:00
dan 3c82d9505f plain python multiblock lbp implemented with test coverage 2015-05-29 22:58:39 +02:00
Johannes Schönberger a2ddba21a5 Do not acquire GIL for hessian_matrix_det 2015-05-20 20:22:02 -07:00
Johannes Schönberger 4a95345489 Do not acquire GIL for texture functions 2015-05-20 17:51:41 -07:00
Johannes Schönberger 9cd7ca5881 Do not acquire GIL for BRIEF 2015-05-20 17:39:46 -07:00
Johannes Schönberger bca458bc1c Do not acquire GIL for CENSURE 2015-05-20 09:04:58 -07:00
Johannes Schönberger a489b85b22 Do not acquire GIL for corner detectors 2015-05-20 07:45:04 -07:00
Johannes Schönberger c52c7f4bfb Do not acquire GIL for ORB 2015-05-20 07:38:47 -07:00
Daniel Wennberg c86c6effe8 Fix tests for #1257
The test of blob_doh() set an unrealistically strict threshold for the
accuracy of the estimated blob radius, causing the test to fail with the
true floating-point value (previously, the test passed only because
sigma was truncated to integer). Increasing the threshold fixes the
problem.
2015-05-02 18:12:30 +02:00
Stefan van der Walt d6870c6de7 Merge pull request #1066 from msarahan/PhaseCorrelation
Add subpixel shift registration
2015-03-02 08:30:45 -08:00
Michael Sarahan 71a89697f0 improve test coverage. Use SciPy's fourier_shift for examples. 2015-02-21 11:33:37 -08:00
Michael Sarahan 03dc489457 Add subpixel-precision image translation registration function to feature module 2015-01-29 20:09:50 -08:00
kpk09 22ffc20fc4 Added broken test for feature.peak_local_max when the image is 3D and num_peaks is set. The current code only holds for 2D images. 2015-01-25 00:15:20 +00:00
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -06:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -06:00
Steven Silvester 4680f30466 Add a test setup helper function
Add a function to set up a skimage test

Switch to new test helper function

Import local packages that raise warnings in test setup function

More fixes to doctests

Fix regionprops doc test

Try and fix the test_rank failure.

Remove no longer needed RectangleSelector shim

Skip more doctests in _regionprops

Try importing another scipy subpackage
2014-12-23 16:49:20 -06:00
Steven Silvester f72882fbd2 Import scipy before turning on warnings 2014-12-23 16:49:19 -06:00
Steven Silvester 9e8f91930e Handle warnings in several packages
Start handling warnings in data, exposure, and draw

Add a known_warning decorator and suppress warnings in color pkg

Use the existing all_warnings context manager

Raise warnings in data

Raise warnings in draw

Raise warnings in exposure

Suppress warnings in exposure tests

Add comments about warning suppressions

Raise warnings in feature

Fix warnings in filter package

Add warning handling to graph

Handle warnings in io package
2014-12-23 16:47:41 -06:00
Johannes Schönberger 20d81529f4 Fix matching test cases 2014-12-23 12:40:15 +01:00
Johannes Schönberger a1a2f9c988 Remove __init__.py from tests folder, remove unnecessary load of test image 2014-12-22 20:39:18 +01:00
Stefan van der Walt 3172198244 Remove prints in test suite 2014-11-07 18:05:42 +02:00
Rebecca 2ba41844ff modified array 2014-11-07 16:04:53 +02:00
Rebecca 1b217f971e replacing lena in examples and most tests 2014-11-07 16:01:23 +02:00
Steven Silvester bcac1b1a6d Fix canny test to reflect new error type. 2014-09-20 20:09:44 -05:00
Julien Coste 23a6f0af6c remove auto added __author__ in __init__.py file 2014-08-31 11:00:16 +01:00
Julien Coste 8a337dbe46 Move canny from filter to feature 2014-08-31 10:55:12 +01:00
blink1073 b6dcf3c336 Update Travis build to use Anaconda.
Update Travis build to use Anaconda

Travis updates and fixes

More travis fixes

Another travis attempt

Revert changes

Use PIL and Pillow

Refactor travis into 4 different builds

Fix activation error

Remove explicit mpl in build_versions.py

Make matplotlib an explicit requirement

Rearrange travis

Make pillow a hard requirement

Try again to make Pillow optional

Fix bash syntax error

Fix bash syntax error

Bump required cython version

More rearrangments

Remove mpl from build_versions, rearrange travis

Fix version check

Make matplotlib explicit again

Conda install into test env

Check for proper install

Allow tests to skip if networkx is not available

Allow tests to skip if networkx is not available

Try swapping pillow for matplotlib

Allow tests to pass when matplotlib is not present

Remove matplotlib from build_versions

Print PIL version

Get pillow from PIP

Allow tests to skip if matplotlib is not present.

Allow tests to skip if networkx is not present.

travis fix

Remove unused mpl import that caused test error

Use nose-cov and do not run doctests without optional libs

Bump required numpy version and fix nose calls

Make overlay test repeatable

bump numpy version again

Move low-end numpy to python 2.7

Play with minimum versions

Add version requirements and use functions

Add version requirements and use functions

Allow require to skip a test

More implementation of require decorator

Update require decorator and clean up tests

Only use requires decorator when needed

Fix python3 error in version_requirements

Fix build errors

Fix handling of require with tests

More fixes for require handler

Use latest miniconda

Fix more build errors

Fix another dict comprehension and travis file.

Fix missing imports

Fix dictionary again

Fix import warning

Fix last failing test on 2.6

Skip doc examples on python2.6

Do not run doctests on python2.6

Fix typo in travis.yml

Make numpy-1.6 compatibility changes

Use numpy-1.6 in travis python2.6

Add tests for version requirements

Fix line noise in PR

Add additional io plugins

Fix simpleitk test.

Fix python 3 error in freeimage_plugin.

Install imread in Travis.

Put matplotlib settings in XDG recommended directory

Fix formatting in travis yml

Fix formatting in travis yml

Make sure to close PIL file atexit

Fix name of apt package xcftools

Fix pil fp closing

Fix matplotlibrc creation

Only download SimpleITK on py2x, run coverage on py27

Fix travis yml syntax error

Run coveralls on py2.7

Install SimpleITK on py3.3 and run coverage on py3.3

Make simpleitk install quiet

Use standard nose and clean up incantation

Fix travis yml syntax error

Put in miniconda workout for libc error.

Fix imread plugin.

Fix travis syntax

Remove unused import

Remove miniconda libpng in favor of system png

Fix imread install and move libm removal to after optional pkg install.

Fix png header copy in travis yml

Another attempt to use png headers

Debug freeimage

Add jpeg library for freeimage and debug imread.

More debug for imread and freeimage

More freeimage and imread debugging

More debugging

Use correct paths for test env

Make sure imread is tied to libpng15

Add a TODO note for simpleitk test causing error.

Fix typo in yml

Cleanup and add more comments to travis yml

Update comment

Try and add 3.2 support.

Docstring formatting

Add more travis comments.

Try numpy 1.6 on python 2.7

Fix travis syntax error

Rename CONDA to ENV for clarity

Alias python on python 3.2

Use python 3.2 as the system python

Clean up libfreeimage install

Fix order on py3.2 pre_install

Move old numpy back to py26

Use the appropriate python calls.

Debug 3.2 build.

Update comment

Fix syntax error

Another fix for syntax error.

Install scipy after downloading import tools

More debugging for py32

Do not install conda on py3.2 (duh)

Fix typo in travis yml

Fix py32 qt install, separate pyfits and imread to find error

Fix syntax error and front-load option lib check for debug

pyfits is not supported in py3.2, try imread now

imread is also not supported on py3.2

install imread before pyfits to show relationship with libs

Make pip builds quiet

Minor formatting to retrigger build

Allow simpleitk to fail to download without breaking the build

Use travis_retry for SimpleITK

See what breaks when we keep libm in

Now remove libm again
2014-08-02 06:47:09 -05:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
blink1073 5ef3f95d71 Add random seeds to tests per #1044 2014-07-05 12:49:42 -05:00
Stefan van der Walt 5b07567973 Merge pull request #1005 from JDWarner/int_idx_patch
Fix NumPy non-integer indexing deprecation warnings
2014-05-13 17:48:11 +02:00
Johannes Schönberger 7b86728498 Add full test coverage for corner_subpix and fix bug 2014-05-10 10:12:41 -04:00
Josh Warner (Mac) 1ca0eef825 FIX: Non-integer indexing deprecation warnings 2014-05-08 00:39:54 -05:00
Vighnesh Birodkar 848a0f5fbe removed whitespaces 2014-04-10 21:03:37 +05:30
Vighnesh Birodkar 5658704a35 changed parameter of hessian_matrix_det 2014-04-10 19:54:49 +05:30
Vighnesh Birodkar a4a939e74b improved test coverage 2014-04-09 23:19:25 +05:30
Vighnesh Birodkar e818a42fba moved public interface of hessian determinant to corner.py 2014-04-09 10:33:24 +05:30