@@ -15,7 +15,7 @@ struct rerun::CollectionAdapter<rerun::Position3D, std::vector<Eigen::Vector3f>>
15
15
return Collection<rerun::Position3D>::borrow (container.data (), container.size ());
16
16
}
17
17
18
- // Do a full copy for temporaries (otherwise the data will be deleted when the temporary is destroyed).
18
+ // Do a full copy for temporaries (otherwise the data might be deleted when the temporary is destroyed).
19
19
Collection<rerun::Position3D> operator ()(std::vector<Eigen::Vector3f>&& container) {
20
20
std::vector<rerun::Position3D> positions (container.size ());
21
21
memcpy (positions.data (), container.data (), container.size () * sizeof (Eigen::Vector3f));
@@ -42,7 +42,7 @@ struct rerun::CollectionAdapter<rerun::Position3D, Eigen::Matrix3Xf> {
42
42
);
43
43
}
44
44
45
- // Do a full copy for temporaries (otherwise the data will be deleted when the temporary is destroyed).
45
+ // Do a full copy for temporaries (otherwise the data might be deleted when the temporary is destroyed).
46
46
Collection<rerun::Position3D> operator ()(Eigen::Matrix3Xf&& matrix) {
47
47
std::vector<rerun::Position3D> positions (matrix.cols ());
48
48
memcpy (positions.data (), matrix.data (), matrix.size () * sizeof (rerun::Position3D));
@@ -62,7 +62,7 @@ struct rerun::CollectionAdapter<uint8_t, cv::Mat> {
62
62
return Collection<uint8_t >::borrow (img.data , img.total () * img.channels ());
63
63
}
64
64
65
- // Do a full copy for temporaries (otherwise the data will be deleted when the temporary is destroyed).
65
+ // Do a full copy for temporaries (otherwise the data might be deleted when the temporary is destroyed).
66
66
Collection<uint8_t > operator ()(cv::Mat&& img) {
67
67
assert (
68
68
" OpenCV matrix was expected have bit depth CV_U8" && CV_MAT_DEPTH (img.type ()) == CV_8U
@@ -75,11 +75,10 @@ struct rerun::CollectionAdapter<uint8_t, cv::Mat> {
75
75
};
76
76
77
77
// Adapter for extracting tensor dimensions from an OpenCV matrix.
78
- // TODO(https://github.com/rerun-io/rerun/pull/4331): remove `datatypes::`
79
78
template <>
80
- struct rerun ::CollectionAdapter<rerun::datatypes:: TensorDimension, cv::Mat> {
79
+ struct rerun ::CollectionAdapter<rerun::TensorDimension, cv::Mat> {
81
80
// / Only overload the const& operator since there is no way of borrowing the dimensions anyways.
82
- Collection<rerun::datatypes:: TensorDimension> operator ()(const cv::Mat& img) {
81
+ Collection<rerun::TensorDimension> operator ()(const cv::Mat& img) {
83
82
return {
84
83
static_cast <size_t >(img.rows ),
85
84
static_cast <size_t >(img.cols ),
0 commit comments