KhronosGroup / OpenVX-api-docs

OpenVX API and extension specification documents
Other
15 stars 9 forks source link

MatchTemplate function #3

Open egorovp opened 5 years ago

egorovp commented 5 years ago

Problem:

Error in the dimensions of the output map in CTS(OpenVX Conformance Test Suite).

Quote from standard:

The output of the template matching node is a comparison map. The output comparison map should be the same size as the input image.

Why in CTS the output map has following dimensions:

result_width = source_width - template_width + 1 , result_height = source_height - template_height + 1

instead of (source_width, source_height) ?

Links:

  1. Standard
  2. Conformance Tests
fbrill3 commented 5 years ago

Still looking at this one--please be patient. 😃

fbrill3 commented 5 years ago

The spec seems to have stated it wrong. Sliding the template within the image will result in the width/height as calculated in the CTS. This is how it is derived in Sample Implementation as well (see vxCalculateBufferSizes() in kernels/c_model/c_matchtemplate.c). The spec needs to be corrected.

egorovp commented 5 years ago

@fbrill3, thank you for your responses. Looking forward to update