shimat / opencvsharp

OpenCV wrapper for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InputArray.Create() for Point3d

three-cups opened this issue · comments

Summary of your issue

InputArray.Create<Point3d>() API returns type CV_32FC3.

Environment

Windows 11
Visual Studio 2022
NuGet package, OpenCvSharp4.Windows 4.8.0.20230708

What did you do when you faced the problem?

Example code:

Point3d[] Src = new Point3d[1];
InputArray Dst = InputArray.Create(Src);
Debug.WriteLine(Dst.GetMat().Type());

Output:

CV_32FC3

What did you intend to be?

It returns CV_32FC3, but I'm expecting CV_64FC3.
Or there is other reasons?

https://github.com/shimat/opencvsharp/blob/a52ac58887f0ed612229f94d227c579a42d5653d/src/OpenCvSharp/Modules/core/InputArray.cs#L572C17-L572C17