Пример #1
0
 /// <summary>
 /// Create a stereoBMState
 /// </summary>
 /// <param name="type">ID of one of the pre-defined parameter sets. Any of the parameters can be overridden after creating the structure.</param>
 /// <param name="numberOfDisparities">The number of disparities. If the parameter is 0, it is taken from the preset, otherwise the supplied value overrides the one from preset. </param>
 public StereoBM(CvEnum.STEREO_BM_TYPE type, int numberOfDisparities)
 {
     _ptr = CvInvoke.cvCreateStereoBMState(type, numberOfDisparities);
      State = (MCvStereoBMState) Marshal.PtrToStructure(_ptr, typeof(MCvStereoBMState));
 }
Пример #2
0
 public static extern void cvFindStereoCorrespondenceBM(
     IntPtr left,
     IntPtr right,
     IntPtr disparity,
     ref MCvStereoBMState state);