I installed OpenCV on my older Ubuntu machine today. Now I wanted to try this library once. That's why I wanted to try the following code:
#include <stdio.h>
#include <opencv2/opencv.hpp>
using namespace cv;
int main(int argc, char** argv )
{
if ( argc != 2 )
{
printf("usage: DisplayImage.out <Image_Path>\n");
return -1;
}
Mat image;
image = imread( argv[1], 1 );
if ( !image.data )
{
printf("No image data \n");
return -1;
}
namedWindow("Display Image", WINDOW_AUTOSIZE );
imshow("Display Image", image);
waitKey(0);
return 0;
}
But he does not really work. Because I get the following error message:
FATAL ERROR:
This OpenCV build doesn't support current CPU/HW configuration
Use OPENCV_DUMP_CONFIG=1 environment variable for details
Required baseline features:
SSE - OK
SSE2 - NOT AVAILABLE
OpenCV Error: Assertion failed (Missing support for required CPU baseline features.)
Thank you for your help!