--0-173111917-1182750651=:14279
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi Victor,
you can specify different marker size :
#define OBJ1_PATT_NAME "Data/patt.hiro"
#define OBJ2_PATT_NAME "Data/patt.kanji"
#define OBJ3_PATT_NAME "Data/patt.a"
#define OBJ1_SIZE 60.0
#define OBJ2_SIZE 60.0
#define OBJ3_SIZE 40.0 <-----
#define OBJ1_MODEL_ID 1
#define OBJ2_MODEL_ID 2
#define OBJ3_MODEL_ID 3
#define NB_MARKER 3
Quaternion * origin;
Quaternion * pHiro;
Quaternion * pKanji;
Quaternion * pA;
Quaternion * tmp;
Camera * camera = new Camera();
double averageTrans[3][4];
double Pnew[3][4];
int nb_visible;
typedef struct {
char *patt_name;
int patt_id;
int model_id;
int visible;
double width;
double center[2];
Quaternion *link;
double trans2Origin[3][4];
double trans[3][4];
} OBJECT_T;
OBJECT_T object[NB_MARKER] = {
{OBJ1_PATT_NAME, -1, OBJ1_MODEL_ID, 0, OBJ1_SIZE, {0.0,0.0}, pHiro},
{OBJ2_PATT_NAME, -1, OBJ2_MODEL_ID, 0, OBJ2_SIZE, {0.0,0.0}, pKanji},
{OBJ3_PATT_NAME, -1, OBJ3_MODEL_ID, 0, OBJ3_SIZE, {0.0,0.0}, pA}
};
my structure object won't be the same as in your exemple but it still show you that you can simply add a marker and if you specify its size different from the other it won't be a problem
Victor Ng-Thow-Hing <victorngthowhing@y ........> a écrit : Message DIV { MARGIN: 0px } Hi,
I noticed in the ARToolkitPlus API that when working in single marker mode, we can only specify only one marker size per tracker.
I would like to consider modifying the code to allow individual markers the ability to specify different marker sizes. Before I start that,
I wanted to confirm if currently there is no way to do this in the existing library.
I would guess that the marker size comes into play when computing the camera pose, but should not be a factor for the detection of the marker and id matching.
Is this true?
Regards,
Victor.
Henry Domis
rainiou@y .......
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
--0-173111917-1182750651=:14279
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi Victor,<br><br>you can specify different marker size :<br><br><span style="color: rgb(0, 127, 64); font-weight: bold;">#define OBJ1_PATT_NAME "Data/patt.hiro"</span><br style="color: rgb(0, 127, 64); font-weight: bold;"><span style="color: rgb(0, 127, 64); font-weight: bold;">#define OBJ2_PATT_NAME "Data/patt.kanji"</span><br style="color: rgb(0, 127, 64); font-weight: bold;"><span style="color: rgb(0, 127, 64); font-weight: bold;">#define OBJ3_PATT_NAME "Data/patt.a"<br><br style="color: rgb(0, 127, 64); font-weight: bold;"></span><span style="color: rgb(0, 127, 64); font-weight: bold;">#define OBJ1_SIZE 60.0</span><br style="color: rgb(0, 127, 64); font-weight: bold;"><span style="color: rgb(0, 127, 64); font-weight: bold;">#define OBJ2_SIZE 60.0</span><br style="color: rgb(0, 127, 64);
font-weight: bold;"><span style="color: rgb(0, 127, 64); font-weight: bold;">#define OBJ3_SIZE 40.0 <-----</span><br style="color: rgb(0, 127, 64);"><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">#define OBJ1_MODEL_ID 1</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">#define OBJ2_MODEL_ID 2</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">#define OBJ3_MODEL_ID 3</span><br style="color: rgb(0, 127, 64);"><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">#define NB_MARKER 3</span><br style="color: rgb(0, 127, 64);"><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">Quaternion * origin;</span><br style="color:
rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">Quaternion * pHiro;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">Quaternion * pKanji;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">Quaternion * pA;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">Quaternion * tmp;</span><br style="color: rgb(0, 127, 64);"><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">Camera * camera = new Camera();</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">double averageTrans[3][4];</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">double Pnew[3][4];</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">int nb_visible;</span><br style="color: rgb(0, 127, 64);"><br style="color: rgb(0, 127, 64);"><span
style="color: rgb(0, 127, 64);">typedef struct {</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> char *patt_name;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> int patt_id;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> int model_id;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> int visible;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> double width;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> double center[2];</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> Quaternion *link;</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> double
trans2Origin[3][4];</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> double trans[3][4];</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">} OBJECT_T;</span><br style="color: rgb(0, 127, 64);"><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">OBJECT_T object[NB_MARKER] = {</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> {OBJ1_PATT_NAME, -1, OBJ1_MODEL_ID, 0, OBJ1_SIZE, {0.0,0.0}, pHiro},</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> {OBJ2_PATT_NAME, -1, OBJ2_MODEL_ID, 0, OBJ2_SIZE, {0.0,0.0}, pKanji},</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);">
{OBJ3_PATT_NAME, -1, OBJ3_MODEL_ID, 0, OBJ3_SIZE, {0.0,0.0}, pA}</span><br style="color: rgb(0, 127, 64);"><span style="color: rgb(0, 127, 64);"> };<br><br><br><span style="color: rgb(0, 0, 0);">my structure object won't be the same as in your exemple but it still show you that you can simply add a marker and if you specify its size different from the other it won't be a problem</span><br></span><br><b><i>Victor Ng-Thow-Hing <victorngthowhing@y ........></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><title>Message</title> <style type="text/css">DIV { MARGIN: 0px } </style> <meta content="MSHTML 6.00.6000.16481" name="GENERATOR"> <div><span class="546262705-25062007">Hi,</span></div> <div><span class="546262705-25062007">I noticed in the
ARToolkitPlus API that when working in single marker mode, we can only specify only one marker size per tracker.</span></div> <div><span class="546262705-25062007">I would like to consider modifying the code to allow individual markers the ability to specify different marker sizes. Before I start that,</span></div> <div><span class="546262705-25062007">I wanted to confirm if currently there is no way to do this in the existing library.</span></div> <div><span class="546262705-25062007"></span> </div> <div><span class="546262705-25062007"><font color="#0000ff" face="Arial" size="2">I would guess that the marker size comes into play when computing the camera pose, but should not be a factor for the detection of the marker and id matching.</font></span></div> <div><span class="546262705-25062007"><font color="#0000ff" face="Arial" size="2">Is this true?</font></span></div> <div><span class="546262705-25062007"><font color="#0000ff" face="Arial"
size="2"></font></span> </div> <div><span class="546262705-25062007"><font color="#0000ff" face="Arial" size="2">Regards,</font></span></div> <div><span class="546262705-25062007"><font color="#0000ff" face="Arial" size="2">Victor.</font></span></div></blockquote><br><BR><BR><DIV><STRONG><FONT face=arial size=-1>Henry Domis</FONT></STRONG></DIV> <DIV><A href="mailto:rainiou@y ......."><FONT face=arial size=-1>rainiou@y .......</FONT></A></DIV> <DIV> </DIV><p> 
<hr size="1">
Ne gardez plus qu'une seule adresse mail ! <a href="http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</a> vers Yahoo! Mail
--0-173111917-1182750651=:14279--
|