0
J'essaye de créer un mat opencv à partir d'une SDL_Surface (SDL 1.3). J'ai essayé différentes combinaisons de paramètres mais je n'arrive pas à le faire fonctionner. C'est mon code:Comment convertir une surface SDL1 en un opencv Mat
SDL_Surface test_surf = SDL_SetVideoMode(WIDTH, HEIGHT, 16, SDL_SWSURFACE);
Mat testRGB(WIDTH,HEIGHT,CV_8UC3,test_surf->pixels,test_surf->pitch);