13 Commits

Author SHA1 Message Date
Johannes Schönberger d0ee6ade61 Fix inconsistencies in examples and many more improvements 2013-04-27 16:47:33 +02:00
Tony S Yu 3c3c95b406 DOC: Replace template example with alternate example.
And remove other alternate example.
2012-05-08 21:32:09 -04:00
Tony S Yu 94262bc8d6 Tweak example to reduce confusion.
Set background 1 so that the template has values equally-above and -below the mean image value. This change makes the template results left-right symmetric, which may reduce confusion.
2012-05-08 21:32:07 -04:00
Tony S Yu 5682d27eb0 Rewrite normalization algorithm.
This is a major revision that removes the `method` parameter of `match_template` and uses a new normalization method.

Note that the example result is different with this new normalization.
2012-05-08 21:32:07 -04:00
Tony S Yu a87bcb2d73 DOC: demonstrate where the template is matched in an image. 2012-05-08 21:32:06 -04:00
Tony S Yu 425a4ea707 Use feature.peak_local_max instead of custom peak detection. 2012-05-08 21:32:06 -04:00
Tony S Yu e8461e22dd Move template matching to feature subpackage 2012-05-08 21:32:05 -04:00
Tony S Yu 01d66fc501 Reorganize example so that all plotting code is at the end 2012-05-08 21:28:50 -04:00
Tony S Yu e6098e140b Replace assert statement with plot to show matches 2012-05-08 21:28:50 -04:00
Tony S Yu 12b39dae5c Fix assert failure in example 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 f8e0478542 Remove dependency on math module 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