MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / select_point

Method select_point

Module/KeypointSelector.py:63–67  ·  view source on GitHub ↗
(self, frame: StereoData, numPoint: int, depth0_est: IStereoDepth.Output, depth1_est: IStereoDepth.Output, match_est: IMatcher.Output | None)

Source from the content-addressed store, hash-verified

61 self.weight = self.weight / self.weight.sum()
62
63 def select_point(self, frame: StereoData, numPoint: int, depth0_est: IStereoDepth.Output, depth1_est: IStereoDepth.Output, match_est: IMatcher.Output | None) -> torch.Tensor:
64 keypoints = []
65 for selector, weight in zip(self.selectors, self.weight):
66 keypoints.append(selector.select_point(frame, int(numPoint * weight), depth0_est, depth1_est, match_est))
67 return torch.cat(keypoints, dim=0)
68
69 @classmethod
70 def is_valid_config(cls, config: SimpleNamespace | None) -> None:

Callers

nothing calls this directly

Calls 1

select_pointMethod · 0.45

Tested by

no test coverage detected