By vl1131
on Wed, 06/20/2012 - 17:04
Hi,
I'm trying to project marker coordinates and to export them to java. I think there's something on camera calibration and pose matrix I don't understand.
When i try to project the frame vertices of the marker with this code, there's always a variable offset: it seems like I'm not using correct camera calibration, perhaps.
Only when the device is normal to the frame i get the marker correctly framed.
[CODE]
const QCAR::Tracker& tracker = QCAR::Tracker::getInstance();
const QCAR::CameraCalibration& cameraCalibration = tracker.getCameraCalibration();
QCAR::Vec2F mrkrsize = marker->getSize();
float mposx = mrkrsize.data[0];
float mposy= mrkrsize.data[1];
QCAR::Vec2F screenPoint1 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F(0, +mposy/2, 0));
QCAR::Vec2F screenPoint2 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F(0, -mposy/2, 0));
QCAR::Vec2F screenPoint3 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F(mposx, posy/2, 0));
QCAR::Vec2F screenPoint4 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F(mposx, -mposy/2, 0));[/CODE]
Re: Error projecting point on the screen.
Re: Error projecting point on the screen.
Re: Error projecting point on the screen.
Re: Error projecting point on the screen.
Error projecting point on the screen.
Hi,
I'm using this code to get the center point of the trackable and I'm having trouble with the landscape mode.
It's always moved a little to the bottom left :-(
I'm testing this on an iPad 2 BTW
Error projecting point on the screen.
To get the center point of the trackable in screen space?
Error projecting point on the screen.
Exactly
UPDATE: Actually I was looking for the AR overlay frame but the tracker would work too :-)
Error projecting point on the screen.
Error projecting point on the screen.
Thank you, that's great.
What should I put in inView:(CGFloat *)matrix parameter?
Error projecting point on the screen.
Hi,
I am working on the project, where is need to display some overlay image at certain point of trackable image, like "attaching" i.e. when trackable changes position overlay image also should change position accordingly.
Error projecting point on the screen.
Hi, I'm also working on it. First , forgive my pool English.