__init__.pyi 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import typing as _typing
  5. from cv2.ximgproc import segmentation as segmentation
  6. # Enumerations
  7. THINNING_ZHANGSUEN: int
  8. THINNING_GUOHALL: int
  9. ThinningTypes = int
  10. """One of [THINNING_ZHANGSUEN, THINNING_GUOHALL]"""
  11. BINARIZATION_NIBLACK: int
  12. BINARIZATION_SAUVOLA: int
  13. BINARIZATION_WOLF: int
  14. BINARIZATION_NICK: int
  15. LocalBinarizationMethods = int
  16. """One of [BINARIZATION_NIBLACK, BINARIZATION_SAUVOLA, BINARIZATION_WOLF, BINARIZATION_NICK]"""
  17. DTF_NC: int
  18. DTF_IC: int
  19. DTF_RF: int
  20. GUIDED_FILTER: int
  21. AM_FILTER: int
  22. EdgeAwareFiltersList = int
  23. """One of [DTF_NC, DTF_IC, DTF_RF, GUIDED_FILTER, AM_FILTER]"""
  24. ARO_0_45: int
  25. ARO_45_90: int
  26. ARO_90_135: int
  27. ARO_315_0: int
  28. ARO_315_45: int
  29. ARO_45_135: int
  30. ARO_315_135: int
  31. ARO_CTR_HOR: int
  32. ARO_CTR_VER: int
  33. AngleRangeOption = int
  34. """One of [ARO_0_45, ARO_45_90, ARO_90_135, ARO_315_0, ARO_315_45, ARO_45_135, ARO_315_135, ARO_CTR_HOR, ARO_CTR_VER]"""
  35. FHT_MIN: int
  36. FHT_MAX: int
  37. FHT_ADD: int
  38. FHT_AVE: int
  39. HoughOp = int
  40. """One of [FHT_MIN, FHT_MAX, FHT_ADD, FHT_AVE]"""
  41. HDO_RAW: int
  42. HDO_DESKEW: int
  43. HoughDeskewOption = int
  44. """One of [HDO_RAW, HDO_DESKEW]"""
  45. SLIC: int
  46. SLICO: int
  47. MSLIC: int
  48. SLICType = int
  49. """One of [SLIC, SLICO, MSLIC]"""
  50. WMF_EXP: int
  51. WMF_IV1: int
  52. WMF_IV2: int
  53. WMF_COS: int
  54. WMF_JAC: int
  55. WMF_OFF: int
  56. WMFWeightType = int
  57. """One of [WMF_EXP, WMF_IV1, WMF_IV2, WMF_COS, WMF_JAC, WMF_OFF]"""
  58. EdgeDrawing_PREWITT: int
  59. EDGE_DRAWING_PREWITT: int
  60. EdgeDrawing_SOBEL: int
  61. EDGE_DRAWING_SOBEL: int
  62. EdgeDrawing_SCHARR: int
  63. EDGE_DRAWING_SCHARR: int
  64. EdgeDrawing_LSD: int
  65. EDGE_DRAWING_LSD: int
  66. EdgeDrawing_GradientOperator = int
  67. """One of [EdgeDrawing_PREWITT, EDGE_DRAWING_PREWITT, EdgeDrawing_SOBEL, EDGE_DRAWING_SOBEL, EdgeDrawing_SCHARR, EDGE_DRAWING_SCHARR, EdgeDrawing_LSD, EDGE_DRAWING_LSD]"""
  68. # Classes
  69. class DisparityFilter(cv2.Algorithm):
  70. # Functions
  71. @_typing.overload
  72. def filter(self, disparity_map_left: cv2.typing.MatLike, left_view: cv2.typing.MatLike, filtered_disparity_map: cv2.typing.MatLike | None = ..., disparity_map_right: cv2.typing.MatLike | None = ..., ROI: cv2.typing.Rect = ..., right_view: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  73. @_typing.overload
  74. def filter(self, disparity_map_left: cv2.UMat, left_view: cv2.UMat, filtered_disparity_map: cv2.UMat | None = ..., disparity_map_right: cv2.UMat | None = ..., ROI: cv2.typing.Rect = ..., right_view: cv2.UMat | None = ...) -> cv2.UMat: ...
  75. class DisparityWLSFilter(DisparityFilter):
  76. # Functions
  77. def getLambda(self) -> float: ...
  78. def setLambda(self, _lambda: float) -> None: ...
  79. def getSigmaColor(self) -> float: ...
  80. def setSigmaColor(self, _sigma_color: float) -> None: ...
  81. def getLRCthresh(self) -> int: ...
  82. def setLRCthresh(self, _LRC_thresh: int) -> None: ...
  83. def getDepthDiscontinuityRadius(self) -> int: ...
  84. def setDepthDiscontinuityRadius(self, _disc_radius: int) -> None: ...
  85. def getConfidenceMap(self) -> cv2.typing.MatLike: ...
  86. def getROI(self) -> cv2.typing.Rect: ...
  87. class EdgeDrawing(cv2.Algorithm):
  88. # Classes
  89. class Params:
  90. PFmode: bool
  91. EdgeDetectionOperator: int
  92. GradientThresholdValue: int
  93. AnchorThresholdValue: int
  94. ScanInterval: int
  95. MinPathLength: int
  96. Sigma: float
  97. SumFlag: bool
  98. NFAValidation: bool
  99. MinLineLength: int
  100. MaxDistanceBetweenTwoLines: float
  101. LineFitErrorThreshold: float
  102. MaxErrorThreshold: float
  103. # Functions
  104. def __init__(self) -> None: ...
  105. def read(self, fn: cv2.FileNode) -> None: ...
  106. def write(self, fs: cv2.FileStorage) -> None: ...
  107. # Functions
  108. @_typing.overload
  109. def detectEdges(self, src: cv2.typing.MatLike) -> None: ...
  110. @_typing.overload
  111. def detectEdges(self, src: cv2.UMat) -> None: ...
  112. @_typing.overload
  113. def getEdgeImage(self, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  114. @_typing.overload
  115. def getEdgeImage(self, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  116. @_typing.overload
  117. def getGradientImage(self, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  118. @_typing.overload
  119. def getGradientImage(self, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  120. def getSegments(self) -> _typing.Sequence[_typing.Sequence[cv2.typing.Point]]: ...
  121. def getSegmentIndicesOfLines(self) -> _typing.Sequence[int]: ...
  122. @_typing.overload
  123. def detectLines(self, lines: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  124. @_typing.overload
  125. def detectLines(self, lines: cv2.UMat | None = ...) -> cv2.UMat: ...
  126. @_typing.overload
  127. def detectEllipses(self, ellipses: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  128. @_typing.overload
  129. def detectEllipses(self, ellipses: cv2.UMat | None = ...) -> cv2.UMat: ...
  130. def setParams(self, parameters: EdgeDrawing.Params) -> None: ...
  131. class DTFilter(cv2.Algorithm):
  132. # Functions
  133. @_typing.overload
  134. def filter(self, src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., dDepth: int = ...) -> cv2.typing.MatLike: ...
  135. @_typing.overload
  136. def filter(self, src: cv2.UMat, dst: cv2.UMat | None = ..., dDepth: int = ...) -> cv2.UMat: ...
  137. class GuidedFilter(cv2.Algorithm):
  138. # Functions
  139. @_typing.overload
  140. def filter(self, src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., dDepth: int = ...) -> cv2.typing.MatLike: ...
  141. @_typing.overload
  142. def filter(self, src: cv2.UMat, dst: cv2.UMat | None = ..., dDepth: int = ...) -> cv2.UMat: ...
  143. class AdaptiveManifoldFilter(cv2.Algorithm):
  144. # Functions
  145. @_typing.overload
  146. def filter(self, src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., joint: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  147. @_typing.overload
  148. def filter(self, src: cv2.UMat, dst: cv2.UMat | None = ..., joint: cv2.UMat | None = ...) -> cv2.UMat: ...
  149. def collectGarbage(self) -> None: ...
  150. @classmethod
  151. def create(cls) -> AdaptiveManifoldFilter: ...
  152. class FastBilateralSolverFilter(cv2.Algorithm):
  153. # Functions
  154. @_typing.overload
  155. def filter(self, src: cv2.typing.MatLike, confidence: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  156. @_typing.overload
  157. def filter(self, src: cv2.UMat, confidence: cv2.UMat, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  158. class FastGlobalSmootherFilter(cv2.Algorithm):
  159. # Functions
  160. @_typing.overload
  161. def filter(self, src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  162. @_typing.overload
  163. def filter(self, src: cv2.UMat, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  164. class EdgeBoxes(cv2.Algorithm):
  165. # Functions
  166. @_typing.overload
  167. def getBoundingBoxes(self, edge_map: cv2.typing.MatLike, orientation_map: cv2.typing.MatLike, scores: cv2.typing.MatLike | None = ...) -> tuple[_typing.Sequence[cv2.typing.Rect], cv2.typing.MatLike]: ...
  168. @_typing.overload
  169. def getBoundingBoxes(self, edge_map: cv2.UMat, orientation_map: cv2.UMat, scores: cv2.UMat | None = ...) -> tuple[_typing.Sequence[cv2.typing.Rect], cv2.UMat]: ...
  170. def getAlpha(self) -> float: ...
  171. def setAlpha(self, value: float) -> None: ...
  172. def getBeta(self) -> float: ...
  173. def setBeta(self, value: float) -> None: ...
  174. def getEta(self) -> float: ...
  175. def setEta(self, value: float) -> None: ...
  176. def getMinScore(self) -> float: ...
  177. def setMinScore(self, value: float) -> None: ...
  178. def getMaxBoxes(self) -> int: ...
  179. def setMaxBoxes(self, value: int) -> None: ...
  180. def getEdgeMinMag(self) -> float: ...
  181. def setEdgeMinMag(self, value: float) -> None: ...
  182. def getEdgeMergeThr(self) -> float: ...
  183. def setEdgeMergeThr(self, value: float) -> None: ...
  184. def getClusterMinMag(self) -> float: ...
  185. def setClusterMinMag(self, value: float) -> None: ...
  186. def getMaxAspectRatio(self) -> float: ...
  187. def setMaxAspectRatio(self, value: float) -> None: ...
  188. def getMinBoxArea(self) -> float: ...
  189. def setMinBoxArea(self, value: float) -> None: ...
  190. def getGamma(self) -> float: ...
  191. def setGamma(self, value: float) -> None: ...
  192. def getKappa(self) -> float: ...
  193. def setKappa(self, value: float) -> None: ...
  194. class FastLineDetector(cv2.Algorithm):
  195. # Functions
  196. @_typing.overload
  197. def detect(self, image: cv2.typing.MatLike, lines: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  198. @_typing.overload
  199. def detect(self, image: cv2.UMat, lines: cv2.UMat | None = ...) -> cv2.UMat: ...
  200. @_typing.overload
  201. def drawSegments(self, image: cv2.typing.MatLike, lines: cv2.typing.MatLike, draw_arrow: bool = ..., linecolor: cv2.typing.Scalar = ..., linethickness: int = ...) -> cv2.typing.MatLike: ...
  202. @_typing.overload
  203. def drawSegments(self, image: cv2.UMat, lines: cv2.UMat, draw_arrow: bool = ..., linecolor: cv2.typing.Scalar = ..., linethickness: int = ...) -> cv2.UMat: ...
  204. class ContourFitting(cv2.Algorithm):
  205. # Functions
  206. @_typing.overload
  207. def estimateTransformation(self, src: cv2.typing.MatLike, dst: cv2.typing.MatLike, alphaPhiST: cv2.typing.MatLike | None = ..., fdContour: bool = ...) -> tuple[cv2.typing.MatLike, float]: ...
  208. @_typing.overload
  209. def estimateTransformation(self, src: cv2.UMat, dst: cv2.UMat, alphaPhiST: cv2.UMat | None = ..., fdContour: bool = ...) -> tuple[cv2.UMat, float]: ...
  210. def setCtrSize(self, n: int) -> None: ...
  211. def setFDSize(self, n: int) -> None: ...
  212. def getCtrSize(self) -> int: ...
  213. def getFDSize(self) -> int: ...
  214. class SuperpixelLSC(cv2.Algorithm):
  215. # Functions
  216. def getNumberOfSuperpixels(self) -> int: ...
  217. def iterate(self, num_iterations: int = ...) -> None: ...
  218. @_typing.overload
  219. def getLabels(self, labels_out: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  220. @_typing.overload
  221. def getLabels(self, labels_out: cv2.UMat | None = ...) -> cv2.UMat: ...
  222. @_typing.overload
  223. def getLabelContourMask(self, image: cv2.typing.MatLike | None = ..., thick_line: bool = ...) -> cv2.typing.MatLike: ...
  224. @_typing.overload
  225. def getLabelContourMask(self, image: cv2.UMat | None = ..., thick_line: bool = ...) -> cv2.UMat: ...
  226. def enforceLabelConnectivity(self, min_element_size: int = ...) -> None: ...
  227. class RidgeDetectionFilter(cv2.Algorithm):
  228. # Functions
  229. @classmethod
  230. def create(cls, ddepth: int = ..., dx: int = ..., dy: int = ..., ksize: int = ..., out_dtype: int = ..., scale: float = ..., delta: float = ..., borderType: int = ...) -> RidgeDetectionFilter: ...
  231. @_typing.overload
  232. def getRidgeFilteredImage(self, _img: cv2.typing.MatLike, out: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  233. @_typing.overload
  234. def getRidgeFilteredImage(self, _img: cv2.UMat, out: cv2.UMat | None = ...) -> cv2.UMat: ...
  235. class ScanSegment(cv2.Algorithm):
  236. # Functions
  237. def getNumberOfSuperpixels(self) -> int: ...
  238. @_typing.overload
  239. def iterate(self, img: cv2.typing.MatLike) -> None: ...
  240. @_typing.overload
  241. def iterate(self, img: cv2.UMat) -> None: ...
  242. @_typing.overload
  243. def getLabels(self, labels_out: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  244. @_typing.overload
  245. def getLabels(self, labels_out: cv2.UMat | None = ...) -> cv2.UMat: ...
  246. @_typing.overload
  247. def getLabelContourMask(self, image: cv2.typing.MatLike | None = ..., thick_line: bool = ...) -> cv2.typing.MatLike: ...
  248. @_typing.overload
  249. def getLabelContourMask(self, image: cv2.UMat | None = ..., thick_line: bool = ...) -> cv2.UMat: ...
  250. class SuperpixelSEEDS(cv2.Algorithm):
  251. # Functions
  252. def getNumberOfSuperpixels(self) -> int: ...
  253. @_typing.overload
  254. def iterate(self, img: cv2.typing.MatLike, num_iterations: int = ...) -> None: ...
  255. @_typing.overload
  256. def iterate(self, img: cv2.UMat, num_iterations: int = ...) -> None: ...
  257. @_typing.overload
  258. def getLabels(self, labels_out: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  259. @_typing.overload
  260. def getLabels(self, labels_out: cv2.UMat | None = ...) -> cv2.UMat: ...
  261. @_typing.overload
  262. def getLabelContourMask(self, image: cv2.typing.MatLike | None = ..., thick_line: bool = ...) -> cv2.typing.MatLike: ...
  263. @_typing.overload
  264. def getLabelContourMask(self, image: cv2.UMat | None = ..., thick_line: bool = ...) -> cv2.UMat: ...
  265. class SuperpixelSLIC(cv2.Algorithm):
  266. # Functions
  267. def getNumberOfSuperpixels(self) -> int: ...
  268. def iterate(self, num_iterations: int = ...) -> None: ...
  269. @_typing.overload
  270. def getLabels(self, labels_out: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  271. @_typing.overload
  272. def getLabels(self, labels_out: cv2.UMat | None = ...) -> cv2.UMat: ...
  273. @_typing.overload
  274. def getLabelContourMask(self, image: cv2.typing.MatLike | None = ..., thick_line: bool = ...) -> cv2.typing.MatLike: ...
  275. @_typing.overload
  276. def getLabelContourMask(self, image: cv2.UMat | None = ..., thick_line: bool = ...) -> cv2.UMat: ...
  277. def enforceLabelConnectivity(self, min_element_size: int = ...) -> None: ...
  278. class SparseMatchInterpolator(cv2.Algorithm):
  279. # Functions
  280. @_typing.overload
  281. def interpolate(self, from_image: cv2.typing.MatLike, from_points: cv2.typing.MatLike, to_image: cv2.typing.MatLike, to_points: cv2.typing.MatLike, dense_flow: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  282. @_typing.overload
  283. def interpolate(self, from_image: cv2.UMat, from_points: cv2.UMat, to_image: cv2.UMat, to_points: cv2.UMat, dense_flow: cv2.UMat | None = ...) -> cv2.UMat: ...
  284. class EdgeAwareInterpolator(SparseMatchInterpolator):
  285. # Functions
  286. def setCostMap(self, _costMap: cv2.typing.MatLike) -> None: ...
  287. def setK(self, _k: int) -> None: ...
  288. def getK(self) -> int: ...
  289. def setSigma(self, _sigma: float) -> None: ...
  290. def getSigma(self) -> float: ...
  291. def setLambda(self, _lambda: float) -> None: ...
  292. def getLambda(self) -> float: ...
  293. def setUsePostProcessing(self, _use_post_proc: bool) -> None: ...
  294. def getUsePostProcessing(self) -> bool: ...
  295. def setFGSLambda(self, _lambda: float) -> None: ...
  296. def getFGSLambda(self) -> float: ...
  297. def setFGSSigma(self, _sigma: float) -> None: ...
  298. def getFGSSigma(self) -> float: ...
  299. class RICInterpolator(SparseMatchInterpolator):
  300. # Functions
  301. def setK(self, k: int = ...) -> None: ...
  302. def getK(self) -> int: ...
  303. def setCostMap(self, costMap: cv2.typing.MatLike) -> None: ...
  304. def setSuperpixelSize(self, spSize: int = ...) -> None: ...
  305. def getSuperpixelSize(self) -> int: ...
  306. def setSuperpixelNNCnt(self, spNN: int = ...) -> None: ...
  307. def getSuperpixelNNCnt(self) -> int: ...
  308. def setSuperpixelRuler(self, ruler: float = ...) -> None: ...
  309. def getSuperpixelRuler(self) -> float: ...
  310. def setSuperpixelMode(self, mode: int = ...) -> None: ...
  311. def getSuperpixelMode(self) -> int: ...
  312. def setAlpha(self, alpha: float = ...) -> None: ...
  313. def getAlpha(self) -> float: ...
  314. def setModelIter(self, modelIter: int = ...) -> None: ...
  315. def getModelIter(self) -> int: ...
  316. def setRefineModels(self, refineModles: bool = ...) -> None: ...
  317. def getRefineModels(self) -> bool: ...
  318. def setMaxFlow(self, maxFlow: float = ...) -> None: ...
  319. def getMaxFlow(self) -> float: ...
  320. def setUseVariationalRefinement(self, use_variational_refinement: bool = ...) -> None: ...
  321. def getUseVariationalRefinement(self) -> bool: ...
  322. def setUseGlobalSmootherFilter(self, use_FGS: bool = ...) -> None: ...
  323. def getUseGlobalSmootherFilter(self) -> bool: ...
  324. def setFGSLambda(self, lambda_: float = ...) -> None: ...
  325. def getFGSLambda(self) -> float: ...
  326. def setFGSSigma(self, sigma: float = ...) -> None: ...
  327. def getFGSSigma(self) -> float: ...
  328. class RFFeatureGetter(cv2.Algorithm):
  329. # Functions
  330. def getFeatures(self, src: cv2.typing.MatLike, features: cv2.typing.MatLike, gnrmRad: int, gsmthRad: int, shrink: int, outNum: int, gradNum: int) -> None: ...
  331. class StructuredEdgeDetection(cv2.Algorithm):
  332. # Functions
  333. @_typing.overload
  334. def detectEdges(self, src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  335. @_typing.overload
  336. def detectEdges(self, src: cv2.UMat, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  337. @_typing.overload
  338. def computeOrientation(self, src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  339. @_typing.overload
  340. def computeOrientation(self, src: cv2.UMat, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  341. @_typing.overload
  342. def edgesNms(self, edge_image: cv2.typing.MatLike, orientation_image: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., r: int = ..., s: int = ..., m: float = ..., isParallel: bool = ...) -> cv2.typing.MatLike: ...
  343. @_typing.overload
  344. def edgesNms(self, edge_image: cv2.UMat, orientation_image: cv2.UMat, dst: cv2.UMat | None = ..., r: int = ..., s: int = ..., m: float = ..., isParallel: bool = ...) -> cv2.UMat: ...
  345. # Functions
  346. @_typing.overload
  347. def FastHoughTransform(src: cv2.typing.MatLike, dstMatDepth: int, dst: cv2.typing.MatLike | None = ..., angleRange: int = ..., op: int = ..., makeSkew: int = ...) -> cv2.typing.MatLike: ...
  348. @_typing.overload
  349. def FastHoughTransform(src: cv2.UMat, dstMatDepth: int, dst: cv2.UMat | None = ..., angleRange: int = ..., op: int = ..., makeSkew: int = ...) -> cv2.UMat: ...
  350. @_typing.overload
  351. def GradientDericheX(op: cv2.typing.MatLike, alpha: float, omega: float, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  352. @_typing.overload
  353. def GradientDericheX(op: cv2.UMat, alpha: float, omega: float, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  354. @_typing.overload
  355. def GradientDericheY(op: cv2.typing.MatLike, alpha: float, omega: float, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  356. @_typing.overload
  357. def GradientDericheY(op: cv2.UMat, alpha: float, omega: float, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  358. @_typing.overload
  359. def HoughPoint2Line(houghPoint: cv2.typing.Point, srcImgInfo: cv2.typing.MatLike, angleRange: int = ..., makeSkew: int = ..., rules: int = ...) -> cv2.typing.Vec4i: ...
  360. @_typing.overload
  361. def HoughPoint2Line(houghPoint: cv2.typing.Point, srcImgInfo: cv2.UMat, angleRange: int = ..., makeSkew: int = ..., rules: int = ...) -> cv2.typing.Vec4i: ...
  362. @_typing.overload
  363. def PeiLinNormalization(I: cv2.typing.MatLike, T: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  364. @_typing.overload
  365. def PeiLinNormalization(I: cv2.UMat, T: cv2.UMat | None = ...) -> cv2.UMat: ...
  366. @_typing.overload
  367. def RadonTransform(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., theta: float = ..., start_angle: float = ..., end_angle: float = ..., crop: bool = ..., norm: bool = ...) -> cv2.typing.MatLike: ...
  368. @_typing.overload
  369. def RadonTransform(src: cv2.UMat, dst: cv2.UMat | None = ..., theta: float = ..., start_angle: float = ..., end_angle: float = ..., crop: bool = ..., norm: bool = ...) -> cv2.UMat: ...
  370. @_typing.overload
  371. def amFilter(joint: cv2.typing.MatLike, src: cv2.typing.MatLike, sigma_s: float, sigma_r: float, dst: cv2.typing.MatLike | None = ..., adjust_outliers: bool = ...) -> cv2.typing.MatLike: ...
  372. @_typing.overload
  373. def amFilter(joint: cv2.UMat, src: cv2.UMat, sigma_s: float, sigma_r: float, dst: cv2.UMat | None = ..., adjust_outliers: bool = ...) -> cv2.UMat: ...
  374. @_typing.overload
  375. def anisotropicDiffusion(src: cv2.typing.MatLike, alpha: float, K: float, niters: int, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  376. @_typing.overload
  377. def anisotropicDiffusion(src: cv2.UMat, alpha: float, K: float, niters: int, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  378. @_typing.overload
  379. def bilateralTextureFilter(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., fr: int = ..., numIter: int = ..., sigmaAlpha: float = ..., sigmaAvg: float = ...) -> cv2.typing.MatLike: ...
  380. @_typing.overload
  381. def bilateralTextureFilter(src: cv2.UMat, dst: cv2.UMat | None = ..., fr: int = ..., numIter: int = ..., sigmaAlpha: float = ..., sigmaAvg: float = ...) -> cv2.UMat: ...
  382. @_typing.overload
  383. def colorMatchTemplate(img: cv2.typing.MatLike, templ: cv2.typing.MatLike, result: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  384. @_typing.overload
  385. def colorMatchTemplate(img: cv2.UMat, templ: cv2.UMat, result: cv2.UMat | None = ...) -> cv2.UMat: ...
  386. @_typing.overload
  387. def computeBadPixelPercent(GT: cv2.typing.MatLike, src: cv2.typing.MatLike, ROI: cv2.typing.Rect, thresh: int = ...) -> float: ...
  388. @_typing.overload
  389. def computeBadPixelPercent(GT: cv2.UMat, src: cv2.UMat, ROI: cv2.typing.Rect, thresh: int = ...) -> float: ...
  390. @_typing.overload
  391. def computeMSE(GT: cv2.typing.MatLike, src: cv2.typing.MatLike, ROI: cv2.typing.Rect) -> float: ...
  392. @_typing.overload
  393. def computeMSE(GT: cv2.UMat, src: cv2.UMat, ROI: cv2.typing.Rect) -> float: ...
  394. @_typing.overload
  395. def contourSampling(src: cv2.typing.MatLike, nbElt: int, out: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  396. @_typing.overload
  397. def contourSampling(src: cv2.UMat, nbElt: int, out: cv2.UMat | None = ...) -> cv2.UMat: ...
  398. @_typing.overload
  399. def covarianceEstimation(src: cv2.typing.MatLike, windowRows: int, windowCols: int, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  400. @_typing.overload
  401. def covarianceEstimation(src: cv2.UMat, windowRows: int, windowCols: int, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  402. def createAMFilter(sigma_s: float, sigma_r: float, adjust_outliers: bool = ...) -> AdaptiveManifoldFilter: ...
  403. def createContourFitting(ctr: int = ..., fd: int = ...) -> ContourFitting: ...
  404. @_typing.overload
  405. def createDTFilter(guide: cv2.typing.MatLike, sigmaSpatial: float, sigmaColor: float, mode: int = ..., numIters: int = ...) -> DTFilter: ...
  406. @_typing.overload
  407. def createDTFilter(guide: cv2.UMat, sigmaSpatial: float, sigmaColor: float, mode: int = ..., numIters: int = ...) -> DTFilter: ...
  408. def createDisparityWLSFilter(matcher_left: cv2.StereoMatcher) -> DisparityWLSFilter: ...
  409. def createDisparityWLSFilterGeneric(use_confidence: bool) -> DisparityWLSFilter: ...
  410. def createEdgeAwareInterpolator() -> EdgeAwareInterpolator: ...
  411. def createEdgeBoxes(alpha: float = ..., beta: float = ..., eta: float = ..., minScore: float = ..., maxBoxes: int = ..., edgeMinMag: float = ..., edgeMergeThr: float = ..., clusterMinMag: float = ..., maxAspectRatio: float = ..., minBoxArea: float = ..., gamma: float = ..., kappa: float = ...) -> EdgeBoxes: ...
  412. def createEdgeDrawing() -> EdgeDrawing: ...
  413. @_typing.overload
  414. def createFastBilateralSolverFilter(guide: cv2.typing.MatLike, sigma_spatial: float, sigma_luma: float, sigma_chroma: float, lambda_: float = ..., num_iter: int = ..., max_tol: float = ...) -> FastBilateralSolverFilter: ...
  415. @_typing.overload
  416. def createFastBilateralSolverFilter(guide: cv2.UMat, sigma_spatial: float, sigma_luma: float, sigma_chroma: float, lambda_: float = ..., num_iter: int = ..., max_tol: float = ...) -> FastBilateralSolverFilter: ...
  417. @_typing.overload
  418. def createFastGlobalSmootherFilter(guide: cv2.typing.MatLike, lambda_: float, sigma_color: float, lambda_attenuation: float = ..., num_iter: int = ...) -> FastGlobalSmootherFilter: ...
  419. @_typing.overload
  420. def createFastGlobalSmootherFilter(guide: cv2.UMat, lambda_: float, sigma_color: float, lambda_attenuation: float = ..., num_iter: int = ...) -> FastGlobalSmootherFilter: ...
  421. def createFastLineDetector(length_threshold: int = ..., distance_threshold: float = ..., canny_th1: float = ..., canny_th2: float = ..., canny_aperture_size: int = ..., do_merge: bool = ...) -> FastLineDetector: ...
  422. @_typing.overload
  423. def createGuidedFilter(guide: cv2.typing.MatLike, radius: int, eps: float, scale: float = ...) -> GuidedFilter: ...
  424. @_typing.overload
  425. def createGuidedFilter(guide: cv2.UMat, radius: int, eps: float, scale: float = ...) -> GuidedFilter: ...
  426. @_typing.overload
  427. def createQuaternionImage(img: cv2.typing.MatLike, qimg: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  428. @_typing.overload
  429. def createQuaternionImage(img: cv2.UMat, qimg: cv2.UMat | None = ...) -> cv2.UMat: ...
  430. def createRFFeatureGetter() -> RFFeatureGetter: ...
  431. def createRICInterpolator() -> RICInterpolator: ...
  432. def createRightMatcher(matcher_left: cv2.StereoMatcher) -> cv2.StereoMatcher: ...
  433. def createScanSegment(image_width: int, image_height: int, num_superpixels: int, slices: int = ..., merge_small: bool = ...) -> ScanSegment: ...
  434. def createStructuredEdgeDetection(model: str, howToGetFeatures: RFFeatureGetter = ...) -> StructuredEdgeDetection: ...
  435. @_typing.overload
  436. def createSuperpixelLSC(image: cv2.typing.MatLike, region_size: int = ..., ratio: float = ...) -> SuperpixelLSC: ...
  437. @_typing.overload
  438. def createSuperpixelLSC(image: cv2.UMat, region_size: int = ..., ratio: float = ...) -> SuperpixelLSC: ...
  439. def createSuperpixelSEEDS(image_width: int, image_height: int, image_channels: int, num_superpixels: int, num_levels: int, prior: int = ..., histogram_bins: int = ..., double_step: bool = ...) -> SuperpixelSEEDS: ...
  440. @_typing.overload
  441. def createSuperpixelSLIC(image: cv2.typing.MatLike, algorithm: int = ..., region_size: int = ..., ruler: float = ...) -> SuperpixelSLIC: ...
  442. @_typing.overload
  443. def createSuperpixelSLIC(image: cv2.UMat, algorithm: int = ..., region_size: int = ..., ruler: float = ...) -> SuperpixelSLIC: ...
  444. @_typing.overload
  445. def dtFilter(guide: cv2.typing.MatLike, src: cv2.typing.MatLike, sigmaSpatial: float, sigmaColor: float, dst: cv2.typing.MatLike | None = ..., mode: int = ..., numIters: int = ...) -> cv2.typing.MatLike: ...
  446. @_typing.overload
  447. def dtFilter(guide: cv2.UMat, src: cv2.UMat, sigmaSpatial: float, sigmaColor: float, dst: cv2.UMat | None = ..., mode: int = ..., numIters: int = ...) -> cv2.UMat: ...
  448. @_typing.overload
  449. def edgePreservingFilter(src: cv2.typing.MatLike, d: int, threshold: float, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  450. @_typing.overload
  451. def edgePreservingFilter(src: cv2.UMat, d: int, threshold: float, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  452. @_typing.overload
  453. def fastBilateralSolverFilter(guide: cv2.typing.MatLike, src: cv2.typing.MatLike, confidence: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., sigma_spatial: float = ..., sigma_luma: float = ..., sigma_chroma: float = ..., lambda_: float = ..., num_iter: int = ..., max_tol: float = ...) -> cv2.typing.MatLike: ...
  454. @_typing.overload
  455. def fastBilateralSolverFilter(guide: cv2.UMat, src: cv2.UMat, confidence: cv2.UMat, dst: cv2.UMat | None = ..., sigma_spatial: float = ..., sigma_luma: float = ..., sigma_chroma: float = ..., lambda_: float = ..., num_iter: int = ..., max_tol: float = ...) -> cv2.UMat: ...
  456. @_typing.overload
  457. def fastGlobalSmootherFilter(guide: cv2.typing.MatLike, src: cv2.typing.MatLike, lambda_: float, sigma_color: float, dst: cv2.typing.MatLike | None = ..., lambda_attenuation: float = ..., num_iter: int = ...) -> cv2.typing.MatLike: ...
  458. @_typing.overload
  459. def fastGlobalSmootherFilter(guide: cv2.UMat, src: cv2.UMat, lambda_: float, sigma_color: float, dst: cv2.UMat | None = ..., lambda_attenuation: float = ..., num_iter: int = ...) -> cv2.UMat: ...
  460. @_typing.overload
  461. def findEllipses(image: cv2.typing.MatLike, ellipses: cv2.typing.MatLike | None = ..., scoreThreshold: float = ..., reliabilityThreshold: float = ..., centerDistanceThreshold: float = ...) -> cv2.typing.MatLike: ...
  462. @_typing.overload
  463. def findEllipses(image: cv2.UMat, ellipses: cv2.UMat | None = ..., scoreThreshold: float = ..., reliabilityThreshold: float = ..., centerDistanceThreshold: float = ...) -> cv2.UMat: ...
  464. @_typing.overload
  465. def fourierDescriptor(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., nbElt: int = ..., nbFD: int = ...) -> cv2.typing.MatLike: ...
  466. @_typing.overload
  467. def fourierDescriptor(src: cv2.UMat, dst: cv2.UMat | None = ..., nbElt: int = ..., nbFD: int = ...) -> cv2.UMat: ...
  468. @_typing.overload
  469. def getDisparityVis(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., scale: float = ...) -> cv2.typing.MatLike: ...
  470. @_typing.overload
  471. def getDisparityVis(src: cv2.UMat, dst: cv2.UMat | None = ..., scale: float = ...) -> cv2.UMat: ...
  472. @_typing.overload
  473. def guidedFilter(guide: cv2.typing.MatLike, src: cv2.typing.MatLike, radius: int, eps: float, dst: cv2.typing.MatLike | None = ..., dDepth: int = ..., scale: float = ...) -> cv2.typing.MatLike: ...
  474. @_typing.overload
  475. def guidedFilter(guide: cv2.UMat, src: cv2.UMat, radius: int, eps: float, dst: cv2.UMat | None = ..., dDepth: int = ..., scale: float = ...) -> cv2.UMat: ...
  476. @_typing.overload
  477. def jointBilateralFilter(joint: cv2.typing.MatLike, src: cv2.typing.MatLike, d: int, sigmaColor: float, sigmaSpace: float, dst: cv2.typing.MatLike | None = ..., borderType: int = ...) -> cv2.typing.MatLike: ...
  478. @_typing.overload
  479. def jointBilateralFilter(joint: cv2.UMat, src: cv2.UMat, d: int, sigmaColor: float, sigmaSpace: float, dst: cv2.UMat | None = ..., borderType: int = ...) -> cv2.UMat: ...
  480. @_typing.overload
  481. def l0Smooth(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., lambda_: float = ..., kappa: float = ...) -> cv2.typing.MatLike: ...
  482. @_typing.overload
  483. def l0Smooth(src: cv2.UMat, dst: cv2.UMat | None = ..., lambda_: float = ..., kappa: float = ...) -> cv2.UMat: ...
  484. @_typing.overload
  485. def niBlackThreshold(_src: cv2.typing.MatLike, maxValue: float, type: int, blockSize: int, k: float, _dst: cv2.typing.MatLike | None = ..., binarizationMethod: int = ..., r: float = ...) -> cv2.typing.MatLike: ...
  486. @_typing.overload
  487. def niBlackThreshold(_src: cv2.UMat, maxValue: float, type: int, blockSize: int, k: float, _dst: cv2.UMat | None = ..., binarizationMethod: int = ..., r: float = ...) -> cv2.UMat: ...
  488. @_typing.overload
  489. def qconj(qimg: cv2.typing.MatLike, qcimg: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  490. @_typing.overload
  491. def qconj(qimg: cv2.UMat, qcimg: cv2.UMat | None = ...) -> cv2.UMat: ...
  492. @_typing.overload
  493. def qdft(img: cv2.typing.MatLike, flags: int, sideLeft: bool, qimg: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  494. @_typing.overload
  495. def qdft(img: cv2.UMat, flags: int, sideLeft: bool, qimg: cv2.UMat | None = ...) -> cv2.UMat: ...
  496. @_typing.overload
  497. def qmultiply(src1: cv2.typing.MatLike, src2: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  498. @_typing.overload
  499. def qmultiply(src1: cv2.UMat, src2: cv2.UMat, dst: cv2.UMat | None = ...) -> cv2.UMat: ...
  500. @_typing.overload
  501. def qunitary(qimg: cv2.typing.MatLike, qnimg: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  502. @_typing.overload
  503. def qunitary(qimg: cv2.UMat, qnimg: cv2.UMat | None = ...) -> cv2.UMat: ...
  504. @_typing.overload
  505. def readGT(src_path: str, dst: cv2.typing.MatLike | None = ...) -> tuple[int, cv2.typing.MatLike]: ...
  506. @_typing.overload
  507. def readGT(src_path: str, dst: cv2.UMat | None = ...) -> tuple[int, cv2.UMat]: ...
  508. @_typing.overload
  509. def rollingGuidanceFilter(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., d: int = ..., sigmaColor: float = ..., sigmaSpace: float = ..., numOfIter: int = ..., borderType: int = ...) -> cv2.typing.MatLike: ...
  510. @_typing.overload
  511. def rollingGuidanceFilter(src: cv2.UMat, dst: cv2.UMat | None = ..., d: int = ..., sigmaColor: float = ..., sigmaSpace: float = ..., numOfIter: int = ..., borderType: int = ...) -> cv2.UMat: ...
  512. @_typing.overload
  513. def thinning(src: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., thinningType: int = ...) -> cv2.typing.MatLike: ...
  514. @_typing.overload
  515. def thinning(src: cv2.UMat, dst: cv2.UMat | None = ..., thinningType: int = ...) -> cv2.UMat: ...
  516. @_typing.overload
  517. def transformFD(src: cv2.typing.MatLike, t: cv2.typing.MatLike, dst: cv2.typing.MatLike | None = ..., fdContour: bool = ...) -> cv2.typing.MatLike: ...
  518. @_typing.overload
  519. def transformFD(src: cv2.UMat, t: cv2.UMat, dst: cv2.UMat | None = ..., fdContour: bool = ...) -> cv2.UMat: ...
  520. @_typing.overload
  521. def weightedMedianFilter(joint: cv2.typing.MatLike, src: cv2.typing.MatLike, r: int, dst: cv2.typing.MatLike | None = ..., sigma: float = ..., weightType: int = ..., mask: cv2.typing.MatLike | None = ...) -> cv2.typing.MatLike: ...
  522. @_typing.overload
  523. def weightedMedianFilter(joint: cv2.UMat, src: cv2.UMat, r: int, dst: cv2.UMat | None = ..., sigma: float = ..., weightType: int = ..., mask: cv2.UMat | None = ...) -> cv2.UMat: ...