From 1b37a3d71dabc451f48f05fce7ce2d300212c43c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 12 Sep 2013 15:04:26 +0100 Subject: BGR2RGB for thumbnails --- rotord/src/graph.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rotord/src/graph.h') diff --git a/rotord/src/graph.h b/rotord/src/graph.h index 6ade53e..6a2fc2d 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -73,7 +73,9 @@ namespace Rotor { if (player.fetchFrame(w,h,player.getNumberOfFrames()/4)) { Image i; i.setup_fromRGB(w,h,player.frame->Data[0],player.frame->Linesize[0]-(w*3)); - cv::imwrite(outputfilename.c_str(),i.rgb); + cv::Mat cp; + cvtColor(i.rgb,cp,CV_RGB2BGR); + cv::imwrite(outputfilename.c_str(),cp); return true; } -- cgit v1.2.3