diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-12 15:04:26 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-12 15:04:26 +0100 |
| commit | 1b37a3d71dabc451f48f05fce7ce2d300212c43c (patch) | |
| tree | bc1a56e95b63f94d39cc22585914f9145be51f4f /rotord/src/graph.h | |
| parent | fd2cdacf49b101658de7e0a624c84897a398e62e (diff) | |
BGR2RGB for thumbnails
Diffstat (limited to 'rotord/src/graph.h')
| -rw-r--r-- | rotord/src/graph.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |
