summaryrefslogtreecommitdiff
path: root/rotord/cvimage.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-07-26 17:06:55 +0100
committerTim Redfern <tim@herge.(none)>2013-07-26 17:06:55 +0100
commit7092eaaae3e844a68804b8a6b6825381e9a81443 (patch)
tree2d65ea068c5bc6c678f9dc3e2c456a6f6b15b83d /rotord/cvimage.h
parent6f7be98c7289aedd9e45f9fafcc67ac6348cebf2 (diff)
cairo library and first drawing node
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