Commit Graph

375 Commits

Author SHA1 Message Date
Julian Taylor 87c72ae60f BUG: add signed flag to chars
Sign of char is undefined and there are numerous places where its sign
is important. Fixes tests with -funsigned-char.
Closes gh-1110
2014-09-05 23:51:39 +02:00
Johannes Schönberger 2bfa7b6f3c Merge pull request #1127 from Brittix1023/windowed_histogram
Windowed histogram
2014-09-02 19:00:09 -04:00
Geoffrey French c518f78ff7 Fixed mistake in generic.py 2014-09-02 20:17:43 +01:00
Geoffrey French 5342299572 PEP8 compliance and doc formatting fixes. 2014-09-02 19:16:41 +01:00
Geoffrey French e6bda5accd Fix to skimage.filter.rank.windowed_histogram docstring.
Better explanation of technique in plot_windowed_histogram example, along with (hopefully correct) citations.
Relevant additions to release_dev.txt and CONTRIBUTORS.txt.
2014-09-01 23:41:03 +01:00
Geoffrey French bf02a92ee3 Small fix to windowed_histogram doctoring. 2014-09-01 23:04:24 +01:00
Geoffrey French b9ac11da3f Exchanged array output parameter for pointer and Py_ssize_t in kernel functions for slight speedup. 2014-09-01 22:39:41 +01:00
Geoffrey French da93619e59 Fixed some issues with the new windowed_histogram function in filter.rank.
It used to be able to output uint8 histogram, whose max pixel counts of 255 could easily overflow. Addressed by limiting the output type to float.
Normalized histograms are now generated, otherwise behaviour is unpredictable at boundaries or when pixels are not permitted by a mask.
The new optional n_bins parameter allows the caller to specify the size of the histogram generated. Having it fixed to image.max()+1 could result in feature vectors being shorter than desired just due to a value not being used in an image.
An example has been added to the docs, that demonstrates the application of windows histograms in object matching; a single coin is extracted and found by chi squared histogram matching.
2014-08-31 22:25:45 +01:00
Geoffrey French 7ebb2388d2 Fixed some test failures and added a test for windowed_histogram. 2014-08-31 16:22:35 +01:00
Geoffrey French d63d89497b Modified rank filters package so that the _core function in core.pyx outputs to a 3D image, permitting the generation of images with arbitrary size feature vector pixels. Implemented windowed_histogram that generates a windowed histogram of an image. 2014-08-31 16:04:38 +01:00
Julien Coste f8a0f27265 hack to avoid circular import when import canny 2014-08-31 15:21:46 +01:00
Julien Coste f86b6212bc Canny is now deprecated and will be in api_changes in v0.13 2014-08-31 12:46:16 +01:00
Julien Coste 936211bbcb move import to avoid infinte recursion (filter import peak that import feature that import filter) 2014-08-31 12:15:47 +01:00
Julien Coste bfcc27587a fix import in filter.__init__ 2014-08-31 11:59:32 +01:00
Julien Coste b13ea2288a fix wrong version number 2014-08-31 11:01:08 +01:00
Julien Coste 8a337dbe46 Move canny from filter to feature 2014-08-31 10:55:12 +01:00
Johannes Schönberger f9fd683fcb Test missed line for coverage 2014-08-08 19:51:10 -04:00
Johannes Schönberger 83a6b64844 Fix return value description 2014-08-08 17:01:52 -04:00
Johannes Schönberger 23fd7b89af Improve test coverage 2014-08-08 17:01:52 -04:00
Johannes Schönberger ce0e9174c9 Fix test cases which are now wrong due to previous binning error 2014-08-08 17:01:52 -04:00
Johannes Schönberger fc085ec779 Account for case when image only contains one unique value 2014-08-08 17:01:52 -04:00
Johannes Schönberger 8aa5ef8697 Return to old function name threshold_isodata 2014-08-08 17:01:52 -04:00
Johannes Schönberger 31cf1acf24 Fix isodata-thresholding according to Zachary Pincus 2014-08-08 17:01:52 -04:00
Juan Nunez-Iglesias 838617cb39 Fix incorrect test function signature 2014-07-28 13:01:41 +10:00
Juan Nunez-Iglesias 278a0d6862 Bug fix: nbins can be >256 in threshold_isodata
The threshold_isodata function created an arange of values up to the
number of bins, but gave it type np.uint8, limiting the number of bins
to 256.

Fixes #1085.
2014-07-28 12:38:34 +10: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 ac1b10d1cc Fix docstring of skimage.filter.rank.threshold_percentile 2014-05-10 10:38:48 -04:00
Josh Warner (Mac) 1ca0eef825 FIX: Non-integer indexing deprecation warnings 2014-05-08 00:39:54 -05:00
Johannes Schönberger ed558d672e Remove deprecated skimage.filter.median_filter 2014-04-11 10:05:51 -04:00
Juan Nunez-Iglesias 45beadcb23 Remove all deprecated rank filter functions 2014-04-09 23:26:42 +10:00
Johannes Schönberger ef63523ab0 Move denoise functions to restoration submodule 2014-03-13 19:39:54 -04:00
Stefan van der Walt f518c2b30f Merge pull request #859 from radioxoma/threshold
Add ISODATA thresholding
2014-01-14 05:47:33 -08:00
radioxoma 38525fb423 Explanation by ahojnnes 2014-01-13 19:46:10 +03:00
Johannes Schönberger 0f6cb6f1f9 Add note about dtype overflow 2014-01-12 19:48:52 -05:00
radioxoma 0079e8de5c Adding comments 2014-01-12 18:18:50 +03:00
radioxoma cd01bad721 fix tests 2014-01-11 02:00:03 +03:00
radioxoma 4d5889964b Unit-tests and small fixes 2014-01-10 22:32:34 +03:00
radioxoma 2c197846f9 Add ISODATA threshold with tests 2014-01-10 22:32:34 +03:00
radioxoma dfa2ba7bcd fix yen blank image bug 2014-01-10 22:32:34 +03:00
radioxoma 7fec88fc82 fix threshold_yen import 2014-01-10 22:32:34 +03:00
Johannes Schönberger be3752e922 Use 2 empty lines between functions 2013-12-19 06:05:26 +01:00
Johannes Schönberger 0bf905ad22 Readd note about overflow 2013-12-18 16:36:54 +01:00
Johannes Schönberger 90ca50d7db Clarify that it is the local histogram 2013-12-18 16:34:47 +01:00
Johannes Schönberger f1839e685a Fix pop_bilateral doc test 2013-12-18 16:34:03 +01:00
Johannes Schönberger f8099fa6ac Improve doc strings of percentile rank filters 2013-12-18 14:48:59 +01:00
Johannes Schönberger db048d3675 Improve doc strings of bilateral rank filters 2013-12-18 14:43:08 +01:00
Johannes Schönberger 0a46f5f8de Improve doc strings of generic rank filters 2013-12-18 14:37:24 +01:00
odebeir 2e84dc6399 fix:indentation 2013-12-06 20:13:00 +01:00