summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/c/fCopy.c
blob: f9b844d203f8dcaf3b75a2a6db538c4331986484 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/********************************
Author: Sravanthi Kota Venkata
********************************/

#include "sdvbs_common.h"

F2D* fCopy(F2D* in, F2D* out)
{
    int i, j;
    //F2D* out;
    int rows, cols;
    
    rows = in->height;
    cols = in->width;

    //out = fMallocHandle(rows, cols);
    
    for(i=0; i<rows; i++) {
        for(j=0; j<cols; j++) {
            subsref(out,i,j) = subsref(in,i,j);
		}
   	} 
    return out;
}