(cls, config: SimpleNamespace | None)
| 78 | class MappingPointSelector(IKeypointSelector): |
| 79 | @classmethod |
| 80 | def is_valid_config(cls, config: SimpleNamespace | None) -> None: |
| 81 | return cls._enforce_config_spec(config, { |
| 82 | "max_depth": lambda v: isinstance(v, float), |
| 83 | "max_depth_cov": lambda v: isinstance(v, float), |
| 84 | "mask_width": lambda v: isinstance(v, int) |
| 85 | }) |
| 86 | |
| 87 | def select_point(self, frame: StereoData, numPoint: int, depth0_est: IStereoDepth.Output, depth1_est: IStereoDepth.Output, match_est: IMatcher.Output | None) -> torch.Tensor: |
| 88 | assert depth0_est.cov is not None |
nothing calls this directly
no test coverage detected