Skip to content
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

bug in vxCreateThresholdForImage() ? #20

Open
daunclestone opened this issue Feb 11, 2020 · 0 comments
Open

bug in vxCreateThresholdForImage() ? #20

daunclestone opened this issue Feb 11, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@daunclestone
Copy link

when it detects bad thresh_type, bad input_format or bad output_format it calls
threshold = (vx_threshold )ownGetErrorObject(context, VX_ERROR_INVALID_TYPE);
but afterwards it will overwrite 'threshold' with the following call
threshold = (vx_threshold)ownCreateReference(context, VX_TYPE_THRESHOLD, VX_EXTERNAL, &context->base);

is it a bug? this behavior is different from that of vxCreateThreshold(). In vxCreateThreshold() when it detects bad data_type or threshold_type, it will call
threshold = (vx_threshold )ownGetErrorObject(context, VX_ERROR_INVALID_TYPE);
and subsequently return that 'threshold' object.

@kiritigowda kiritigowda self-assigned this Mar 25, 2020
@kiritigowda kiritigowda assigned jessegv and unassigned kiritigowda Jul 2, 2020
@kiritigowda kiritigowda added the bug Something isn't working label Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants