1 | initial version |
if you read the docs , it says:
"A simple Hausdorff distance measure between shapes defined by contours"
in other words, it expects contours (e.g. from findContours) as input, not plain images.
please also have a look at samples/cpp/shape_example.cpp.