MCPcopy Create free account
hub / github.com/PRBonn/MapClosures / PixelHash

Class PixelHash

cpp/map_closures/GroundAlign.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43using LinearSystem = std::pair<Eigen::Matrix3d, Eigen::Vector3d>;
44
45struct PixelHash {
46 size_t operator()(const Eigen::Vector2i &pixel) const {
47 const uint32_t *vec = reinterpret_cast<const uint32_t *>(pixel.data());
48 return (vec[0] * 73856093 ^ vec[1] * 19349669);
49 }
50};
51
52void TransformPoints(const Sophus::SE3d &T, Vector3dVector &pointcloud) {
53 std::transform(pointcloud.cbegin(), pointcloud.cend(), pointcloud.begin(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected