  *	transform should be in form: (single pointer to array in row major form)
  *		cos(theta)	-sin(theta)	t_x
  *		sin(theta)	cos(theta)	t_y
- *		0						0						1
+ *		0			0			1
  */
 __host__ void apply_transform(float *input, float *output, float *transform, 
 		const int width, const int height, int xtrans, int ytrans,

	}

	/* do translation */
	float fetch_x = x + xtrans - transform_info[2];
	float fetch_y = y + ytrans + transform_info[3];

	/* do rotation */


#define rowmajIndex(col, row, width, height) ( ((int) row + height/2)*width + ((int) col + width/2))


/*	
 *	transform_info: cos(angle), sin(angle), trans_x, trans_y
