Commit Graph

17 Commits

Author SHA1 Message Date
Johannes Schönberger 3172f508d6 Use typed memoryviews in feature package 2013-08-17 22:35:13 +02:00
Johannes Schönberger 62d83ad42c Globally change np to cnp if cimported 2013-02-24 14:14:14 +01:00
Johannes Schönberger 614023b941 Replace ssize_t with Py_ssize_t globally 2013-02-22 17:05:38 +01:00
Johannes Schönberger 6026ddd9a2 Change type to ssize_t for all index and size variables 2013-02-22 17:03:12 +01:00
Johannes Schönberger 7247384882 Add integrate function to shared package 2012-08-21 08:59:29 +02:00
Tony S Yu ad99285bc0 Prevent match_template from returning NaNs. 2012-05-08 21:32:08 -04:00
Tony S Yu b2006da346 Change flipud/fliplr to array indexing. 2012-05-08 21:32:08 -04:00
Tony S Yu 5d79537566 Fix convolution input to get correlation results. 2012-05-08 21:32:07 -04:00
Tony S Yu 7caf85a5c1 Renaming for clarity. 2012-05-08 21:32:07 -04:00
Tony S Yu f21f032bfe Add normalization test and remove unnecessary clipping. 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 753e999a7a Minor cleanup
* Rename some variables.
* Delete some old comments.
* Move some variable initializations to the top of the function.
2012-05-08 21:32:07 -04:00
Tony S Yu 883dd24cdb Fix bug when indexing into summed-area table. 2012-05-08 21:32:07 -04:00
Tony S Yu 3c7ae849b9 Remove unnecessary truncation at boundary. 2012-05-08 21:32:06 -04:00
Tony S Yu 545bdab985 Refactor template matching.
* Change Cython function to take names of correlation method instead of numbers representing the methods.

* Use alternate formula for `template_norm` of 'norm-corr' method, but note that both formulas need to be checked for correctness.

* Add note that `match_template` output has a different shape than the input image. This needs to be fixed before merging.

* Change 'Sigma' to 'Sum' in docstring to avoid confusion with standard deviation.

* Other minor changes for readability.
2012-05-08 21:32:06 -04:00
Tony S Yu 2a00e24b12 Change _template.match_template variables to float.
Template and image in test are converted to float32 before passing to `match_template`. This change is temporary: `match_template` should convert these variables internally.
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