Commit Graph

39 Commits

Author SHA1 Message Date
Johannes Schönberger 83a6b64844 Fix return value description 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 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
radioxoma 38525fb423 Explanation by ahojnnes 2014-01-13 19:46:10 +03:00
radioxoma 0079e8de5c Adding comments 2014-01-12 18:18:50 +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
Johannes Schönberger df4ca92794 Reduce runtime of long doctests 2013-11-18 12:54:42 +01:00
François Boulogne 8f20fff3f8 PEP8: fix indentation 2013-10-02 18:14:21 +02:00
radioxoma c8c95c0e63 Fix import list sequence 2013-09-07 19:10:40 +03:00
radioxoma 04804cc81c Logarithm optimisation 2013-09-07 19:10:40 +03:00
radioxoma 9e74f4eb70 Added Yen tests, typo fixed 2013-09-07 19:10:40 +03:00
radioxoma 8beb2ae605 Yen PEP8 and docstrings 2013-09-07 19:10:40 +03:00
radioxoma e41887c66d Codestyle improvement 2013-09-07 19:10:40 +03:00
radioxoma a315ae718d Add Yen threshold method 2013-09-07 18:48:46 +03:00
Johannes Schönberger 3dc4824fb5 Fix doc string of threshold_adaptive 2013-05-26 12:49:26 +02:00
Tony S Yu dc10efe4e1 DOC: Fix formatting to prevent Sphinx warnings 2012-09-02 17:53:22 -04:00
Johannes Schönberger 4fe9f39c45 Fix shape format of arrays in doc strings 2012-08-26 00:16:52 +02:00
Andreas Mueller f7c56202d0 COSMIT no spaces around power `**`. Fun: https://gist.github.com/1671995 2012-06-29 11:27:23 +02:00
Andreas Mueller f7b3d8062c COSMIT pep8 2012-06-29 11:27:23 +02:00
Stefan van der Walt 12669d62e6 BUG: Remove import of non-existent module. 2012-04-30 12:08:02 -07:00
Johannes Schönberger 7b4fea2db4 fixed bug when sigma is set manually 2012-04-30 16:33:58 +02:00
Johannes Schönberger def7698cd7 fixed typo in doc string 2012-04-30 09:05:04 +02:00
Johannes Schönberger ffcade8a25 removed unnecessary cast step 2012-04-30 09:04:35 +02:00
Johannes Schönberger a3d336f560 cython implementation of adaptive thresholding replaced with pure python version 2012-04-29 17:49:33 +02:00
Johannes Schönberger 59376a7c20 improved doc string of adaptive threshold with more detailed description and example 2012-04-27 10:00:10 +02:00
Johannes Schönberger 4ad79cb73e replaced unicode characters in doc string 2012-04-25 23:44:06 +02:00
Johannes Schönberger 8b8b6d0d60 added generic method to adaptive thresholding 2012-04-25 23:44:06 +02:00
Johannes Schönberger 243a5ec1c6 clarified comment 2012-04-25 23:44:06 +02:00
Johannes Schönberger aca8522ac4 renamed adaptive_threshold to threshold_adaptive 2012-04-25 23:44:06 +02:00
Johannes Schönberger d0d71427af added mean method to adaptive thresholding 2012-04-25 23:44:06 +02:00
Johannes Schönberger d81650f992 fixed some typos 2012-04-25 23:44:06 +02:00
Johannes Schönberger 238d4eb4ad added adaptive threshold 2012-04-25 23:44:06 +02:00
Tony S Yu 87c2353845 Change API for equalize_hist and cumulative_distribution.
`equalize_hist`: "max_intensity" parameter no longer exists---img_as_float normalizes intensity range

`cumulative_distribution`: Return centers of bins instead of the edges.

Move `histogram` function from filter subpackage.

Add test of equalize_hist

Add example of histogram equalization.
2011-12-22 10:16:32 -08:00
Tony S Yu 756dfd5020 Rename bins parameter to nbins.
This change distinguishes it from the `bins` argument in numpy.histogram, which can accept both the number of bins or a sequence bin edges. Also, this name matches other function parameters in the scikit (e.g. `histograms` in io/_plugins/util.py).
2011-12-12 13:51:27 -05:00
Tony S Yu d9186c90a1 Remove thresholding subpackage and integrate into filter subpackage. 2011-12-11 17:04:46 -05:00