mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
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.
This commit is contained in:
@@ -29,8 +29,7 @@ for x, y in target_positions:
|
||||
image[x:x+size, y:y+size] = target
|
||||
image += randn(400, 400)*2
|
||||
|
||||
# Match the template.
|
||||
result = match_template(image, target, method='norm-corr')
|
||||
result = match_template(image, target)
|
||||
|
||||
found_positions = peak_local_max(result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user