Customising other aspects of ARToolKit

From ARToolworks support library

Revision as of 15:29, 20 May 2009 by Philip lamb (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Main Page > ARToolKit Professional > Customising other aspects of ARToolKit

Changing the width of the marker border

The border width is not directly editable. We can change this if its really important. You can use a narrower border but this doesn't make the extra space gained part of the pattern template.. often that's not a problem.

Changing the size of the marker template

The maker template size (the number of pixels sampled in the marker image) IS editable, in include/AR/config.h (or config.h.in if you want to make the change permanent). The values in question are AR_PATT_SIZE_X and AR_PATT_SIZE_Y and AR_PATT_SAMPLE_NUM which (inexplicably) has to be the multiple of the other two.

Using really large images

Large images: if you need to go larger than 1024 pixels in either the horizontal or vertical dimensions of your image, you'll need to adjust the buffer size in arLabeling.c. This limit is removed in ARToolKit Professional v4.3 and later.

Also, if using large images, you may want to edit #define AR_SQUARE_MAX, AR_CHAIN_MAX, and AR_PATT_NUM_MAX in config.h. These influence memory use so are usually set to a conservative minimum.

Views
Personal tools