Browse Source

More test.

UWP10
Canming Huang 13 years ago
parent
commit
740bc4d66e
  1. 10
      Emgu.CV.Test/AutoTestImage.cs
  2. 11
      Emgu.CV.Test/AutoTestVarious.cs

10
Emgu.CV.Test/AutoTestImage.cs

@ -1103,6 +1103,16 @@ namespace Emgu.CV.Test
}
}
[Test]
public void TestThreshold2()
{
using (Image<Gray, short> image = new Image<Gray, short>(1024, 960))
{
image.SetRandUniform(new MCvScalar(short.MinValue), new MCvScalar(short.MaxValue));
image.ThresholdBinary(new Gray((short.MinValue + short.MaxValue) / 2), new Gray(short.MaxValue));
}
}
[Test]
public void TestBgra()
{

11
Emgu.CV.Test/AutoTestVarious.cs

@ -2030,6 +2030,17 @@ namespace Emgu.CV.Test
}
}
[Test]
public void TestRotationMatrix()
{
Size dstImageSize;
using (RotationMatrix2D<float> rotationMatrix = RotationMatrix2D<float>.CreateRotationMatrix(new System.Drawing.PointF(320, 240), -90, new Size(640, 480), out dstImageSize))
{
Trace.WriteLine("com.aurora.lens", String.Format("dstSize: {0}x{1}", dstImageSize.Width, dstImageSize.Height));
Trace.WriteLine("com.aurora.lens", String.Format("rotationMat: [ [{0}, {1}, {2}], [{3}, {4}, {5}] ]", rotationMatrix.Data[0, 0], rotationMatrix.Data[0, 1], rotationMatrix.Data[0, 2], rotationMatrix.Data[1, 0], rotationMatrix.Data[1, 1], rotationMatrix.Data[1, 2]));
}
}
[Test]
public void TestImageDecodeBuffer()
{

Loading…
Cancel
Save