Commit Graph

120 Commits

Author SHA1 Message Date
Johannes Schönberger ca5de50079 Enforce integral type for label images 2015-09-03 16:22:32 -04:00
Johannes Schönberger d4641a436a Improve documentation of moments functions 2015-08-19 14:11:39 -04:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Gregory R. Lee ce8e88d6e2 remove truncate argument from gaussian_filter for scipy<0.14 compatibility 2015-05-19 11:16:19 -04:00
Gregory R. Lee c7916ffe9a remove image_similarity; set 11-tap Gaussian via truncate=3.5; add links to references 2015-05-15 21:35:47 -04:00
Gregory R. Lee 6317aac01e use scipy.ndimage.gaussian_filter instead of a custom implementation 2015-05-15 16:03:00 -04:00
Gregory R. Lee 9090aa6afb remove multichannel magic and default to False. fix bugs in tests introduced during rebase 2015-05-15 14:28:48 -04:00
Gregory R. Lee 86e07447d1 replace _discard_edges with skimage.util.arraypad.crop 2015-05-15 13:47:16 -04:00
Gregory R. Lee 3bf6cc106e add additional tests 2015-05-15 13:47:13 -04:00
Gregory R. Lee 6ba1596174 sample vs. population covariance difference addressed to more accurately match reference implementations 2015-05-15 13:45:38 -04:00
Gregory R. Lee 3b27107bfb structural_similarity: add image_content_weighting option 2015-05-15 13:42:29 -04:00
Gregory R. Lee b193e7990e structural_similarity: add option to return full ssim image in addition to the mean 2015-05-15 13:42:27 -04:00
Gregory R. Lee 44f1fd37f2 add multichannel support to structural_similarity 2015-05-15 13:42:14 -04:00
Gregory R. Lee 49a1060719 update structural similarity to nD implementation with gaussian weighting to match other reference implementations 2015-05-15 13:42:06 -04:00
Steven Silvester 0e61374a89 Add a helper function to check for low contrast
Add a helper function to check for low contrast

Add a check for low contrast when using imsave

Use the low contrast helper in imshow and make sure warnings are always shown

Clean up parameter names and add doctests

Remove unnecessary warning context

Remove unnecessary warning context

Add dtype ranges for 64bit types

Update tests with new warnings

Fix doctest logic

Fix doctest logic

Add a low contrast test with multiple dtypes

Fix check for color images

Fix color check again

Add support for int32 types

Relax assertion for 32bit builds

Add a low contrast test with multiple dtypes

Add a low contrast test with multiple dtypes

Fix check for color images

Fix color check again

Add support for int32 types
2015-03-09 21:34:58 -05:00
Johannes Schönberger 47a4418140 Use np.inf instead of float('inf') 2015-03-08 19:37:53 -04:00
Johannes Schönberger eb6c3ede38 Fix RANSAC for invalid model estimation and confidence corner case
Previously, estimators did not return whether the model estimation
was successful. RANSAC now tests whether the estimation was
successful and skips invalid models.

When the confidence/stop_probability of RANSAC was set to 1,
the iteration was falsely terminated early instead of running for
the maximum number of iterations.
2015-03-06 23:47:08 -05:00
Jonathan Helmus 78a0eb6b98 Implement appveyor builds
Implement Appveyor builds

initial test

Updated appveyor.yml

New nosetest call

With conda update conda

with pillow

without pillow

TST: Change case sensitivive JPG extension

Revert "TST: Change case sensitivive JPG extension"

This reverts commit 2deed7cc63736f7c6f0387bd37df4c6643c32847.

Trying with Python 2.7

Trying with version env

Trying again with variables

Testing on all Python versions

don't allow failures

Allow failure

Do not actually use tests

Ignore failing tests

Removed Python 2.6 test

Testing only Python 2.6

Testing out more sklearn like AppVeyor CI

Added install to pip

Add artifacts

Enabled all permutations

Disable 2.6, add PIL

Python 2.6, 2.7 only with PIL

Testing with variable dependencies

Allow failure with IF ELSE

With Python 3.4

Scikit-learn like appveyor CI

Fixing paths

Undo path fix

path fix single line

path fix single line 2

Using Miniconda

More path fixes

New wheelhouse link

Added pillow to requirements.txt

Added networkx to requirements.txt

Add testing of 32/64-bit Python 2.7 and 3.4 to matrix

Debugging Cython compile

Retry with all 4 builds

Updated install.ps1 file

Updated based on latest python-appveyor-demo

Debugging pip install

Specify numpy 1.8.1 until whl is uploaded to rackspace

Use skimage-wide requirements.txt file

Minor comment change to trigger build

Install wheel and then install from WHEELHOUSE

Install six from pip

Install networkx from pip

Install pyparsing from pip

Install pytz from pip

Try using just find-links

Install the binary dependencies first, then the rest

Add pillow to the install list

Fix appveyor.yml syntax

Fix requirements.txt syntax

Fix requirements.txt syntax again

Fix appveyor call to initial install

Fix appveyor call to initial install again

Fix appveyor call to initial install yet again

Install wheel

Install wheel first

Install wheel and nose in the appveyor requirements.txt

Fix Python3 version to match python ftp site

Only use cleanup decorator if available

Add debug info to multiimage test

More debugging information

Fix handling of path separators on Windows

Add another warning guard

Fix warning handling for non-windows

Do not use TkAgg as it may be causing alloc error

Clean up echo command

Allow for unclosed file warning

Fix spacing in echo command
2015-02-28 19:57:45 -06:00
Johannes Schönberger ad85dfabd5 Disable catch of all warnings, return nan params instead 2015-01-22 06:49:16 -05:00
Johannes Schönberger acf68c6d7c Add new parameter to catch exceptions during RANSAC 2015-01-21 14:10:09 -05: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 782ba46a4c Handle more warnings
Punt on the issue of warnings with the minimum build

Handle warnings in measure pkg

Fix the rank filter test by forcing a random seed in the function

Compare as boolean in imread test

Import loadmat in test_setup to avoid warning

Use a setup method for imread plugin test

Revoke unintended changes

Fix indentation to appease jni

More indentation fixes

Fix unintentional comment out
2014-12-23 16:49:59 -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 2756358f3c Clean up PIL plugin and handle more warnings
Use the pil plugin to load data files

Fix install_requires string formatting

Dead end commit

Make all tools executable

Remove debug print

Suppress PIL resourcewarnings

Handle a few more warnings
2014-12-23 16:48:38 -06:00
Johannes Schönberger 125d53ba52 Add test cases for invalid block sizes 2014-12-15 09:50:10 +01:00
Johannes Schönberger eba3d75fa9 Add sanity checks for input parameters 2014-09-28 18:43:32 -04:00
Johannes Schönberger be5d4b19ec Add stop_probability to RANSAC 2014-09-28 18:38:35 -04:00
Stefan van der Walt 5ba4b7ccd3 Expose point_in_poly and move to measure module 2014-09-22 17:56:18 +02:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
Johannes Schönberger 6a0d81a047 Remove backwards-compatability of skimage.measure.regionprops 2014-04-11 10:06:59 -04:00
Vighnesh Birodkar e6ea9efa1c formatting, used assert_equals in test 2014-03-30 17:46:45 +05:30
Vighnesh Birodkar 764c59693c removed array cast, added not equals test 2014-03-28 00:12:18 +05:30
Vighnesh Birodkar 77b91e633b added tests, accounted for nan case 2014-03-26 03:50:04 +05:30
Josh Warner (Mac) e9ac84b77c TST: Add unit test for mesh orientation correction. 2014-03-13 23:34:46 -05:00
Juan Nunez-Iglesias 4bc5d66060 Add numerous (14) tests for profile_line() 2014-01-29 22:50:19 +11:00
Johannes Schönberger 9905ff218f Get rid of trailing underscore for params attribute 2014-01-22 18:39:35 -05:00
Johannes Schönberger c262ad2d44 Use public attribute for parameter values 2014-01-19 09:40:42 -05:00
Johannes Schönberger 4d6308c810 Fix error in line model test 2013-11-22 13:28:53 +01:00
Johannes Schönberger 6e6505ecb6 Increase test coverage of regionprops 2013-11-22 12:16:44 +01:00
Johannes Schönberger 2e8a36a283 Rename test to enable hidden line model test 2013-11-22 12:11:47 +01:00
Jostein Bø Fløystad eff276c99b Bug: Fix label sequence in regionprops.
Closes gh-806.
2013-10-29 11:58:59 +01:00
Stefan van der Walt 94cad284ce Fix Python 3 list handling. 2013-10-17 13:43:18 +02:00
Stefan van der Walt 14687d0510 Dictionary interface to preserve backward compatibility for RegionProps. 2013-10-17 13:07:41 +02:00
Josh Warner 783e120e75 Merge pull request #788 from ahojnnes/patch-1
Weighted central moments
2013-10-15 10:45:50 -07:00
Johannes Schönberger 6711bfb3c8 Rename weighted central moments property 2013-10-15 15:12:00 +02:00
cgohlke e75126a4d8 TST: Fix RuntimeError: data type not supported on Python 2.6
On Python >=2.7, C extensions that use integer format codes with the PyArg_Parse* family of functions will raise a TypeError exception instead of triggering a DeprecationWarning (Python 2.6). The RuntimeError is raised by ndimage for unsupported array data types.
2013-10-15 00:42:40 -07:00
cgohlke f5337e3616 TST: Fix AttributeError: '_RegionProperties' object has no attribute 'weighted_moments_central' 2013-10-14 23:49:53 -07:00
cgohlke 4b02e31dfb TST: Fix test_weighted_moments is defined twice 2013-10-14 23:36:16 -07:00
Josh Warner (Mac) a229d19eb0 DOC: Change sampling to spacing in skimage.draw.ellipsoid and tests 2013-10-13 13:11:11 -05:00