Hi
I have successfully integrated ARToolKitPlus in the existing
framework of ARToolKit 2.71. I am using the camera and rendering
libraries included in ARToolKit.
I have a problem with ARToolKitPlus and the image-data received by
arVideoGetImage().
I have created a multi-marker tracker:
tracker = new ARToolKitPlus::TrackerMultiMarkerImpl<8, 8, 8,
ARToolKitPlus::PIXEL_FORMAT_BGRA, 1, 20>(width, width);
And the video-data:
dataptr = arVideoGetImage();
After this, when i make a call to tracker->calc(dataptr), the program
freezes/crashes on windows XP. This only happens if set the pixel
format to PIXEL_FORMAT_BGRA or any other pixel format with alpha
channel. With RGB or LUM the program is stabile but no markers are
rocognized. I am using the standard id-based markers.
1) What pixel/image format does ARToolKitPlus expect? Should i use
ABGR? I know the dataptr contains 32bit pixels in BGRA.
2) How much pre-image processing does ARToolKitPlus do to the image
that it receives? Should I do it myself now?
Regard,
Ole Buus
|