Ask Your Question
1

Problem with math symbols in opencv-3.0.0 documentation

asked 2015-06-22 12:22:29 -0600

dslate1 gravatar image

I built opencv-3.0.0 on a an X86_64 computer (Linux lyta4 3.13.0-53-generic #88-Ubuntu SMP Wed May 13 18:10:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux) running Ubuntu 14.04.2 LTS. The build succeeded and OpenCV seems to work. The documentation was also built. Here is its configuration in the build log:

-- Documentation: -- Doxygen: /usr/bin/doxygen (ver 1.8.6) -- PlantUML: NO

I am able to view the documentation using Mozilla Firefox 38.0, but the "math markup" symbols, such as "\times", are not rendered but just displayed as is, e.g.:

In all cases except one, the (\texttt{ksize} \times \texttt{ksize})

Does anyone know what I can do to cause these symbols to be converted to the appropriate graphics for display?

edit retag flag offensive close merge delete

Comments

Do you have MikTex (or LaTeX) installed on your machine?

unxnut gravatar imageunxnut ( 2015-06-22 18:46:17 -0600 )edit

Sorry, all the lines in my comment above got run together, and I don't know how to fix that.

dslate1 gravatar imagedslate1 ( 2015-06-23 11:01:42 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
4

answered 2015-06-24 03:53:45 -0600

mshabunin gravatar image

updated 2015-06-24 03:54:21 -0600

Doxygen documentation uses mathjax for rendering (https://www.mathjax.org/). The default location is set to online source (cdn.mathjax.org). Probably you have JS turned off in your browser, or no Internet connection.

To build fully local documentation you need either to use local mathjax script either to generate formula images with LaTeX.

To use first method, first download mathjax scripts, second modify opencv/doc/Doxyfile.inand set corresponding option (http://www.stack.nl/~dimitri/doxygen/...). Than regenerate your documentation (make doxygen) and put mathjax to the configured relative path.

To use second method, first install LaTeX for your system, second modify opencv/doc/Doxyfile.in and set USE_MATHJAX to NO. Than regenerate your documentation.

edit flag offensive delete link more

Comments

Thanks, that was the problem. I was building opencv on an offline machine. Since I already had LaTeX installed, I changed USE_MATHJAX to NO in doc/Doxyfile.in, rebuilt the documentation, and now the math symbols are properly displayed.

dslate1 gravatar imagedslate1 ( 2015-06-24 16:24:05 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-06-22 12:22:29 -0600

Seen: 397 times

Last updated: Jun 24 '15