Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Code

Code

Ratings: (0)|Views: 132|Likes:
Published by Hoang Vu Hieu
code
code

More info:

Published by: Hoang Vu Hieu on Mar 08, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

03/08/2013

pdf

text

original

 
**C code**#include "opencv\cv.h"#include "opencv\highgui.h"int main(){IplImage* myimage;int RGBstep,i,j;int RGBchannels;int Height, Width,count;FILE *imgfile;char fname[10],fname1[10];unsigned char temp1,temp2,temp3;int key = 0;CvCapture* capture = cvCaptureFromAVI("a.avi");count=0;while( key != 'x' ){myimage = cvQueryFrame( capture );count++;if( !myimage ) break;cvNamedWindow("Smile", 1);cvMoveWindow("Smile", 100, 100);cvShowImage("Smile", myimage);Height = myimage -> height;Width = myimage -> width;RGBstep = myimage ->widthStep;RGBchannels = myimage -> nChannels;sprintf(fname1,"Img%d.txt",count);imgfile = fopen(fname1,"w");for ( i = 0; i < Height; i++) for (j = 0; j < Width; j++)

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->