From ab481a3922314e61de7bd91ba3825764f66a76ec Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 26 Dec 2023 13:23:41 -0800 Subject: [PATCH] Fix copy-paste --- apriltag/src/main/native/cpp/AprilTag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apriltag/src/main/native/cpp/AprilTag.cpp b/apriltag/src/main/native/cpp/AprilTag.cpp index 12b5b7173b4..99ac81b49cf 100644 --- a/apriltag/src/main/native/cpp/AprilTag.cpp +++ b/apriltag/src/main/native/cpp/AprilTag.cpp @@ -29,7 +29,7 @@ static bool FamilyToImage(wpi::RawFrame* frame, apriltag_family_t* family, bool rv = frame->Reserve(totalDataSize); std::memcpy(frame->data, image->buf, totalDataSize); frame->size = totalDataSize; - frame->width = image->stride; + frame->width = image->width; frame->height = image->height; frame->stride = image->stride; frame->pixelFormat = WPI_PIXFMT_GRAY;