stereoMatching
2nd June 2012, 21:35
os : win7 64bits
compiler : mingw4.6.2
qt version : qt4.8.1(the dll and and the lib haven't rebuild by mingw4.6.2)
#include <QtGui/QApplication>
#include <QtGui/QImage>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QImage src("../GIL_with_Qt/images_00/lena/lena.jpg");
src = src.convertToFormat(QImage::Format(3) );
QImage dst(src.size(), src.format());
dst.save("E:/lena/lena_Format_Indexed8.jpg");
return a.exec();
}
This will cause the program crash, what kind of mistake do I make?
Thank you very much
compiler : mingw4.6.2
qt version : qt4.8.1(the dll and and the lib haven't rebuild by mingw4.6.2)
#include <QtGui/QApplication>
#include <QtGui/QImage>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QImage src("../GIL_with_Qt/images_00/lena/lena.jpg");
src = src.convertToFormat(QImage::Format(3) );
QImage dst(src.size(), src.format());
dst.save("E:/lena/lena_Format_Indexed8.jpg");
return a.exec();
}
This will cause the program crash, what kind of mistake do I make?
Thank you very much