ARToolKit | Mailing List Archive |
![]() |
From: | "Fabian Scheer" <fabian@r .................> | Received: | Jan 13, 2005 |
To | <artoolkit@h ..................> | ||
Subject: | Problem with the size of the Video Image | ||
Hi, my problem is the following: the hard coded size of the video capture is 320x240. But the returned size of the glut window with glutGet(GLUT_WINDOW_HEIGHT) is 640x480. Can anybody explain this to me please? I need this information cause i want to read out some masked pixels of the window, but its a problem to know whicht size to use, cause glReadPixels only works with 320x240 but the buffersize of the camera is 640x480. I didnt get this. Thanks for any help. Fabian |
From: | Philip Lamb <phil@e ..........> | Received: | Jan 13, 2005 |
To | Fabian Scheer <fabian@r .................>, artoolkit@h .................. | ||
Subject: | Re: Problem with the size of the Video Image | ||
At 12:14 AM +0100 13/1/05, Fabian Scheer wrote: >Hi, >my problem is the following: > >the hard coded size of the video capture is 320x240. >But the returned size of the glut window with >glutGet(GLUT_WINDOW_HEIGHT) is 640x480. >Can anybody explain this to me please? > >I need this information cause i want to read out some masked pixels of the >window, but its a problem to know whicht size to use, cause glReadPixels >only works with 320x240 but the buffersize of the camera is 640x480. >I didnt get this. >Thanks for any help. > >Fabian What version of the toolkit, what OS, what camera, and which example code? Regards, Phil |
From: | Philip Lamb <phil@e ..........> | Received: | Jan 13, 2005 |
To | Fabian Scheer <fabian@r .................> | ||
Subject: | Re: Problem with the size of the Video Image | ||
At 12:36 AM +0100 1/13/05, Fabian Scheer wrote: > > At 12:14 AM +0100 13/1/05, Fabian Scheer wrote: >> >Hi, >> >my problem is the following: >> > >> >the hard coded size of the video capture is 320x240. >> >But the returned size of the glut window with >> >glutGet(GLUT_WINDOW_HEIGHT) is 640x480. >> >Can anybody explain this to me please? >> > >> >I need this information cause i want to read out some masked pixels of >the >> >window, but its a problem to know whicht size to use, cause glReadPixels >> >only works with 320x240 but the buffersize of the camera is 640x480. >> >I didnt get this. >> >Thanks for any help. >> > > >Fabian >Version is ARToolkitDirectShow 2.52 vrml >Os is Windows XP >Camera is the unibrain fire-i >Sample Code is the SimpleVRML > >Thanks. >Fabian Fabian, I would recommend trying first the simpleVRML example in ARToolKit 2.70. A lot of code dealing with video input and output has changed (improved hopefully!) since 2.52. If you're still having problems with 2.70, we should be able to help diagnose it a lot more readily. Regards, -- Philip Lamb |