__init__.pyi 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. # Classes
  6. class IntelligentScissorsMB:
  7. # Functions
  8. def __init__(self) -> None: ...
  9. def setWeights(self, weight_non_edge: float, weight_gradient_direction: float, weight_gradient_magnitude: float) -> IntelligentScissorsMB: ...
  10. def setGradientMagnitudeMaxLimit(self, gradient_magnitude_threshold_max: float = ...) -> IntelligentScissorsMB: ...
  11. def setEdgeFeatureZeroCrossingParameters(self, gradient_magnitude_min_value: float = ...) -> IntelligentScissorsMB: ...
  12. def setEdgeFeatureCannyParameters(self, threshold1: float, threshold2: float, apertureSize: int = ..., L2gradient: bool = ...) -> IntelligentScissorsMB: ...
  13. @_typing.overload
  14. def applyImage(self, image: cv2.typing.MatLike) -> IntelligentScissorsMB: ...
  15. @_typing.overload
  16. def applyImage(self, image: cv2.UMat) -> IntelligentScissorsMB: ...
  17. @_typing.overload
  18. def applyImageFeatures(self, non_edge: cv2.typing.MatLike, gradient_direction: cv2.typing.MatLike, gradient_magnitude: cv2.typing.MatLike, image: cv2.typing.MatLike | None = ...) -> IntelligentScissorsMB: ...
  19. @_typing.overload
  20. def applyImageFeatures(self, non_edge: cv2.UMat, gradient_direction: cv2.UMat, gradient_magnitude: cv2.UMat, image: cv2.UMat | None = ...) -> IntelligentScissorsMB: ...
  21. def buildMap(self, sourcePt: cv2.typing.Point) -> None: ...
  22. @_typing.overload
  23. def getContour(self, targetPt: cv2.typing.Point, contour: cv2.typing.MatLike | None = ..., backward: bool = ...) -> cv2.typing.MatLike: ...
  24. @_typing.overload
  25. def getContour(self, targetPt: cv2.typing.Point, contour: cv2.UMat | None = ..., backward: bool = ...) -> cv2.UMat: ...