__init__.pyi 1.7 KB

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