In OpenCV stereo, how do you check whether a given 3D point (x,y,z) can be projected onto a left/right image plane? I have calibrated camera parameters obtained by stereoRectify.
More specifically, I'd like to use projectPoints with "valid" 3D points. I'd like to remove invalid points from the original set of 3D points.
Thanks!
edited@2016-05-06
Regarding the "validity": I found that projectPoints returned very strange values when I gave some 3D points that were definitely outer area of the image. For example points on a big cone surface defined in 3D were not correctly converted to points on the image as I expected.