Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputArray.Create() for Point3d #1630

Closed
three-cups opened this issue Dec 13, 2023 · 1 comment · Fixed by #1637
Closed

InputArray.Create() for Point3d #1630

three-cups opened this issue Dec 13, 2023 · 1 comment · Fixed by #1637
Labels
bug Something isn't working

Comments

@three-cups
Copy link

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 added a commit that referenced this issue Jan 2, 2024
@shimat shimat mentioned this issue Jan 2, 2024
@shimat shimat added the bug Something isn't working label Jan 2, 2024
@shimat
Copy link
Owner

shimat commented Jan 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants