本文整理匯總了C#中OpenCvSharp.CPlusPlus.Mat.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# Mat.ToString方法的具體用法?C# Mat.ToString怎麽用?C# Mat.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OpenCvSharp.CPlusPlus.Mat
的用法示例。
在下文中一共展示了Mat.ToString方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Run
private static void Run()
{
var dm = DescriptorMatcher.Create("BruteForce");
dm.Clear();
Console.WriteLine(Cv2.GetCudaEnabledDeviceCount());
string[] algoNames = Algorithm.GetList();
Console.WriteLine(String.Join("\n", algoNames));
SIFT al1 = Algorithm.Create<SIFT>("Feature2D.SIFT");
string[] ppp = al1.GetParams();
Console.WriteLine(ppp);
var t = al1.ParamType("contrastThreshold");
double d = al1.GetDouble("contrastThreshold");
t.ToString();
d.ToString();
var src = new Mat("img/lenna.png");
var rand = new Random();
var memory = new List<long>(100);
var a1 = new Mat(src, Rect.FromLTRB(0, 0, 30, 40));
var a2 = new Mat(src, Rect.FromLTRB(0, 0, 30, 40));
var a3 = new Mat(src, Rect.FromLTRB(0, 0, 30, 40));
a3.ToString();
for (long i = 0;; i++)
{
SIFT a = Algorithm.Create<SIFT>("Feature2D.SIFT");
a.ToString();
for (int j = 0; j < 200; j++)
{
int c1 = rand.Next(100, 400);
int c2 = rand.Next(100, 400);
Mat temp = src.Row[c1];
src.Row[c1] = src.Row[c2];
src.Row[c2] = temp;
}
memory.Add(MyProcess.WorkingSet64);
if (memory.Count >= 100)
{
double average = memory.Average();
Console.WriteLine("{0:F3}MB", average / 1024.0 / 1024.0);
memory.Clear();
GC.Collect();
}
}
}