#nftSimple - NFT Example

##About nftSimple nftSimple is an application that demonstrates natural feature tracking (NFT) alongside very simple rendering. When an NFT surface is recognized, the familiar color cube (also as rendered in the simpleLite example) will be drawn at the origin of the dataset’s coordinate system.

For developers who are already familiar with the code of simpleLite, it will be useful to do a side-by-side comparison of the code of nftSimple. The basic flow of program operations (grab a frame, track markers, render) is very similar, however there are significant changes in how the marker information is handled, as well as the control flow in the tracking loop.

The NFT data set loaded by nftSimple is specified in the file “bin/Data2/markers.dat”. This is a simple text file that specifies the number of markers, their type, and the path to their data. As supplied, this file points to the sample “pinball” dataset (an image of a pinball play surface), provided in ARToolKit/bin/DataNFT. This directory contains the required image set and feature sets. The original image file, pinball.jpg, is available in the directory path of [ARToolKit root]/doc/Marker images/.


####Print out the jpeg file on a color printer
[ARToolKit root]/doc/Marker images/pinball.jpg

The image is 1637 pixels wide and 2048 pixels high, with a resolution of 220 dots per inch (dpi). When printed at 1:1 scaling, its printed size should be 189.0 mm wide and 236.5 mm tall. This should fit comfortably onto a single sheet of A4 paper (210 mm x 297 mm) or US Letter paper (215.9 mm × 279.4 mm).

If instead you wish to print the image on smaller paper, the image can either be cropped top and bottom, or scaled to fit. Cropping will maintain correct distance measurements in ARToolKit, at the cost of perhaps losing some of the tracking points, whereas scaling will result in measurements returned by ARToolKit being scaled by the same amount.

####Connect your webcam.

##Launch nftSimple Windows/Mac OS X: double click the “nftSimple” application in ARToolKit’s bin directory.
Linux: from a terminal, cd to [ARToolKit root]/bin and type: ./nftSimple.

####Operation Once the application is running, point the camera at the image.

KPM example

The tracking should rapidly pick up the image. Once the image is recognized, the color cube will be drawn at the origin of the page’s coordinate system.