AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Wrong Values from TransformationMatrix

Forum to discuss Glyph Recognition And Tracking Framework project, its features, applications, etc.

Wrong Values from TransformationMatrix

Postby ErgoAR » Wed Apr 02, 2014 2:47 pm

Hi,

i'm using the GRATF framework in combination with Direct Show, to get the Transformation Matrix of some glyphs from a camera-captured image.

I've noticed, that ExtractedGlyphData.TransformationMatrix() returns wrong values for Translation (not 0 in case of a centred glyph in a camera-captured image) . So when i apply the transformationmatrix to my 3D-Object, the Object gets a wrong position.

Any ideas how i can fix that?
ErgoAR
 
Posts: 2
Joined: Tue Apr 01, 2014 7:50 am

Re: Wrong Values from TransformationMatrix

Postby andrew.kirillov » Wed Apr 02, 2014 8:52 pm

Hello,

From I what I remember, the POSIT (and CoPOSIT) algorithms require specifying real object size (the one you set in GRATF user interface). Did you set it correctly? Also there is focal length property. See docs.

And more about 3D pose estimation
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3243
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: Wrong Values from TransformationMatrix

Postby ErgoAR » Thu Apr 03, 2014 1:57 am

your second hint led me to the solution. my problem was the imageSize and focalLength property of my GlyphTracker instance.
thank you very much
ErgoAR
 
Posts: 2
Joined: Tue Apr 01, 2014 7:50 am




Return to GRATF

cron