/******************************** Author: Sravanthi Kota Venkata ********************************/ #include "sdvbs_common.h" I2D* iSortIndices(I2D* in, int dim) { I2D *sorted; int rows, cols, i, j, k, temp; I2D *ind; rows = in->height; cols = in->width; sorted = iDeepCopy(in); ind = iMallocHandle(rows, cols); for(i=0; i