#include #include "utouch/match.h" int main (int argc, char *argv[]) { int dist[32*32] = { 2, 1, 3, 1, 5, 2, 0, 6, }; int mapping[32] = { 0, }; int i; int nrow = 4; int ncol = 2; mtdev_match (mapping, dist, nrow, ncol); for (i = 0; i < 32; i++) printf ("%3d, ", mapping[i]); printf ("\n"); return 0; }