"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team
Q: extending Trackable or getting grayscaled video frames without trackable classes
By InsooWoo
on Wed, 06/20/2012 - 17:02
I want to implement my own tracking algorithm.
Could you please give me guidance to extend Trackable or to get video frames effectively without using subclasses of Trackable?
Thanks.
I can help you with getting grayscale video frames from the system. The State object contains the camera frame and active trackables that correspond to that frame.
Hello
I'm wondering how I can get the RGB values from the const void * getPixels() callback. I've tried casting the const to different types of arrays without success.
Try this out:
[CODE]
if (image->getFormat() == QCAR::RGB565)
{
// for rbg565, the pixels are stored as an array of shorts
const short* pixels = (const short*) image->getPixels();
// get the first pixel, as a test case
short pixel = pixels[0];
// convert rbg565 short va
I've read Image.h, I hope to find a setPixel() function to process the image in my own algorithm. Of course, I didn't find it. Is there a way to set the pixel value?
If so,I also want to know how to convert short to rgb565
What are your trying to accomplish? You could make a copy of the pixel buffer and make changes, then bind it as a texture and render it yourself (using OpenGL). Look into the following OpenGL methods for more information:
glGenTextures
glBindTexture
glTexImage2D
- Kim
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi
Re: Q: extending Trackable or getting grayscaled video frames wi