Change to FLARParam in revision 3236

51 views
Skip to first unread message

Makc

unread,
Nov 27, 2009, 7:25:58 PM11/27/09
to flartool...@googlegroups.com
This went unnoticed in some previous thread, but I played with idea,
and it actually makes sense so I committed it.

Basically, from now on instead of

...bunch of code loading camera data file here (or embed declaration)...
param = new FLARParam ();
param.loadARParam (new CameraData);
param.changeScreenSize (320, 240);
...

you can simply write

...
param = new FLARParam ();
param.changeScreenSize (320, 240);
...

From now on, FLARParam constructor sets data corresponding to
saqoosha's camera calibration data file. Those of you who actually
bothered to create your own calibration data file can simply ignore
this, since the old way works just fine.

Now if there's anyone who relied on new FLARParam () doing nothing, we
can add optional Boolean param to enable new behavior, so that new
code would look like
...
param = new FLARParam (true);
param.changeScreenSize (320, 240);
...

but something tells me noone will be interested :)

eric socolofsky

unread,
Nov 28, 2009, 1:51:58 AM11/28/09
to flartool...@googlegroups.com
handy. thanks makc!
Reply all
Reply to author
Forward
0 new messages