windows: disabled cuda on ci to avoid incompatible driver issue. Fixing a bad test mem allocation

This commit is contained in:
matlabbe
2026-06-12 18:44:47 -07:00
parent 9e3e3b6b3b
commit d5e27d3e7a
2 changed files with 10 additions and 47 deletions
+3 -2
View File
@@ -1280,9 +1280,10 @@ TEST(Util3dTest, GetMinMax3D) {
// Test with a laser scan that contains only 2D data (no Z values)
TEST(Util3dTest, GetMinMax3DCVPoint3f2DData) {
// Create a 2x3 CV matrix of type CV_32FC2 (2D points)
// Create a 1x2 CV matrix of type CV_32FC2 (2D points)
cv::Mat laserScan(1, 2, CV_32FC2);
float data[6] = {1.0f, 2.0f, 4.0f, 5.0f}; // No Z values
// 2 points * 2 channels = 4 floats.
float data[4] = {1.0f, 2.0f, 4.0f, 5.0f}; // No Z values
memcpy(laserScan.data, data, sizeof(data));
cv::Point3f min, max;