HD camera

Asked by Freuk

Hi,
I have got a probleme with Artoolkit plus 2.2.1
it works fine still I use camera resolution with a 4/3 aspect ratio
but when a I use a HD ratio 1,7 1920X1080
the X coord of the marker are out of space when the marker move out of the middle of the screen to the right

I didn't see any constant or function dealing with aspect ratio in the code

can you point me to right place to make some modification so it can deal with HD resolution ?

thanks a lot for your help

Question information

Language:
English Edit question
Status:
Solved
For:
ARToolKitPlus Edit question
Assignee:
No assignee Edit question
Solved by:
Freuk
Solved:
Last query:
Last reply:
Revision history for this message
Freuk (frc-54) said :
#1

I found the problem

this is due to store of distortion LUT in 16 bit short integer
in the file paramDistortion.cpp

Revision history for this message
Meach lala (meach) said :
#2

Hi!
I am running in the same problem and unfortunately my knowledge is not good enough to understand what I should modify in the file paramDistortion.cpp

A bit more information on how his problem was solved would be great!

Revision history for this message
Freuk (frc-54) said :
#3

Hello,
It was sometimes ago and I can't remember exactly what and where was the problem
I joint you my directory containing the mods, hope this will help you

-----Message d'origine-----
De : <email address hidden> [mailto:<email address hidden>] De la part de Meach lala
Envoyé : jeudi 7 mars 2013 14:31
À : <email address hidden>
Objet : Re: [Question #160544]: HD camera

Your question #160544 on ARToolKitPlus changed:
https://answers.launchpad.net/artoolkitplus/+question/160544

Meach lala posted a new comment:
Hi!
I am running in the same problem and unfortunately my knowledge is not good enough to understand what I should modify in the file paramDistortion.cpp

A bit more information on how his problem was solved would be great!

--
You received this question notification because you asked the question.

Revision history for this message
Freuk (frc-54) said :
#4

Oups joins didn't work .
can you use this link instead

https://cloud.recherche.enac.fr/public.php?service=files&t=31c3ce1d0dfda7c1a1874b61c4ee9596

after a short review of the code : the trouble was in the LUT represantion of 16 bit short
I replace the short interger by a LUT_Type
typedef struct _LUT_Type
  { ARFloat x, y; }
 LUT_Type;
 in Tracker.h
and in paramDistortion.cpp

Revision history for this message
aldo quario (aldofk) said :
#5

hi, thank you for this post, this solved my problem.
UNFORTUNATELY, THIS IS NOT INCLUDED IN 2.3.0
do you plan to include this in future release?
thanks

afk