|
10 | 10 | # Ignore errors for [24] untyped generics. |
11 | 11 | # pyre-ignore-all-errors[24] |
12 | 12 |
|
| 13 | +from __future__ import annotations |
| 14 | + |
| 15 | +import typing |
| 16 | + |
13 | 17 | import numpy |
14 | | -from typing import * |
15 | 18 |
|
16 | | -__all__ = [ |
| 19 | +__all__: list[str] = [ |
17 | 20 | "DepthmapCleaner", |
18 | 21 | "DepthmapEstimator", |
19 | 22 | "DepthmapPruner", |
20 | 23 | "OpenMVSExporter", |
21 | | - "StaticExtensionLoader", |
22 | 24 | ] |
23 | 25 |
|
24 | 26 | class DepthmapCleaner: |
25 | 27 | def __init__(self) -> None: ... |
26 | 28 | def add_view( |
27 | 29 | self, |
28 | | - arg0: numpy.typing.NDArray, |
29 | | - arg1: numpy.typing.NDArray, |
30 | | - arg2: numpy.typing.NDArray, |
31 | | - arg3: numpy.typing.NDArray, |
| 30 | + arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 31 | + arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 32 | + arg2: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 33 | + arg3: typing.Annotated[numpy.typing.ArrayLike, numpy.float32], |
| 34 | + ) -> None: ... |
| 35 | + def clean(self) -> numpy.typing.NDArray[numpy.float32]: ... |
| 36 | + def set_min_consistent_views( |
| 37 | + self, arg0: typing.SupportsInt | typing.SupportsIndex |
| 38 | + ) -> None: ... |
| 39 | + def set_same_depth_threshold( |
| 40 | + self, arg0: typing.SupportsFloat | typing.SupportsIndex |
32 | 41 | ) -> None: ... |
33 | | - def clean(self) -> numpy.typing.NDArray: ... |
34 | | - def set_min_consistent_views(self, arg0: int) -> None: ... |
35 | | - def set_same_depth_threshold(self, arg0: float) -> None: ... |
36 | 42 |
|
37 | 43 | class DepthmapEstimator: |
38 | 44 | def __init__(self) -> None: ... |
39 | 45 | def add_view( |
40 | 46 | self, |
41 | | - arg0: numpy.typing.NDArray, |
42 | | - arg1: numpy.typing.NDArray, |
43 | | - arg2: numpy.typing.NDArray, |
44 | | - arg3: numpy.typing.NDArray, |
45 | | - arg4: numpy.typing.NDArray, |
| 47 | + arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 48 | + arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 49 | + arg2: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 50 | + arg3: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8], |
| 51 | + arg4: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8], |
46 | 52 | ) -> None: ... |
47 | 53 | def compute_brute_force(self) -> list: ... |
48 | 54 | def compute_patch_match(self) -> list: ... |
49 | 55 | def compute_patch_match_sample(self) -> list: ... |
50 | | - def set_depth_range(self, arg0: float, arg1: float, arg2: int) -> None: ... |
51 | | - def set_min_patch_sd(self, arg0: float) -> None: ... |
52 | | - def set_patch_size(self, arg0: int) -> None: ... |
53 | | - def set_patchmatch_iterations(self, arg0: int) -> None: ... |
| 56 | + def set_depth_range( |
| 57 | + self, |
| 58 | + arg0: typing.SupportsFloat | typing.SupportsIndex, |
| 59 | + arg1: typing.SupportsFloat | typing.SupportsIndex, |
| 60 | + arg2: typing.SupportsInt | typing.SupportsIndex, |
| 61 | + ) -> None: ... |
| 62 | + def set_min_patch_sd( |
| 63 | + self, arg0: typing.SupportsFloat | typing.SupportsIndex |
| 64 | + ) -> None: ... |
| 65 | + def set_patch_size( |
| 66 | + self, arg0: typing.SupportsInt | typing.SupportsIndex |
| 67 | + ) -> None: ... |
| 68 | + def set_patchmatch_iterations( |
| 69 | + self, arg0: typing.SupportsInt | typing.SupportsIndex |
| 70 | + ) -> None: ... |
54 | 71 |
|
55 | 72 | class DepthmapPruner: |
56 | 73 | def __init__(self) -> None: ... |
57 | 74 | def add_view( |
58 | 75 | self, |
59 | | - arg0: numpy.typing.NDArray, |
60 | | - arg1: numpy.typing.NDArray, |
61 | | - arg2: numpy.typing.NDArray, |
62 | | - arg3: numpy.typing.NDArray, |
63 | | - arg4: numpy.typing.NDArray, |
64 | | - arg5: numpy.typing.NDArray, |
65 | | - arg6: numpy.typing.NDArray, |
| 76 | + arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 77 | + arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 78 | + arg2: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 79 | + arg3: typing.Annotated[numpy.typing.ArrayLike, numpy.float32], |
| 80 | + arg4: typing.Annotated[numpy.typing.ArrayLike, numpy.float32], |
| 81 | + arg5: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8], |
| 82 | + arg6: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8], |
66 | 83 | ) -> None: ... |
67 | 84 | def prune(self) -> list: ... |
68 | | - def set_same_depth_threshold(self, arg0: float) -> None: ... |
| 85 | + def set_same_depth_threshold( |
| 86 | + self, arg0: typing.SupportsFloat | typing.SupportsIndex |
| 87 | + ) -> None: ... |
69 | 88 |
|
70 | 89 | class OpenMVSExporter: |
71 | 90 | def __init__(self) -> None: ... |
72 | 91 | def add_camera( |
73 | | - self, arg0: str, arg1: numpy.typing.NDArray, arg2: int, arg3: int |
| 92 | + self, |
| 93 | + arg0: str, |
| 94 | + arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 95 | + arg2: typing.SupportsInt | typing.SupportsIndex, |
| 96 | + arg3: typing.SupportsInt | typing.SupportsIndex, |
| 97 | + ) -> None: ... |
| 98 | + def add_point( |
| 99 | + self, arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], arg1: list |
74 | 100 | ) -> None: ... |
75 | | - def add_point(self, arg0: numpy.typing.NDArray, arg1: list) -> None: ... |
76 | 101 | def add_shot( |
77 | 102 | self, |
78 | 103 | arg0: str, |
79 | 104 | arg1: str, |
80 | 105 | arg2: str, |
81 | 106 | arg3: str, |
82 | | - arg4: numpy.typing.NDArray, |
83 | | - arg5: numpy.typing.NDArray, |
| 107 | + arg4: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
| 108 | + arg5: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], |
84 | 109 | ) -> None: ... |
85 | 110 | def export(self, arg0: str) -> None: ... |
86 | | - |
87 | | -class StaticExtensionLoader: |
88 | | - pass |
|
0 commit comments