Computes disparity maps for the input rectified stereo pair

C# | Visual Basic | Visual C++ |
public static void cvFindStereoCorrespondenceGC( IntPtr left, IntPtr right, IntPtr dispLeft, IntPtr dispRight, ref MCvStereoGCState state, int useDisparityGuess )

- left (IntPtr)
- The left single-channel, 8-bit image
- right (IntPtr)
- The right image of the same size and the same type
- dispLeft (IntPtr)
- The optional output single-channel 16-bit signed left disparity map of the same size as input images.
- dispRight (IntPtr)
- The optional output single-channel 16-bit signed right disparity map of the same size as input images
- state ( MCvStereoGCState %)
- Stereo correspondence structure
- useDisparityGuess (Int32)
- If the parameter is not zero, the algorithm will start with pre-defined disparity maps. Both dispLeft and dispRight should be valid disparity maps. Otherwise, the function starts with blank disparity maps (all pixels are marked as occlusions)