__init__.pyi 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class Params:
  7. frameSize: cv2.typing.Size
  8. intr: cv2.typing.Matx33f
  9. rgb_intr: cv2.typing.Matx33f
  10. depthFactor: float
  11. bilateral_sigma_depth: float
  12. bilateral_sigma_spatial: float
  13. bilateral_kernel_size: int
  14. pyramidLevels: int
  15. tsdf_min_camera_movement: float
  16. lightPose: cv2.typing.Vec3f
  17. icpDistThresh: float
  18. icpAngleThresh: float
  19. icpIterations: _typing.Sequence[int]
  20. truncateThreshold: float
  21. # Functions
  22. @classmethod
  23. def defaultParams(cls) -> Params: ...
  24. @classmethod
  25. def coarseParams(cls) -> Params: ...
  26. @classmethod
  27. def hashTSDFParams(cls, isCoarse: bool) -> Params: ...
  28. class LargeKinfu:
  29. # Functions
  30. @classmethod
  31. def create(cls, _params: Params) -> LargeKinfu: ...
  32. @_typing.overload
  33. def render(self, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  34. @_typing.overload
  35. def render(self, image: cv2.UMat | None = ...) -> cv2.UMat: ...
  36. @_typing.overload
  37. def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  38. @_typing.overload
  39. def render(self, cameraPose: cv2.typing.Matx44f, image: cv2.UMat | None = ...) -> cv2.UMat: ...
  40. @_typing.overload
  41. def getCloud(self, points: cv2.typing.MatLike | None = ..., normals: cv2.typing.MatLike | None = ...) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
  42. @_typing.overload
  43. def getCloud(self, points: cv2.UMat | None = ..., normals: cv2.UMat | None = ...) -> tuple[cv2.UMat, cv2.UMat]: ...
  44. @_typing.overload
  45. def getPoints(self, points: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  46. @_typing.overload
  47. def getPoints(self, points: cv2.UMat | None = ...) -> cv2.UMat: ...
  48. @_typing.overload
  49. def getNormals(self, points: cv2.typing.MatLike, normals: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  50. @_typing.overload
  51. def getNormals(self, points: cv2.UMat, normals: cv2.UMat | None = ...) -> cv2.UMat: ...
  52. def reset(self) -> None: ...
  53. @_typing.overload
  54. def update(self, depth: cv2.typing.MatLike) -> bool: ...
  55. @_typing.overload
  56. def update(self, depth: cv2.UMat) -> bool: ...