Below code is used to convert an OpenCV Mat image into SFML image. How to convert SFML image back to Mat image?
cv::Mat frameBGR, frameBGRA; sf::Image image;
cv::cvtColor(frameBGR,frameRGBA, cv::COLOR_BGR2RGBA);
image.create(frameRGBA.cols, frameRGBA.rows, frameRGBA.ptr());
If texture or sprite can't be converted to OpenCV Mat,then is it possible to convert sf::Image to OpenGL and convert it back to cv::Mat
sf::Texture texture;
sf::Event event;
sf::Sprite sprite;
texture.loadFromImage(image);
sprite.setTexture(texture);