From 512cd1f386b40a6539663bcda987b851cbc8ba7f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 12 Jul 2013 17:38:21 +0100 Subject: linesize issue --- rotord/cvimage.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rotord/cvimage.h') diff --git a/rotord/cvimage.h b/rotord/cvimage.h index a538d4e..cbf2840 100644 --- a/rotord/cvimage.h +++ b/rotord/cvimage.h @@ -105,10 +105,11 @@ namespace Rotor { else return false; */ } - bool setup_fromRGB(int _w,int _h,uint8_t *pRGBdata){ + bool setup_fromRGB(int _w,int _h,uint8_t *pRGBdata,int linepadding=0){ //here the data belongs to libavcodec or other //could move to using cv::Mat there also and just passing cv:Mat over - rgb=cv::Mat(_w,_h,CV_8UC3,pRGBdata); + std::cerr<<"creating cv::Mat with step= "<<((_w*3)+linepadding)<