(cls, value: dict[str, np.ndarray])
| 116 | |
| 117 | @classmethod |
| 118 | def deserialize(cls, value: dict[str, np.ndarray]) -> Self: |
| 119 | map = cls() |
| 120 | map.frames = map.frames.deserialize("frames/", value) |
| 121 | map.match = map.match.deserialize("match/", value) |
| 122 | map.points = map.points.deserialize("points/", value) |
| 123 | |
| 124 | map.frame2match = map.frame2match.deserialize("edge/frame2match", value) |
| 125 | map.point2match = map.point2match.deserialize("edge/point2match", value) |
| 126 | map.match2point = map.match2point .deserialize("edge/match2point", value) |
| 127 | map.match2frame1 = map.match2frame1.deserialize("edge/match2frame1", value) |
| 128 | map.match2frame2 = map.match2frame2.deserialize("edge/match2frame2", value) |
| 129 | map.frame2map = map.frame2map.deserialize("edge/frame2map", value) |
| 130 | return map |
| 131 | |
| 132 | def __repr__(self) -> str: |
| 133 | return f"VisualMap(#frame={len(self.frames)}, #point={len(self.points)}, #map={len(self.map_points)})" |
nothing calls this directly
no outgoing calls
no test coverage detected