__init__.pyi 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. __all__: list[str] = []
  2. import cv2
  3. import cv2.typing
  4. import numpy
  5. import typing as _typing
  6. # Enumerations
  7. TEST_CUSTOM: int
  8. TEST_EQ: int
  9. TEST_NE: int
  10. TEST_LE: int
  11. TEST_LT: int
  12. TEST_GE: int
  13. TEST_GT: int
  14. TestOp = int
  15. """One of [TEST_CUSTOM, TEST_EQ, TEST_NE, TEST_LE, TEST_LT, TEST_GE, TEST_GT]"""
  16. WAVE_CORRECT_HORIZ: int
  17. WAVE_CORRECT_VERT: int
  18. WAVE_CORRECT_AUTO: int
  19. WaveCorrectKind = int
  20. """One of [WAVE_CORRECT_HORIZ, WAVE_CORRECT_VERT, WAVE_CORRECT_AUTO]"""
  21. Blender_NO: int
  22. BLENDER_NO: int
  23. Blender_FEATHER: int
  24. BLENDER_FEATHER: int
  25. Blender_MULTI_BAND: int
  26. BLENDER_MULTI_BAND: int
  27. ExposureCompensator_NO: int
  28. EXPOSURE_COMPENSATOR_NO: int
  29. ExposureCompensator_GAIN: int
  30. EXPOSURE_COMPENSATOR_GAIN: int
  31. ExposureCompensator_GAIN_BLOCKS: int
  32. EXPOSURE_COMPENSATOR_GAIN_BLOCKS: int
  33. ExposureCompensator_CHANNELS: int
  34. EXPOSURE_COMPENSATOR_CHANNELS: int
  35. ExposureCompensator_CHANNELS_BLOCKS: int
  36. EXPOSURE_COMPENSATOR_CHANNELS_BLOCKS: int
  37. SeamFinder_NO: int
  38. SEAM_FINDER_NO: int
  39. SeamFinder_VORONOI_SEAM: int
  40. SEAM_FINDER_VORONOI_SEAM: int
  41. SeamFinder_DP_SEAM: int
  42. SEAM_FINDER_DP_SEAM: int
  43. DpSeamFinder_COLOR: int
  44. DP_SEAM_FINDER_COLOR: int
  45. DpSeamFinder_COLOR_GRAD: int
  46. DP_SEAM_FINDER_COLOR_GRAD: int
  47. DpSeamFinder_CostFunction = int
  48. """One of [DpSeamFinder_COLOR, DP_SEAM_FINDER_COLOR, DpSeamFinder_COLOR_GRAD, DP_SEAM_FINDER_COLOR_GRAD]"""
  49. Timelapser_AS_IS: int
  50. TIMELAPSER_AS_IS: int
  51. Timelapser_CROP: int
  52. TIMELAPSER_CROP: int
  53. GraphCutSeamFinderBase_COST_COLOR: int
  54. GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR: int
  55. GraphCutSeamFinderBase_COST_COLOR_GRAD: int
  56. GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR_GRAD: int
  57. GraphCutSeamFinderBase_CostType = int
  58. """One of [GraphCutSeamFinderBase_COST_COLOR, GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR, GraphCutSeamFinderBase_COST_COLOR_GRAD, GRAPH_CUT_SEAM_FINDER_BASE_COST_COLOR_GRAD]"""
  59. TrackerSamplerCSC_MODE_INIT_POS: int
  60. TRACKER_SAMPLER_CSC_MODE_INIT_POS: int
  61. TrackerSamplerCSC_MODE_INIT_NEG: int
  62. TRACKER_SAMPLER_CSC_MODE_INIT_NEG: int
  63. TrackerSamplerCSC_MODE_TRACK_POS: int
  64. TRACKER_SAMPLER_CSC_MODE_TRACK_POS: int
  65. TrackerSamplerCSC_MODE_TRACK_NEG: int
  66. TRACKER_SAMPLER_CSC_MODE_TRACK_NEG: int
  67. TrackerSamplerCSC_MODE_DETECT: int
  68. TRACKER_SAMPLER_CSC_MODE_DETECT: int
  69. TrackerSamplerCSC_MODE = int
  70. """One of [TrackerSamplerCSC_MODE_INIT_POS, TRACKER_SAMPLER_CSC_MODE_INIT_POS, TrackerSamplerCSC_MODE_INIT_NEG, TRACKER_SAMPLER_CSC_MODE_INIT_NEG, TrackerSamplerCSC_MODE_TRACK_POS, TRACKER_SAMPLER_CSC_MODE_TRACK_POS, TrackerSamplerCSC_MODE_TRACK_NEG, TRACKER_SAMPLER_CSC_MODE_TRACK_NEG, TrackerSamplerCSC_MODE_DETECT, TRACKER_SAMPLER_CSC_MODE_DETECT]"""
  71. # Classes
  72. class PoseGraph:
  73. ...
  74. class Blender:
  75. # Functions
  76. @classmethod
  77. def createDefault(cls, type: int, try_gpu: bool = ...) -> Blender: ...
  78. @_typing.overload
  79. def prepare(self, corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> None: ...
  80. @_typing.overload
  81. def prepare(self, dst_roi: cv2.typing.Rect) -> None: ...
  82. @_typing.overload
  83. def feed(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  84. @_typing.overload
  85. def feed(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  86. @_typing.overload
  87. def blend(self, dst: cv2.typing.MatLike, dst_mask: cv2.typing.MatLike) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
  88. @_typing.overload
  89. def blend(self, dst: cv2.UMat, dst_mask: cv2.UMat) -> tuple[cv2.UMat, cv2.UMat]: ...
  90. class FeatherBlender(Blender):
  91. # Functions
  92. def __init__(self, sharpness: float = ...) -> None: ...
  93. def sharpness(self) -> float: ...
  94. def setSharpness(self, val: float) -> None: ...
  95. def prepare(self, dst_roi: cv2.typing.Rect) -> None: ...
  96. @_typing.overload
  97. def feed(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  98. @_typing.overload
  99. def feed(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  100. @_typing.overload
  101. def blend(self, dst: cv2.typing.MatLike, dst_mask: cv2.typing.MatLike) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
  102. @_typing.overload
  103. def blend(self, dst: cv2.UMat, dst_mask: cv2.UMat) -> tuple[cv2.UMat, cv2.UMat]: ...
  104. def createWeightMaps(self, masks: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], weight_maps: _typing.Sequence[cv2.UMat]) -> tuple[cv2.typing.Rect, _typing.Sequence[cv2.UMat]]: ...
  105. class MultiBandBlender(Blender):
  106. # Functions
  107. def __init__(self, try_gpu: int = ..., num_bands: int = ..., weight_type: int = ...) -> None: ...
  108. def numBands(self) -> int: ...
  109. def setNumBands(self, val: int) -> None: ...
  110. def prepare(self, dst_roi: cv2.typing.Rect) -> None: ...
  111. @_typing.overload
  112. def feed(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  113. @_typing.overload
  114. def feed(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  115. @_typing.overload
  116. def blend(self, dst: cv2.typing.MatLike, dst_mask: cv2.typing.MatLike) -> tuple[cv2.typing.MatLike, cv2.typing.MatLike]: ...
  117. @_typing.overload
  118. def blend(self, dst: cv2.UMat, dst_mask: cv2.UMat) -> tuple[cv2.UMat, cv2.UMat]: ...
  119. class CameraParams:
  120. focal: float
  121. aspect: float
  122. ppx: float
  123. ppy: float
  124. R: cv2.typing.MatLike
  125. t: cv2.typing.MatLike
  126. # Functions
  127. def K(self) -> cv2.typing.MatLike: ...
  128. class ExposureCompensator:
  129. # Functions
  130. @classmethod
  131. def createDefault(cls, type: int) -> ExposureCompensator: ...
  132. def feed(self, corners: _typing.Sequence[cv2.typing.Point], images: _typing.Sequence[cv2.UMat], masks: _typing.Sequence[cv2.UMat]) -> None: ...
  133. @_typing.overload
  134. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  135. @_typing.overload
  136. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  137. def getMatGains(self, arg1: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  138. def setMatGains(self, arg1: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  139. def setUpdateGain(self, b: bool) -> None: ...
  140. def getUpdateGain(self) -> bool: ...
  141. class NoExposureCompensator(ExposureCompensator):
  142. # Functions
  143. @_typing.overload
  144. def apply(self, arg1: int, arg2: cv2.typing.Point, arg3: cv2.typing.MatLike, arg4: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  145. @_typing.overload
  146. def apply(self, arg1: int, arg2: cv2.typing.Point, arg3: cv2.UMat, arg4: cv2.UMat) -> cv2.UMat: ...
  147. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  148. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  149. class GainCompensator(ExposureCompensator):
  150. # Functions
  151. @_typing.overload
  152. def __init__(self) -> None: ...
  153. @_typing.overload
  154. def __init__(self, nr_feeds: int) -> None: ...
  155. @_typing.overload
  156. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  157. @_typing.overload
  158. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  159. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  160. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  161. def setNrFeeds(self, nr_feeds: int) -> None: ...
  162. def getNrFeeds(self) -> int: ...
  163. def setSimilarityThreshold(self, similarity_threshold: float) -> None: ...
  164. def getSimilarityThreshold(self) -> float: ...
  165. class ChannelsCompensator(ExposureCompensator):
  166. # Functions
  167. def __init__(self, nr_feeds: int = ...) -> None: ...
  168. @_typing.overload
  169. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  170. @_typing.overload
  171. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  172. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  173. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  174. def setNrFeeds(self, nr_feeds: int) -> None: ...
  175. def getNrFeeds(self) -> int: ...
  176. def setSimilarityThreshold(self, similarity_threshold: float) -> None: ...
  177. def getSimilarityThreshold(self) -> float: ...
  178. class BlocksCompensator(ExposureCompensator):
  179. # Functions
  180. @_typing.overload
  181. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  182. @_typing.overload
  183. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  184. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  185. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  186. def setNrFeeds(self, nr_feeds: int) -> None: ...
  187. def getNrFeeds(self) -> int: ...
  188. def setSimilarityThreshold(self, similarity_threshold: float) -> None: ...
  189. def getSimilarityThreshold(self) -> float: ...
  190. @_typing.overload
  191. def setBlockSize(self, width: int, height: int) -> None: ...
  192. @_typing.overload
  193. def setBlockSize(self, size: cv2.typing.Size) -> None: ...
  194. def getBlockSize(self) -> cv2.typing.Size: ...
  195. def setNrGainsFilteringIterations(self, nr_iterations: int) -> None: ...
  196. def getNrGainsFilteringIterations(self) -> int: ...
  197. class BlocksGainCompensator(BlocksCompensator):
  198. # Functions
  199. @_typing.overload
  200. def __init__(self, bl_width: int = ..., bl_height: int = ...) -> None: ...
  201. @_typing.overload
  202. def __init__(self, bl_width: int, bl_height: int, nr_feeds: int) -> None: ...
  203. @_typing.overload
  204. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.typing.MatLike, mask: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  205. @_typing.overload
  206. def apply(self, index: int, corner: cv2.typing.Point, image: cv2.UMat, mask: cv2.UMat) -> cv2.UMat: ...
  207. def getMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[cv2.typing.MatLike]: ...
  208. def setMatGains(self, umv: _typing.Sequence[cv2.typing.MatLike]) -> None: ...
  209. class BlocksChannelsCompensator(BlocksCompensator):
  210. # Functions
  211. def __init__(self, bl_width: int = ..., bl_height: int = ..., nr_feeds: int = ...) -> None: ...
  212. class ImageFeatures:
  213. img_idx: int
  214. img_size: cv2.typing.Size
  215. keypoints: _typing.Sequence[cv2.KeyPoint]
  216. descriptors: cv2.UMat
  217. # Functions
  218. def getKeypoints(self) -> _typing.Sequence[cv2.KeyPoint]: ...
  219. class MatchesInfo:
  220. src_img_idx: int
  221. dst_img_idx: int
  222. matches: _typing.Sequence[cv2.DMatch]
  223. inliers_mask: numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]
  224. num_inliers: int
  225. H: cv2.typing.MatLike
  226. confidence: float
  227. # Functions
  228. def getMatches(self) -> _typing.Sequence[cv2.DMatch]: ...
  229. def getInliers(self) -> numpy.ndarray[_typing.Any, numpy.dtype[numpy.uint8]]: ...
  230. class FeaturesMatcher:
  231. # Functions
  232. def apply(self, features1: ImageFeatures, features2: ImageFeatures) -> MatchesInfo: ...
  233. def apply2(self, features: _typing.Sequence[ImageFeatures], mask: cv2.UMat | None = ...) -> _typing.Sequence[MatchesInfo]: ...
  234. def isThreadSafe(self) -> bool: ...
  235. def collectGarbage(self) -> None: ...
  236. class BestOf2NearestMatcher(FeaturesMatcher):
  237. # Functions
  238. def __init__(self, try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ..., matches_confidence_thresh: float = ...) -> None: ...
  239. def collectGarbage(self) -> None: ...
  240. @classmethod
  241. def create(cls, try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ..., matches_confidence_thresh: float = ...) -> BestOf2NearestMatcher: ...
  242. class BestOf2NearestRangeMatcher(BestOf2NearestMatcher):
  243. # Functions
  244. def __init__(self, range_width: int = ..., try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ..., num_matches_thresh2: int = ...) -> None: ...
  245. class AffineBestOf2NearestMatcher(BestOf2NearestMatcher):
  246. # Functions
  247. def __init__(self, full_affine: bool = ..., try_use_gpu: bool = ..., match_conf: float = ..., num_matches_thresh1: int = ...) -> None: ...
  248. class LightGlueFeaturesMatcher(FeaturesMatcher):
  249. # Functions
  250. def __init__(self, lgMatcher: cv2.LightGlueMatcher, num_matches_thresh1: int = ..., num_matches_thresh2: int = ..., matches_confidence_thresh: float = ...) -> None: ...
  251. def setScoreThreshold(self, thresh: float) -> None: ...
  252. class Estimator:
  253. # Functions
  254. def apply(self, features: _typing.Sequence[ImageFeatures], pairwise_matches: _typing.Sequence[MatchesInfo], cameras: _typing.Sequence[CameraParams]) -> tuple[bool, _typing.Sequence[CameraParams]]: ...
  255. class HomographyBasedEstimator(Estimator):
  256. # Functions
  257. def __init__(self, is_focals_estimated: bool = ...) -> None: ...
  258. class AffineBasedEstimator(Estimator):
  259. # Functions
  260. def __init__(self) -> None: ...
  261. class BundleAdjusterBase(Estimator):
  262. # Functions
  263. def refinementMask(self) -> cv2.typing.MatLike: ...
  264. def setRefinementMask(self, mask: cv2.typing.MatLike) -> None: ...
  265. def confThresh(self) -> float: ...
  266. def setConfThresh(self, conf_thresh: float) -> None: ...
  267. def termCriteria(self) -> cv2.typing.TermCriteria: ...
  268. def setTermCriteria(self, term_criteria: cv2.typing.TermCriteria) -> None: ...
  269. class NoBundleAdjuster(BundleAdjusterBase):
  270. # Functions
  271. def __init__(self) -> None: ...
  272. class BundleAdjusterReproj(BundleAdjusterBase):
  273. # Functions
  274. def __init__(self) -> None: ...
  275. class BundleAdjusterRay(BundleAdjusterBase):
  276. # Functions
  277. def __init__(self) -> None: ...
  278. class BundleAdjusterAffine(BundleAdjusterBase):
  279. # Functions
  280. def __init__(self) -> None: ...
  281. class BundleAdjusterAffinePartial(BundleAdjusterBase):
  282. # Functions
  283. def __init__(self) -> None: ...
  284. class SeamFinder:
  285. # Functions
  286. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  287. @classmethod
  288. def createDefault(cls, type: int) -> SeamFinder: ...
  289. class NoSeamFinder(SeamFinder):
  290. # Functions
  291. def find(self, arg1: _typing.Sequence[cv2.UMat], arg2: _typing.Sequence[cv2.typing.Point], arg3: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  292. class PairwiseSeamFinder(SeamFinder):
  293. # Functions
  294. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  295. class VoronoiSeamFinder(PairwiseSeamFinder):
  296. # Functions
  297. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  298. class DpSeamFinder(SeamFinder):
  299. # Functions
  300. def __init__(self, costFunc: str) -> None: ...
  301. def setCostFunction(self, val: str) -> None: ...
  302. class GraphCutSeamFinder:
  303. # Functions
  304. def __init__(self, cost_type: str, terminal_cost: float = ..., bad_region_penalty: float = ...) -> None: ...
  305. def find(self, src: _typing.Sequence[cv2.UMat], corners: _typing.Sequence[cv2.typing.Point], masks: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  306. class Timelapser:
  307. # Functions
  308. @classmethod
  309. def createDefault(cls, type: int) -> Timelapser: ...
  310. def initialize(self, corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> None: ...
  311. @_typing.overload
  312. def process(self, img: cv2.typing.MatLike, mask: cv2.typing.MatLike, tl: cv2.typing.Point) -> None: ...
  313. @_typing.overload
  314. def process(self, img: cv2.UMat, mask: cv2.UMat, tl: cv2.typing.Point) -> None: ...
  315. def getDst(self) -> cv2.UMat: ...
  316. class TimelapserCrop(Timelapser):
  317. ...
  318. class ProjectorBase:
  319. ...
  320. class SphericalProjector(ProjectorBase):
  321. # Functions
  322. def mapForward(self, x: float, y: float, u: float, v: float) -> None: ...
  323. def mapBackward(self, u: float, v: float, x: float, y: float) -> None: ...
  324. # Functions
  325. def calibrateRotatingCamera(Hs: _typing.Sequence[cv2.typing.MatLike], K: cv2.typing.MatLike | None = ...) -> tuple[bool, cv2.typing.MatLike]: ...
  326. @_typing.overload
  327. def computeImageFeatures(featuresFinder: cv2.Feature2D, images: _typing.Sequence[cv2.typing.MatLike], masks: _typing.Sequence[cv2.typing.MatLike] | None = ...) -> _typing.Sequence[ImageFeatures]: ...
  328. @_typing.overload
  329. def computeImageFeatures(featuresFinder: cv2.Feature2D, images: _typing.Sequence[cv2.UMat], masks: _typing.Sequence[cv2.UMat] | None = ...) -> _typing.Sequence[ImageFeatures]: ...
  330. @_typing.overload
  331. def computeImageFeatures2(featuresFinder: cv2.Feature2D, image: cv2.typing.MatLike, mask: cv2.typing.MatLike | None = ...) -> ImageFeatures: ...
  332. @_typing.overload
  333. def computeImageFeatures2(featuresFinder: cv2.Feature2D, image: cv2.UMat, mask: cv2.UMat | None = ...) -> ImageFeatures: ...
  334. @_typing.overload
  335. def createLaplacePyr(img: cv2.typing.MatLike, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  336. @_typing.overload
  337. def createLaplacePyr(img: cv2.UMat, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  338. @_typing.overload
  339. def createLaplacePyrGpu(img: cv2.typing.MatLike, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  340. @_typing.overload
  341. def createLaplacePyrGpu(img: cv2.UMat, num_levels: int, pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  342. @_typing.overload
  343. def createWeightMap(mask: cv2.typing.MatLike, sharpness: float, weight: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  344. @_typing.overload
  345. def createWeightMap(mask: cv2.UMat, sharpness: float, weight: cv2.UMat) -> cv2.UMat: ...
  346. def focalsFromHomography(H: cv2.typing.MatLike, f0: float, f1: float, f0_ok: bool, f1_ok: bool) -> None: ...
  347. def leaveBiggestComponent(features: _typing.Sequence[ImageFeatures], pairwise_matches: _typing.Sequence[MatchesInfo], conf_threshold: float) -> _typing.Sequence[int]: ...
  348. def matchesGraphAsString(paths: _typing.Sequence[str], pairwise_matches: _typing.Sequence[MatchesInfo], conf_threshold: float) -> str: ...
  349. @_typing.overload
  350. def normalizeUsingWeightMap(weight: cv2.typing.MatLike, src: cv2.typing.MatLike) -> cv2.typing.MatLike: ...
  351. @_typing.overload
  352. def normalizeUsingWeightMap(weight: cv2.UMat, src: cv2.UMat) -> cv2.UMat: ...
  353. def overlapRoi(tl1: cv2.typing.Point, tl2: cv2.typing.Point, sz1: cv2.typing.Size, sz2: cv2.typing.Size, roi: cv2.typing.Rect) -> bool: ...
  354. def restoreImageFromLaplacePyr(pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  355. def restoreImageFromLaplacePyrGpu(pyr: _typing.Sequence[cv2.UMat]) -> _typing.Sequence[cv2.UMat]: ...
  356. @_typing.overload
  357. def resultRoi(corners: _typing.Sequence[cv2.typing.Point], images: _typing.Sequence[cv2.UMat]) -> cv2.typing.Rect: ...
  358. @_typing.overload
  359. def resultRoi(corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> cv2.typing.Rect: ...
  360. def resultRoiIntersection(corners: _typing.Sequence[cv2.typing.Point], sizes: _typing.Sequence[cv2.typing.Size]) -> cv2.typing.Rect: ...
  361. def resultTl(corners: _typing.Sequence[cv2.typing.Point]) -> cv2.typing.Point: ...
  362. def selectRandomSubset(count: int, size: int, subset: _typing.Sequence[int]) -> None: ...
  363. def stitchingLogLevel() -> int: ...
  364. def waveCorrect(rmats: _typing.Sequence[cv2.typing.MatLike], kind: WaveCorrectKind) -> _typing.Sequence[cv2.typing.MatLike]: ...