Remove the computation of cost for first random depth to another separate kernel. This step is necessary

Signed-off-by: ezheng <ezheng@cs.unc.edu>
fix an important bug in the function downtotop

Signed-off-by: ezheng <ezheng@cs.unc.edu>
change main.cpp to add the output filename

Signed-off-by: ezheng <ezheng@cs.unc.edu>
handle the memory allocation so that it saves half of the memory.

Signed-off-by: ezheng <ezheng@cs.unc.edu>
add the code for global memory amount check.
Next I am going to change the storage for homography transformation from constant memory to texture memory, and also test the speed.

Signed-off-by: ezheng <ezheng@cs.unc.edu>
put the transformation matrix in texture instead of constant memory

Signed-off-by: ezheng <ezheng@cs.unc.edu>
This version uses less shared memory. The speed is a little slower. Some of the content in shared memory is saved in global memory

Signed-off-by: ezheng <ezheng@cs.unc.edu>
check out the shared memory

Signed-off-by: ezheng <ezheng@cs.unc.edu>