Commit Graph

147 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
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
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
Johannes Schönberger ac1b10d1cc Fix docstring of skimage.filter.rank.threshold_percentile 2014-05-10 10:38:48 -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
Johannes Schönberger 0f6cb6f1f9 Add note about dtype overflow 2014-01-12 19:48:52 -05: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 fb1c1d39f0 Fix misspelled sections 2013-11-09 23:01:58 +01:00
Johannes Schönberger 1dc346fbdb Fix duplicate percentile names rank namespace 2013-11-03 17:54:45 +01:00
Johannes Schönberger 22273a5160 Fix 16bit rank filter test in python 3.x 2013-10-30 23:07:23 +01:00
François Boulogne a1373269e6 DOC: fix indent 2013-10-02 18:28:14 +02:00
François Boulogne 8f20fff3f8 PEP8: fix indentation 2013-10-02 18:14:21 +02:00
François Boulogne 8b2f52da50 DOC: protect last character in URL 2013-08-10 13:57:24 +02:00
Johannes Schönberger d883b45666 Fix Otsu rank filter kernel loop range 2013-08-01 11:12:55 +02:00
Johannes Schönberger d9196be3c3 Fix loop ranges of rank filter kernel functions 2013-08-01 08:45:51 +02:00
Johannes Schönberger f9f405a8ba Fix invalid previous fix for percentile edge case 2013-07-31 19:50:05 +02:00
Johannes Schönberger 7be96b4a01 Integrate new test cases from @odebeir and fix old function names of dilate and erode 2013-07-31 19:45:55 +02:00
Johannes Schönberger 9f68e71412 Fix accidential variable naming confusion 2013-07-31 19:27:52 +02:00
Johannes Schönberger 391e976157 Add specific branch for the percentile p0 = 0 case 2013-07-31 19:24:18 +02:00
Johannes Schönberger 5c5c67027e Add missing p1 parameter to percentile and threshold functions 2013-07-31 19:12:44 +02:00
Johannes Schönberger bb4a8aff26 Add test for output dtype of entropy 2013-07-12 23:20:32 +02:00
Johannes Schönberger 8ea6d1deb0 Replace all float dtypes with double 2013-07-12 23:16:51 +02:00
Johannes Schönberger 33a09c3b1a Add option to return double output image for rank filters 2013-07-12 23:16:51 +02:00