Commit Graph

373 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 236aa208fe Merge pull request #1583 from grlee77/fix_interp_modes
FIX:  bug in 'reflect' and 'wrap' coordinate mapping
2015-08-20 18:53:11 -04:00
Johannes Schönberger d4641a436a Improve documentation of moments functions 2015-08-19 14:11:39 -04:00
Gregory R. Lee 9e9c65b97c ENH: add mode 'mirror' to interpolation.pxd and dependent functions 2015-08-13 23:39:54 -04:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05: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
Stefan van der Walt bbf3f1c97b Merge pull request #1519 from ahojnnes/nogil
Release the GIL from Cython
2015-05-21 10:59:05 -07:00
dan ff1322938e pep line width violation corrected 2015-05-21 07:58:56 +02:00
dan bcb5b34fef more formal documentation 2015-05-21 02:06:27 +02:00
dan 98c4e2366e ellipse documentation was corrected 2015-05-21 01:30:17 +02:00
Johannes Schönberger 0758fc9cd6 Do not acquire GIL for felzenswalb 2015-05-19 22:52:35 -07:00
Stefan van der Walt 07f95e400f Merge pull request #1511 from grlee77/ssim_ndim
ENH: structural_similarity: n-dimensional and multichannel support
2015-05-19 19:04:23 -07: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 d781fc5774 docstring fixes 2015-05-15 14:09:03 -04:00
Gregory R. Lee 9cb4b4bae6 revise argument handling code for multichannel case 2015-05-15 13:47:20 -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 6294dcbf12 allow remaining hardcoded constants (sigma, K1, K2) to be modified via kwargs 2015-05-15 13:45:40 -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
Joel Frederico 575689baf2 Update measure.regionprops.weighted_moments_central doc
The documentation is misleading. In fact, the code does do what a user would expect: use the weighted centroid coordinates, not the centroid coordinates. It's one word, but it's an important one!

https://github.com/scikit-image/scikit-image/blob/master/skimage/measure/_regionprops.py#L291
2015-05-14 17:15:00 -07:00
arve0 6fceaa2f75 import from _label instead of _ccomp 2015-03-14 23:22:15 +01: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 d6a737bf86 Update doctest for new estimator API 2015-03-08 13:13:46 -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
Josh Warner (Mac) ea02a4e348 FIX: Ignore exception if attempted deletion fails (fixes #817) 2015-02-28 17:11:31 -06:00
Steven Silvester 09876408fc Fix some sphinx warnings and add to build
Fix some sphinx warnings

Add documentation build to test

Add documentation build to test

Remove change in numpydoc

Remove change in apigen

Add makefile target for html and add to travis script

Add a makefile target for html and add to travis script

Fix more sphinx warnings
2015-02-07 16:40:26 -06:00
Stefan van der Walt 13f9b89023 Merge pull request #1319 from ahojnnes/geom-est
Improve conditioning of geometric transformations
2015-01-28 13:31:25 -08:00
Steven Silvester b6a1bcdb06 Merge pull request #1324 from ahojnnes/rel-import
Use relative imports in skimage files
2015-01-25 15:26:34 -06:00
Johannes Schönberger d3c4c704fe Speedup regionprops 2015-01-22 07:53:10 -05:00
Johannes Schönberger ee5c6fbeb2 Use relative imports in skimage files 2015-01-22 07:36:48 -05: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 b7f4f61ae7 Remove unnecessary measure.label shim
Conflicts:
	skimage/measure/_label.py
2014-12-26 21:34:33 -06:00
Steven Silvester f898bd0209 Style fixes 2014-12-26 11:26:30 -06:00
Steven Silvester cb2745cfdf Change default neighbors to None 2014-12-24 05:57:37 -06:00
Steven Silvester 3829401e9f Fix label wrapper function 2014-12-23 21:20:23 -06:00
Steven Silvester 2d3ada19e5 Allow for no exceptions to be raised and cleanup
Allow for no exceptions to be raised

Add some helpful comments

Remove doctest skips

Remove TODO note

Cleanup and skip failing doctest
2014-12-23 16:51:18 -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 a4e4e57ba5 Create new expected_warnings helper and some cleanup
Add new helper function for expected warnings during test

Indentation cleanups and avoid skipping doctests if possible.
2014-12-23 16:50:18 -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 6db92d387b More doctest and pil_plugin fixes
Fix Python2 imread in pil_plugin.

Load from data

Use all_warnings when importing the other packages

More fixes for regionprops doctest
2014-12-23 16:49:38 -06:00