C++AMP Computing gradient using texture on a 16 bit image
I am working with depth images retrieved from kinect which are 16 bits. I found some difficulties on making my own filters due to the index or the size of the images. I am working with Textures because allows to work with any bit size of images. So, I am trying to compute an easy gradient to understand what is wrong or why it doesn't work as I expected. You can see that there is something wrong when I use y dir. For x: For y: That's my code: typedef concurrency::graphics::texture<unsigned int, 2> TextureData; typedef concurrency::graphics::texture_view<unsigned int, 2> Texture cv::Mat image =