This project is read-only.

Marker Jerkyness

Oct 15, 2009 at 6:47 PM

the ground marker works great, but the tool bar markers seam to be very jerky mostly with the rotational axis's, is there any way to solve that?

Coordinator
Oct 15, 2009 at 9:11 PM

Hi kdodman,

Since the tool bar only has two markers on it, the tracking tend to be quite jerky when using ARTag. ARTag performs better when there are multiple visible markers. With the new release (which will be posted shortly), ALVAR does much better job with fewer markers. There are pros and cons between ARTag and ALVAR.

Ohan

Oct 17, 2009 at 7:11 PM

I'm trying to make some new markers to solve this problem. I like the size of the toolbar ones so I would like to keep them, 2 inchs by 4inchs ish. But I'm having issues with the markerlayout program you have made. It seams to make everything massive, even if I change the pixels per ich down to 0.1f or so. I dont want a 40 by 40 inch marker lol. 

And another note, I generated a pile of artag marker images, but when i use those i seam to get an error when running your program.

"Your crop area's X position is outside of the marker size" or the X demension error. the only thing I change is the image it loads. and from what I can tell the images I generated are the same dimensions as the ones you have in there. 

 

Coordinator
Oct 17, 2009 at 7:54 PM

Can you send me your code and a few images you're using?

If you want to make things small, you should use larger pixels per inch setting. If the marker size is 100 pixels and you set pixels per inch to 0.1f, then it means it's 1000 inches big.

Ohan

Oct 17, 2009 at 7:55 PM
Edited Oct 17, 2009 at 7:58 PM
I figured out the marker image issue, VS just hadnt copied the images to the debug dir yet. And i figured out the pixels per inch issue too, that was my own stupidity there LOL.
This is what I ended up with. My goal was to have it print nicely on a 5 x 3 inch index card. 
I think I have it all figured out, but I dont quite get what the * 170 is for yet?
  LayoutManager layout = new LayoutManager(500, 300, 10);

            layout.BeginCoordframe("Card1", 6);

            int[] array1 = { 20, 21 };

            int[] array2 = { 22, 23 };

            int[] array3 = { 24, 25 };



            int[][] marker_arrays = new int[3][];

            marker_arrays[0] = array1;

            marker_arrays[1] = array2;

            marker_arrays[2] = array3;

            Rectangle cropArea = new Rectangle(50, 50, 100, 100);

            for (int j = 0; j < 3; j++)

            {

                for (int i = 0; i < 2; i++)

                layout.AddMarker(marker_arrays[j][i], new Point(10+j * 170, 10+i * 170),

                      cropArea, "raw_markers/ARTag/" + marker_arrays[j][i] + ".pgm");

            }

 

 

 

 

Coordinator
Oct 18, 2009 at 2:52 PM

Great.

170 is there to give extra white space between the markers.

Ohan