Commit Graph
362 Commits
Author SHA1 Message Date
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
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
Olivier Debeir cb310feab1 fix:rtank.__init__ 2013-12-06 13:42:06 +01:00
Olivier Debeir 9d734ad4f2 fix:docstring in sum_bilateral 2013-12-06 12:05:36 +01:00
Olivier Debeir 0b8d83c24c fix:rank.sum docstrings 2013-12-06 10:50:27 +01:00
Olivier Debeir 3f08779810 add:rank.sum_bilateral 2013-12-06 10:47:52 +01:00
Olivier Debeir d98ed722d9 add:rank.sum_percentile 2013-12-06 10:37:39 +01:00
Olivier Debeir 1f8adcc755 fix:indent 2013-12-06 10:09:10 +01:00
Olivier Debeir ef5de4165b fix:rank.sum docstring 2013-12-06 10:08:27 +01:00
Olivier Debeir 0fc0c9f042 fix:rank.sum docstring 2013-12-06 10:06:32 +01:00
Olivier Debeir 39b256a7ed fix:rank.sum docstring 2013-12-06 10:05:19 +01:00
Olivier Debeir fe0e252db6 shorten line 2013-12-06 09:08:34 +01:00
Olivier Debeir ed0ae50f62 add rank filter sum 2013-12-06 09:05:55 +01:00
Johannes Schönberger df4ca92794 Reduce runtime of long doctests 2013-11-18 12:54:42 +01:00
Johannes Schönberger ad3464701a Fix doc string syntax errors 2013-11-09 23:13:43 +01:00