blob: a8993402c3f42f898e857e2dfde57414e3160a27 (
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
25
|
/********************************
Author: Sravanthi Kota Venkata
********************************/
#include <math.h>
#include "sdvbs_common.h"
I2D* ifDeepCopy(F2D* in)
{
int i, j;
I2D *out;
int rows, cols;
rows = in->height;
cols = in->width;
out = iMallocHandle(rows, cols);
for(i=0; i<rows; i++)
for(j=0; j<cols; j++)
subsref(out,i,j) = (int)(subsref(in,i,j));
return out;
}
|