Pixel2ray function with pinhole camera

I’m thinking maybe some impact from the issue mentioned in the topic.