__init__.py 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. # LICENSE HEADER MANAGED BY add-license-header
  2. #
  3. # Copyright 2018 Kornia Team
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. from .affine_shape import LAFAffineShapeEstimator, LAFAffNetShapeEstimator, PatchAffineShapeEstimator
  18. from .dedode import DeDoDe
  19. from .defmo import DeFMO
  20. from .disk import DISK, DISKFeatures
  21. from .hardnet import HardNet, HardNet8
  22. from .hynet import TLU, FilterResponseNorm2d, HyNet
  23. from .integrated import (
  24. GFTTAffNetHardNet,
  25. HesAffNetHardNet,
  26. KeyNetAffNetHardNet,
  27. KeyNetHardNet,
  28. LAFDescriptor,
  29. LightGlueMatcher,
  30. LocalFeature,
  31. LocalFeatureMatcher,
  32. SIFTFeature,
  33. SIFTFeatureScaleSpace,
  34. get_laf_descriptors,
  35. )
  36. from .keynet import KeyNet, KeyNetDetector
  37. from .laf import (
  38. KORNIA_CHECK_LAF,
  39. denormalize_laf,
  40. ellipse_to_laf,
  41. extract_patches_from_pyramid,
  42. extract_patches_simple,
  43. get_laf_center,
  44. get_laf_orientation,
  45. get_laf_scale,
  46. laf_from_center_scale_ori,
  47. laf_from_three_points,
  48. laf_is_inside_image,
  49. laf_to_boundary_points,
  50. laf_to_three_points,
  51. make_upright,
  52. normalize_laf,
  53. perspective_transform_lafs,
  54. rotate_laf,
  55. scale_laf,
  56. set_laf_orientation,
  57. )
  58. from .lightglue import LightGlue
  59. from .lightglue_onnx import OnnxLightGlue
  60. from .loftr import LoFTR
  61. from .matching import (
  62. DescriptorMatcher,
  63. GeometryAwareDescriptorMatcher,
  64. match_adalam,
  65. match_fginn,
  66. match_mnn,
  67. match_nn,
  68. match_smnn,
  69. match_snn,
  70. )
  71. from .mkd import MKDDescriptor
  72. from .orientation import LAFOrienter, OriNet, PatchDominantGradientOrientation
  73. from .responses import (
  74. BlobDoG,
  75. BlobDoGSingle,
  76. BlobHessian,
  77. CornerGFTT,
  78. CornerHarris,
  79. dog_response,
  80. dog_response_single,
  81. gftt_response,
  82. harris_response,
  83. hessian_response,
  84. )
  85. from .scale_space_detector import MultiResolutionDetector, PassLAF, ScaleSpaceDetector
  86. from .siftdesc import DenseSIFTDescriptor, SIFTDescriptor
  87. from .sold2 import SOLD2, SOLD2_detector
  88. from .sosnet import SOSNet
  89. from .tfeat import TFeat
  90. __all__ = [
  91. "DISK",
  92. "KORNIA_CHECK_LAF",
  93. "SOLD2",
  94. "TLU",
  95. "BlobDoG",
  96. "BlobDoGSingle",
  97. "BlobHessian",
  98. "CornerGFTT",
  99. "CornerHarris",
  100. "DISKFeatures",
  101. "DeDoDe",
  102. "DeFMO",
  103. "DenseSIFTDescriptor",
  104. "DescriptorMatcher",
  105. "DescriptorMatcher",
  106. "FilterResponseNorm2d",
  107. "GFTTAffNetHardNet",
  108. "GFTTAffNetHardNet",
  109. "GeometryAwareDescriptorMatcher",
  110. "HardNet",
  111. "HardNet8",
  112. "HesAffNetHardNet",
  113. "HyNet",
  114. "KeyNet",
  115. "KeyNet",
  116. "KeyNetAffNetHardNet",
  117. "KeyNetDetector",
  118. "KeyNetHardNet",
  119. "LAFAffNetShapeEstimator",
  120. "LAFAffineShapeEstimator",
  121. "LAFDescriptor",
  122. "LAFDescriptor",
  123. "LAFOrienter",
  124. "LightGlue",
  125. "LightGlueMatcher",
  126. "LoFTR",
  127. "LocalFeature",
  128. "LocalFeature",
  129. "LocalFeatureMatcher",
  130. "LocalFeatureMatcher",
  131. "MKDDescriptor",
  132. "MultiResolutionDetector",
  133. "OnnxLightGlue",
  134. "OriNet",
  135. "PassLAF",
  136. "PatchAffineShapeEstimator",
  137. "PatchDominantGradientOrientation",
  138. "SIFTDescriptor",
  139. "SIFTFeature",
  140. "SIFTFeature",
  141. "SIFTFeatureScaleSpace",
  142. "SOLD2_detector",
  143. "SOSNet",
  144. "ScaleSpaceDetector",
  145. "TFeat",
  146. "denormalize_laf",
  147. "dog_response",
  148. "dog_response_single",
  149. "ellipse_to_laf",
  150. "extract_patches_from_pyramid",
  151. "extract_patches_simple",
  152. "get_laf_center",
  153. "get_laf_descriptors",
  154. "get_laf_descriptors",
  155. "get_laf_orientation",
  156. "get_laf_scale",
  157. "gftt_response",
  158. "harris_response",
  159. "hessian_response",
  160. "laf_from_center_scale_ori",
  161. "laf_from_three_points",
  162. "laf_is_inside_image",
  163. "laf_to_boundary_points",
  164. "laf_to_three_points",
  165. "make_upright",
  166. "match_adalam",
  167. "match_fginn",
  168. "match_mnn",
  169. "match_mnn",
  170. "match_nn",
  171. "match_nn",
  172. "match_smnn",
  173. "match_smnn",
  174. "match_snn",
  175. "match_snn",
  176. "normalize_laf",
  177. "perspective_transform_lafs",
  178. "rotate_laf",
  179. "scale_laf",
  180. "set_laf_orientation",
  181. ]