shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.22k stars 1.13k forks source link

InputArray.Create() for Point3d #1630

Closed three-cups closed 5 months ago

three-cups commented 6 months ago

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

shimat commented 5 months ago

Sorry for the delay in responding, thank you. This issue will be resolved in #1637.