Commit Graph
393 Commits
Author SHA1 Message Date
Juan Nunez-Iglesias 966e0fd685 Merge pull request #1770 from stefanv/list_regionprops
Only iterate over available region properties
2015-12-09 11:21:56 +11:00
Josh Warner (Mac) 443f4cc0eb DOC: Correct docstring to correctly reflect defaults 2015-12-07 21:12:17 -07:00
Josh Warner 29725068ce Guarantee correct mesh orientation from marching cubes 2015-12-06 00:28:18 -06:00
Josh Warner 6f016c9087 Merge pull request #1771 from noahtreb/fix-correct_mesh_orientation
FIX: Fix `correct_mesh_orientation` for spacing != (1,1,1)
2015-12-05 12:22:18 -06:00
Johannes Schönberger 50f2a0b4ed Create helper function to compute norm along axis 2015-12-04 23:11:19 -05:00
Johannes Schönberger f88694e5a3 Fix LineModelND test cases 2015-12-04 23:05:59 -05:00
Kevin Keraudren 0bdf4251c6 documentation updates; added "3D" to example title 2015-12-04 22:25:13 +00:00
Kevin Keraudren 6f9a55c987 added deprecation warning for LineModel and added note in TODO.txt 2015-12-04 08:48:08 +00:00
Kevin Keraudren 61b7c20e03 cleaned tests and documentation, added deprecation note in doc for LineModel. 2015-12-03 22:16:56 +00:00
Kevin Keraudren 6a2961fdee we now have the old LineModel with params (dist, theta), and the new LineModelND with params (origin, direction). 2015-12-03 22:03:10 +00:00
Kevin Keraudren 040a53456d Merged LineModel3D with LineModel in order to form a unified model.
- model.params holds the legacy params (2D representation),
 - model.new_params holds the true ND line representation.

The proposed LineModel behaves identically as the implementation in master in the 2D case. In the 3D case, it behaves similarly to the previously proposed LineModel3D, as long as new_params is used instead of params. This implementation thus takes advantage that the 2D case is a special case of the ND general model.
2015-12-02 08:58:16 +00:00
Kevin Keraudren 5bb206233d fixed typo and added blank line 2015-12-01 15:18:57 +00:00
Kevin Keraudren c1c0d18ba1 reformatting code to wrap at 80 characters per line 2015-12-01 14:32:25 +00:00
Kevin Keraudren a606a53875 Adding LineModel3D for RANSAC, unit test and example. 2015-12-01 12:17:22 +00:00
Johannes Schönberger ba3c0c02cd Fix circular import loop 2015-11-18 09:02:02 -05:00
Johannes Schönberger 1278b02161 Fix circular import between regionprops and convex_hull_image 2015-11-17 10:19:09 -05:00
Johannes Schönberger 1a598be98e Fix region props deprecation problem with label function 2015-11-17 10:07:29 -05:00
Stefan van der Walt ba68306997 Remove dict comprehension for Python 2.6 compatibility 2015-11-09 09:40:16 -08:00
Noah Trebesch 851b1be627 Fixed correct_mesh_orientation for when spacing!=(1,1,1). 2015-11-05 19:01:15 -06:00
Stefan van der Walt 52594d0bd8 Only iterate over available region properties 2015-11-05 15:41:00 -08:00
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