/******************************** Author: Sravanthi Kota Venkata ********************************/ #include "sdvbs_common.h" F2D* imageResize(F2D* imageIn) { int m, k, rows, cols; F2D *imageOut; I2D *kernel; float tempVal; int kernelSize, startCol, endCol, halfKernel, startRow, endRow, i, j, kernelSum; int outputRows, outputCols; F2D *temp; rows = imageIn->height; cols = imageIn->width; // level 1 is the base image. outputRows = floor((rows+1)/2); outputCols = floor((cols+1)/2); temp = fSetArray(rows, outputCols, 0); imageOut = fSetArray(outputRows, outputCols, 0); kernel = iMallocHandle(1, 5); asubsref(kernel,0) = 1; asubsref(kernel,1) = 4; asubsref(kernel,2) = 6; asubsref(kernel,3) = 4; asubsref(kernel,4) = 1; kernelSize = 5; kernelSum = 16; startCol = 2; endCol = cols - 2; halfKernel = 2; startRow = 2; endRow = rows - 2; for(i=startRow; i