Commit Graph

3708 Commits

Author SHA1 Message Date
Tony S Yu acc35c843b Add comment about code duplication. 2012-05-08 21:28:50 -04:00
Tony S Yu 6272c312c4 Simplify _template.pyx using integral_image from transform subpackage.
Remove `integral_images` and `integral_image_sqr` from _template.pyx in favor of calls to `skimage.transform.integral_image`.

This change required `match_template` arguments ("image" and "template") to be changed from float to double.

After this change, the template test runs about 25% slower.
2012-05-08 21:28:50 -04:00
Tony S Yu 2b368aecb1 Remove unused integral_image function in _template.pyx 2012-05-08 21:28:50 -04:00
Tony S Yu 56611198e4 PEP8: add spacing around operators 2012-05-08 21:28:50 -04:00
Tony S Yu 4ab4213749 Change OpenCV import to make it an optional dependency 2012-05-08 21:28:50 -04:00
Tony S Yu d43049da71 Wrap long lines 2012-05-08 21:28:49 -04:00
Tony S Yu 49349a07c6 Fix copy-paste bug 2012-05-08 21:28:49 -04:00
Tony S Yu 19f1021f60 Clean up docstrings 2012-05-08 21:28:49 -04:00
Tony S Yu ae85fa8b15 Wrap long lines 2012-05-08 21:28:49 -04:00
Tony S Yu b79a8dd437 Update setup file to new repo and fix typos 2012-05-08 21:28:49 -04:00
Tony S Yu f6b279bff7 Fix whitespace 2012-05-08 21:28:49 -04:00
Tony S Yu 424a2b8e52 Remove unused imports 2012-05-08 21:28:49 -04:00
Tony S Yu 23311a0993 Convert template matching Pull Request to skimage
This commit takes the template matching implementation from holtzhau/template (Pull Request #13) and converts the code to use the new package name (scikits.image --> skimage).
2012-05-08 21:28:49 -04:00
tonysyu 085af1d9e5 Merge pull request #184 from stefanv/fast_coordinate_map
Implement fast image warping.
2012-05-08 18:03:07 -07:00
Stefan van der Walt 4524f994e8 ENH: Better formulation of _stackcopy. 2012-05-08 16:21:53 -07:00
Stefan van der Walt 4296597cdf BUG: Temporary workaround for shape offset parameter in radon transform. 2012-05-08 15:43:09 -07:00
Stefan van der Walt 54dc1bb59c STY: Minor cleanups. 2012-05-08 12:26:26 -07:00
Stefan van der Walt feb3e920b1 TST: Increase radon transform threshold to make test more robust. 2012-05-07 14:14:31 -07:00
Stefan van der Walt 52f35313a7 BUG: Fix plugin import on systems without PIL or FreeImage. 2012-05-07 14:06:25 -07:00
Stefan van der Walt 9c13bab887 BUG: Ensure that the appropriate I/O plugin is used in the test suite. 2012-05-07 13:48:56 -07:00
Stefan van der Walt f1ac4f9a09 STY: Move swirl to _warp_zoo so we can add more transforms later. 2012-05-04 12:19:15 -07:00
Stefan van der Walt a5d8593408 STY: Cleanups after Tony's review. 2012-05-04 12:16:05 -07:00
Stefan van der Walt a8e96f9b57 BUG: Fix Python 3 syntax error. 2012-05-03 18:13:55 -07:00
Stefan van der Walt 0cede58828 Merge pull request #182 from tonysyu/threshold-example
DOC: Add example for adaptive thresholding.
2012-05-03 15:30:25 -07:00
Stefan van der Walt 01c7d036aa Merge pull request #186 from holtzhau/radon_fixes
BUG: Fixed padding in radon, iradon. Tests for small images.
2012-05-03 15:27:37 -07:00
Tony S Yu dc6c3d0222 Rename test module to match module. 2012-05-03 17:45:36 -04:00
Tony S Yu 9358d785c3 Add __all__ to grey module. 2012-05-03 17:44:08 -04:00
Tony S Yu 136a020088 Remove unused variable. 2012-05-03 17:42:39 -04:00
Tony S Yu 0edefedc50 Replace import * with import grey. 2012-05-03 17:35:11 -04:00
Tony S Yu 8fb597b141 Fix dtype compatibility for functions in morphology.grey
Cast input images using ``img_as_ubyte``. Note, tests don't currently pass for integer arrays (test skipped).
2012-05-03 16:22:00 -04:00
Tony S Yu 284753a7a4 Make test module runnable. 2012-05-03 16:21:59 -04:00
Tony S Yu cfa9bbfc40 Rename greyscale morphology functions.
Remove "greyscale" prefix on functions in ``morphology.grey``. To avoid confusion (and name clashes), ``greyscale_open`` and ``greyscale_close`` were renamed ``opening`` and ``closing`` (instead of ``open`` and ``close``). As a bonus, these names match scipy.ndimage.
2012-05-03 16:21:59 -04:00
Tony S Yu 29a2fc3c22 Remove unused imports 2012-05-03 16:21:59 -04:00
Tony S Yu 942dd52316 Add "page.png" and use for threshold example. 2012-05-03 12:11:33 -04:00
Pieter Holtzhausen 31e3ab52b3 Fixed padding in radon, iradon. Tests for small images. 2012-05-03 16:36:35 +02:00
Stefan van der Walt e13cc2541f BUG: Fix incorrect import. 2012-05-02 21:34:39 -07:00
Stefan van der Walt 7df3707c33 ENH: Implement fast coordinate transformations. 2012-05-02 21:31:23 -07:00
Tony S Yu cb9f030eb1 Change "text" image to grayscale. 2012-04-30 21:37:41 -04:00
Stefan van der Walt 12669d62e6 BUG: Remove import of non-existent module. 2012-04-30 12:08:02 -07:00
Stefan van der Walt 43193a8b05 Merge pull request #178 from ahojnnes/adaptive-thresholding
ENH: Adaptive thresholding.
2012-04-30 11:11:10 -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
Tony S Yu 3ab6300218 BUG: fix logging for Python < 2.7. 2012-04-28 13:34:47 -04:00
Johannes Schönberger 13c716f5eb changed name of array variable 2012-04-27 10:06:36 +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 829f6ad770 separated filter masks of mean filtering in adaptive thresholding 2012-04-26 20:28:14 +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