I tried to implement this part of the code in GPU using Cudafy but cudafy does not support bitmap type data. Converting Bitmap data to intarray cause overhead due to large computation.
I tried asking the question in http://stackoverflow.com/q/42037700/6840615 and not getting any help!
How can I implement Bitmap in GPU? Atleast a useful resource would be helpful!
Color temp = InputBitmap.GetPixel(x, y); double R = temp.R; double G = temp.G * 255; double B = temp.B * 255 * 255; double A = temp.A * 255 * 255 * 255; double depthvalue = A + B + G + R;