Skip to content

[BUG] Add MatchType support info for match_template in documentation #302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
duducv opened this issue Nov 17, 2021 · 1 comment · Fixed by #314
Closed

[BUG] Add MatchType support info for match_template in documentation #302

duducv opened this issue Nov 17, 2021 · 1 comment · Fixed by #314
Assignees
Milestone

Comments

@duducv
Copy link

duducv commented Nov 17, 2021

arrayfire: 3.8.0;
OS: Windows;
cmd operation: Cargo build;

I'm trying to use a function match_template, however when I choose matchType ::SHD or matchType ::NCC
the compiler closes with the following error:

thread 'main' panicked at 'Error message: One of the function arguments is incorrect
Last error: In function af_err __cdecl af_match_template(void **,void *const ,void *const ,const af_match_type)
In file src\api\c\match_template.cpp:42
Invalid argument at index 3
Expected: (m_type >= AF_SAD && m_type <= AF_LSSD)
0# af::array::host in afcuda
1# af::array::host in afcuda
2# af::array::host in af

@duducv duducv changed the title [Build] [Build]match_template function not accept MacthType NCC or SHD Nov 17, 2021
@duducv duducv changed the title [Build]match_template function not accept MacthType NCC or SHD [BUG]match_template function not accept MacthType NCC or SHD Nov 17, 2021
@9prady9
Copy link
Member

9prady9 commented Nov 29, 2021

@duducv Sorry about the inconvenience. Not all error metrics are implemented for image comparison. SHD and NCC are one of them. Hence, the message indicates the same. This is the current limitation in upstream.

I am changing the issue title to change the docs to reflect the limitation.

@9prady9 9prady9 changed the title [BUG]match_template function not accept MacthType NCC or SHD [BUG] Add MatchType support info for match_template in documentation Nov 29, 2021
@9prady9 9prady9 added Docs and removed Build labels Nov 29, 2021
@9prady9 9prady9 added this to the 3.8.1 milestone Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants