U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » OpenCV
Re: OpenCV [message #32646 is a reply to message #32614] Tue, 31 May 2011 08:10 Go to previous messageGo to previous message
GaroRobe is currently offline  GaroRobe
Messages: 30
Registered: May 2011
Location: Khabarovsk, Russia
Member

Well, as far as I can see in given example only opencv v1 was used. I use 2.2 (opencv2 API).

No fuctional yet, just exploring:

#include <opencv2/opencv.hpp>
#include <CtrlLib/CtrlLib.h>
using namespace Upp;

void proto1::FileOpenClick()
{
	selectDlg.ExecuteOpen();
	IplImage* img = cvLoadImage(~selectDlg); 
}


Gives erros:

Quote:

c:\upp\uppsrc\core\config.h(97) : warning C4005: '_CRT_SECURE_NO_DEPRECATE' : macro redefinition
C:\OpenCV2.2\include\opencv2/core/types_c.h(47) : see previous definition of '_CRT_SECURE_NO_DEPRECATE'
C:\MyApps\proto1\main.cpp(20) : error C2040: 'img' : 'IplImage *' differs in levels of indirection from 'Upp::Image'
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Printing without dialog
Next Topic: How to resize an image without the default filter
Goto Forum:
  


Current Time: Tue Oct 27 15:28:33 GMT+1 2026

Total time taken to generate the page: 0.04195 seconds