Ask Your Question

Ecku01's profile - activity

2015-11-05 08:02:25 -0600 received badge  Popular Question (source)
2013-03-10 07:47:02 -0600 commented answer one pixel's color

which libraries do you use?

2013-03-10 07:13:10 -0600 commented answer one pixel's color

so I have this code:

include "opencv/cv.h"

include "opencv/highgui.h"

include <stdio.h>

include <iostream>

using namespace std;

int b,g,r;

int main() { CvCapture* capture = cvCaptureFromCAM(0);

if ( !capture ) {

 fprintf( stderr, "ERROR: capture is NULL \n" );

 getchar();

 return -1;

} cvNamedWindow( "mywindow", CV_WINDOW_AUTOSIZE );

  while ( 1 ) {

 IplImage* frame = cvQueryFrame( capture );


 cout &lt;&lt; b &lt;&lt;" " ;

 cout &lt;&lt; g &lt;&lt;" " ;

 cout &lt;&lt; r &lt;&lt; endl;

 cvShowImage( "mywindow", frame );

 if ( (cvWaitKey(10) &amp; 255) == 27 ) break;

}

cvReleaseCapture( &capture );

cvDestroyWindow( "mywindow" );

return 0; }

How can I do this? ( Sorry, I'm very beginner but I must to do it. and thanks for your help.) :)

2013-03-10 06:37:31 -0600 received badge  Editor (source)
2013-03-10 06:36:46 -0600 asked a question one pixel's color

I use color Webcamera and I want to know one pixel's color I'm looking for an opencv function that define one pixel's color. for example:

int RED, GREEN, BLUE;

x=1;

y=1;

RED=RedColorFunction(x,y);

GREEN=GreenColorFunction(x,y);

BLUE=BlueColorFunction(x,y);

so I get the first pixel's color. Do you know similar fuction?