Hello,
As a regular reader of OpenCV’s documentation pages, I think they are quite detailed and informative (at least for the parts I read regularly), yet they could probably use some improvements to make them easier to read and navigate. In particular, the formatting is not always consistent throughout a single page, especially regarding references to other functions, argument names or mathematical symbols.
I did not find any rule, advice or example on the Coding Style Guide wiki page, so I wanted to have your opinion about whether we should have at least some recommendations - like naming conventions for C++ code - and what they should be.
As a very short example I would suggest:
- Use
@ref
or\ref
doxygen tags when referring to other API functions to make them clickable links. - Use backticks (``) around parameter names, types or small expressions (like
distCoeffs
,vector<double>
orsrc.size()
) to make them stand out. - Use
@f$
or\f$
doxygen tags around mathematical symbols / formulas so they are displayed nicely using Latex.
I know these “implicit conventions” are already used here and there but not systematically. Some other conventions may be used elsewhere, making the whole documentation quite heterogeneous in this regard. As a first step I am willing to make a proposal to add such a list to the wiki, and then start making some changes in the documentation to implement agreed-upon guidelines.
What do you think?