(self, frame: StereoData, numPoint: int, depth0_est: IStereoDepth.Output, depth1_est: IStereoDepth.Output, match_est: IMatcher.Output | None)
| 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: |
nothing calls this directly
no test coverage detected