This message was posted on behalf of Intel Corporation
Thanks for reaching out.
This code is very similar to the other thread that you opened: https://communities.intel.com/thread/114468, in that thread I asked you to provide the Visual Studio solution to test it, but if you want we are going to continue the support here to avoid confusions.
Having said this, I just tested the function QueryVertices in the Projection Sample using breakpoints, and it seems that the function works fine, consider that it has a large amount of pixels and some are zero, so please check all the pixels in the array.
The best recommendation that I can give you is to adapt your code to the function in the sample, but if you still have issues, could you please provide us the Visual Studio solution that you are using? We want to test it under the same conditions as you.
Have a nice day.