opened
varunagrawal
username_0
When the ChamferMatcher object is deconstructed, it tries deleting the templates attached to it during the `matching` function. The templates are already deleted by the Template deconstructor though, and thus an error. Hence I have commented out the delete operation in the Template deconstructor.
Fix for missing templates when ChamferMatcher is deconstructed.
issue
created
mshabunin
username_1
@username_0 , this solution can not be accepted because it will create memory leak. The `Matching` class creates templates in the `addTemplateFromImage` method and since it owns them - it should delete them. More code should be rewritten to correctly handle memory allocations in this algorithm.

If you have an advanced fix please create new PR, because this one is broken.
comment