Browse Source

Add float depth support for StereoBM.FindStereoCorrespondence

git-svn-id: https://emgucv.svn.sourceforge.net/svnroot/emgucv/trunk@711 d7f09016-e345-0410-b530-edf29a71df78
UWP10
canming 16 years ago
parent
commit
527d94aec7
  1. 13
      Emgu.CV/StereoBM.cs

13
Emgu.CV/StereoBM.cs

@ -34,11 +34,24 @@ namespace Emgu.CV
/// <param name="left">The left single-channel, 8-bit image</param>
/// <param name="right">The right image of the same size and the same type</param>
/// <param name="disparity">The output single-channel 16-bit signed disparity map of the same size as input images. Its elements will be the computed disparities, multiplied by 16 and rounded to integer's</param>
/// <remarks>Invalid pixels (for which disparity can not be computed) are set to (state-&gt;minDisparity-1)*16</remarks>
public void FindStereoCorrespondence(Image<Gray, Byte> left, Image<Gray, Byte> right, Image<Gray, Int16> disparity)
{
CvInvoke.cvFindStereoCorrespondenceBM(left, right, disparity, ref State);
}
/// <summary>
/// Computes disparity map for the input rectified stereo pair.
/// </summary>
/// <param name="left">The left single-channel, 8-bit image</param>
/// <param name="right">The right image of the same size and the same type</param>
/// <param name="disparity">The output single-channel 16-bit signed disparity map of the same size as input images. Its elements will be the computed disparities, multiplied by 16 and rounded to integer's</param>
/// <remarks>Invalid pixels (for which disparity can not be computed) are set to state-&gt;minDisparity - 1 </remarks>
public void FindStereoCorrespondence(Image<Gray, Byte> left, Image<Gray, Byte> right, Image<Gray, float> disparity)
{
CvInvoke.cvFindStereoCorrespondenceBM(left, right, disparity, ref State);
}
/// <summary>
/// Release the stereo state and all the memory associate with it
/// </summary>

Loading…
Cancel
Save