Skip to content

Conversation

csukuangfj
Copy link
Contributor

This pullrequest changes

BadModelOrChSeq= -14, //!<
BadNumChannels= -15, //!<
BadNumChannels= -15, //!< bad number of channels
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably it is "not wrong", neither "invalid" or "bad" - current value is usually "not supported"/"unsupported" by current implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the information from https://github.com/opencv/opencv/blob/master/modules/core/src/system.cpp#L764

In this case, does the function cvErrorStr also need to be updated, returning "supported/unsupported" ?

@vpisarev
Copy link
Contributor

@csukuangfj, since you've started it, can you please also add comments to all other error codes?

@vpisarev vpisarev self-assigned this Mar 23, 2017
@csukuangfj
Copy link
Contributor Author

@vpisarev
Thank you for the review.

I have added comments to every enums that are used in the source code.

Some of the enums are defined but never used and I do not understand its exact meaning, so they are left
uncommented.

@vpisarev
Copy link
Contributor

vpisarev commented May 3, 2017

👍

@opencv-pushbot opencv-pushbot merged commit da94d85 into opencv:master May 3, 2017
@csukuangfj csukuangfj deleted the patch-fix-error-code-documentation branch May 21, 2017 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants