/******************************** Author: Sravanthi Kota Venkata ********************************/ #include "stitch.h" I2D* matchFeatures(F2D* vecF1, F2D* vecF2) { int m, n, n1, n2, n1c, n2c, i, j; I2D *id, *retMatch, *t; F2D *val, *temp; int rows, cols; n1 = vecF1->height; n1c = vecF1->width; n2 = vecF2->height; n2c = vecF2->width; retMatch = iMallocHandle(1, 2); for(i=0; iheight + 1; cols = t->width; retMatch = iMallocHandle(rows, cols); n = 0; for(m=0; m<(t->height*t->width); m++) { asubsref(retMatch,n++) = asubsref(t,m); } asubsref(retMatch,n++) = i; asubsref(retMatch,n) = asubsref(id,0); } } return retMatch; }