Creates the stereo correspondence structure and initializes it. It is possible to override any of the parameters at any time between the calls to cvFindStereoCorrespondenceBM

C# | Visual Basic | Visual C++ |
public static IntPtr cvCreateStereoBMState( STEREO_BM_TYPE type, int numberOfDisparities )
Public Shared Function cvCreateStereoBMState ( _ type As STEREO_BM_TYPE, _ numberOfDisparities As Integer _ ) As IntPtr
public: static IntPtr cvCreateStereoBMState( STEREO_BM_TYPE type, int numberOfDisparities )

- type (STEREO_BM_TYPE)
- ID of one of the pre-defined parameter sets. Any of the parameters can be overridden after creating the structure.
- numberOfDisparities (Int32)
- The number of disparities. If the parameter is 0, it is taken from the preset, otherwise the supplied value overrides the one from preset.

Pointer to the stereo correspondece structure