summaryrefslogtreecommitdiff
path: root/rotord/cvimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/cvimage.h')
-rw-r--r--rotord/cvimage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rotord/cvimage.h b/rotord/cvimage.h
index 81233a0..2f9ed3b 100644
--- a/rotord/cvimage.h
+++ b/rotord/cvimage.h
@@ -87,6 +87,9 @@ namespace Rotor {
h=0;
ownsRGBdata=ownsAdata=ownsZdata=false;
}
+ int getStride(){
+ return w*3;
+ }
bool setup(int _w,int _h){ //set up with internal data
rgb.create(_h,_w,CV_8UC3);
RGBdata=rgb.data; //can move to use the bare pointer eventually