window name doesn't match
Hi all,
I been facing this problem for a long time and still have yet to solve it. As you can see in the image link= http://i.stack.imgur.com/pUZ35.png, the windows name is something like "-ka" BUT my program clearly named the window as "My Image".
I am now already doing more adavance stuff like splitting of image, etc, but my project supervisor asking me about this, yet I do not know the reason behind it. Can anyone help? Thanks.
btw, stick to the c++ api, prefer imread() over cvLoadImage()
Try to change to Release and also the *.libs (for example change opencv_corexxxd.lib --> opencv_corexxx.lib)
@albertofernandez, many thanks. That was the solution. It was also the solution to why I couldn't use imread but have to use cvLoadImage() in the first place. Is there any place where I can learn about the difference between both debug and release mode? Thanks!!!
This cannot be the correct solution in my opinion. I have working code in debug and in release mode, with correct working namedWindows. Also the imread function works perfectly. Can you state your system, configuration, openCV version, ... ?
@StevenPuttemans, sorry for the late reply. That is weird, my problem was solved after running in release mode. My system is Windows 8, I am using OpenCV 2.3 and MS Visual Studio C++.
Do you have any idea what could be the reason? So that I can learn and improve myself to help others next time.
Actually, if this error persists, then a bug report should be created at the development page. However, using OpenCV2.3 is asking for problems, we are at version 2.4.6 now which contains tons of bugfixes, also one which should solve this problem. So please before posting a bugreport, go get the latest version and see if it persists. You should always use latest stable release when possible. I have windows 7 x64, visual studio 2010 and openCV 2.4.6 and it works in both release and debug mode without errors.
@StevenPuttemans, Noted with thanks. Will sudden change in the version affect my previous programs? I just have to update all my include, library directory, etc, only right?
If your program is done correctly, changing versions should have almost zero effect. There are only a few cases where some functionality has changed module.