Commit Graph

241 Commits

Author SHA1 Message Date
Juan Nunez-Iglesias 040a21afb9 Change default interpolation order to 1 2014-01-29 22:55:18 +11:00
Juan Nunez-Iglesias d71cd4d750 Remove unnecessary if clause
The `if linewidth <= 1` was necessary because the coordinate systems
(pixel/point) were all muddled up. Now that it has been clarified,
`linewidth=1` works transparently!
2014-01-29 22:52:49 +11:00
Juan Nunez-Iglesias 4bc5d66060 Add numerous (14) tests for profile_line() 2014-01-29 22:50:19 +11:00
Juan Nunez-Iglesias 00f4d38c2c Polish coordinate system
It's important to distinguish between pixels and points. A square set
of points belongs to one pixel. When users type `linewidth=3`, they
usually mean a line 3 pixels wide. The distance between the pixel
center points, then, is 2.
2014-01-29 22:47:52 +11:00
Juan Nunez-Iglesias 80dcc0cd7b Add 'order' kwarg for interpolation in profile_line() 2014-01-29 19:08:37 +11:00
Juan Nunez-Iglesias 3d93582ae7 Simplify parameters even more 2014-01-29 15:13:36 +11:00
Juan Nunez-Iglesias ae85e26ee3 Reparameterize profile_line to avoid the _calc_vert hack 2014-01-29 14:23:51 +11:00
Juan Nunez-Iglesias 2a6ec20136 Fix doctest string and output shape 2014-01-28 00:21:50 +11:00
Juan Nunez-Iglesias 5a12ef692d Allow multichannel images with >3 channels 2014-01-27 15:39:09 +11:00
Juan Nunez-Iglesias ecb50571b1 Return 1D array for single channel images 2014-01-27 15:36:58 +11:00
Juan Nunez-Iglesias 1170d87ba4 Update _calc_vert for simplicity 2014-01-27 15:18:06 +11:00
Juan Nunez-Iglesias a6ba745807 rename x-y to col-row to be less ambiguous 2014-01-27 11:41:28 +11:00
Juan Nunez-Iglesias 7932db7832 Change profile line API to use src and dst points 2014-01-26 13:19:11 +11:00
Juan Nunez-Iglesias 011409f66a Add profile_line to measure package
The profile_line function is currently part of the skimage LineProfile
plugin. However, it's useful in non-interactive contexts, and importing
it from the viewer is awkward, mostly hidden, and depends on PyQt for
no good reason. By moving the function to `skimage.measure`, it is
usable in many more contexts.
2014-01-26 00:48:21 +11:00
Johannes Schönberger 21a99a39c3 Document params attribute for each class 2014-01-22 18:46:27 -05:00
Johannes Schönberger 9905ff218f Get rid of trailing underscore for params attribute 2014-01-22 18:39:35 -05:00
Johannes Schönberger 9963a25cde Remove wrong comment location 2014-01-19 09:40:55 -05:00
Johannes Schönberger c262ad2d44 Use public attribute for parameter values 2014-01-19 09:40:42 -05:00
Jaidev Deshpande fe94914874 Fix typo in docstring 2014-01-06 12:47:47 +05:30
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
Johannes Schönberger 2bc4cf6074 Skip failing ransac doctest 2013-11-18 12:42:19 +01:00
Johannes Schönberger ffc28d1224 Enable doc tests of ransac function 2013-11-15 13:42:57 +01:00
Johannes Schönberger e282b3e9b3 Revert ellipsis to skip directive 2013-11-04 08:21:03 +01:00
Johannes Schönberger bb1f7df444 Improve usage of doctest directives 2013-11-04 08:04:14 +01:00
Johannes Schönberger 863e89ba41 Fix data type issue in python 3 2013-11-04 00:31:07 +01:00
Johannes Schönberger ad0347d929 Fix regionprops doctest 2013-11-03 23:48:13 +01:00
Johannes Schönberger 099b428da2 Fix marching_cubes doctest 2013-11-03 23:47:24 +01:00
Johannes Schönberger f038a959ee Skip ransac doctests 2013-11-03 18:26:47 +01:00
Johannes Schönberger e92f4151cb Fix duplicate find_contours names in namespace 2013-11-03 17:59:56 +01:00
Johannes Schönberger 45eae57b4c Use NORMALIZE_WHITESPACE directive for block_reduce doctest 2013-11-03 09:49:48 +01:00
Johannes Schönberger 41d12463fd Fix RANSAC doctest 2013-11-03 09:45:33 +01:00
Johannes Schönberger c7378614d9 Fix block_reduce doctest 2013-11-03 09:40:39 +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 f5f8a2c289 Fix markup error in marching cubes docs. 2013-10-19 16:08:42 +02: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
François Boulogne ca6ecf08e6 DOCTEST: fix 2013-10-14 16:28:53 +02:00
Josh Warner (Mac) a229d19eb0 DOC: Change sampling to spacing in skimage.draw.ellipsoid and tests 2013-10-13 13:11:11 -05:00
Josh Warner (Mac) 1de6d93850 DOC: Change sampling kwarg name to spacing in marching_cubes
The preference is to follow VTK's convention for anisotropic
rectangularly sampled data, using the keyword `spacing` rather
than `sampling`. This change converts the last remaining use of
`sampling` in scikit-image to `spacing`.
2013-10-13 13:00:40 -05:00
Johannes Schönberger 4e9cb03aeb Add missing perimeter function to __all__ 2013-10-11 17:37:26 +02:00
Johannes Schönberger f10c362b1a Fix euler number bug for scipy-0.13 2013-10-11 17:34:47 +02:00
François Boulogne 8f20fff3f8 PEP8: fix indentation 2013-10-02 18:14:21 +02:00
Johannes Schönberger 78a849cc37 Fix dtype bug in perimeter 2013-10-02 14:16:24 +02:00