Updated by Andrey Kamaev about 13 years ago
In C++, after creating a window with @cv::namedWindow@, cv::namedWindow, the behavior behaviour of the standard function @sprintf@ sprintf regarding decimal numbers changes. Specifically, the decimal separator character changes from a point '.' to a comma ',' in my case. My first impression is that it has to do with some locale settings.
I attach an example file that formats a number before and after calling @cv::namedWindow@. cv::namedWindow. I am using Ubuntu in Spanish (the decimal separator is the comma ','). The output I get is:
<pre>
343.904804
343,904804
</pre>
My system:
* OpenCV - [[OpenCV]] 2.1.0
* - gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
* - Linux 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
* - Gnome 2.30.2 (compilation date: 2010-06-25)
* - Localization: Spanish (Spain)
I attach an example file that formats a number before and after calling @cv::namedWindow@. cv::namedWindow. I am using Ubuntu in Spanish (the decimal separator is the comma ','). The output I get is:
<pre>
343.904804
343,904804
</pre>
My system:
* OpenCV - [[OpenCV]] 2.1.0
* - gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
* - Linux 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
* - Gnome 2.30.2 (compilation date: 2010-06-25)
* - Localization: Spanish (Spain)