+
    åûj¢  ã                  ó‚   € R t ^ RIHt ^RIHtHtHt ^RIHtH	t	H
t
HtHt ^RIHtHtHtHtHtHtHtHtHtHtHt . ROtR# )a6  Sub-pixel locations from heatmaps and scale-space volumes: soft-argmax, strict NMS and quadratic refinement.

2D coordinates are ``(x, y)`` = (column, row) and 3D ones ``(d, x, y)``, depth first (the scale level of a
scale-space volume), with integer pixel centres; see :ref:`Coordinates and sizes <coordinate-conventions>`. A
``normalized_coordinates=True`` result is in :math:`[-1, 1]`, corner-aligned; the default differs between functions.
A class in parentheses is the module form of the function before it: it stores the arguments.

Which function to use:

- One location per heatmap channel, the softmax-weighted mean over the whole map: :func:`spatial_soft_argmax2d`
  (:class:`SpatialSoftArgmax2d`), or its two steps, :func:`spatial_softmax2d` and :func:`spatial_expectation2d`.
  The other direction, a Gaussian heatmap around a given mean: :func:`render_gaussian2d`.
- One location per sliding window, for maps with several peaks: :func:`conv_soft_argmax2d`
  (:class:`ConvSoftArgmax2d`), and for ``(B, C, D, H, W)`` volumes :func:`conv_soft_argmax3d`
  (:class:`ConvSoftArgmax3d`).
- Strict local maxima: of a map, :func:`nms2d` (:class:`NonMaximaSuppression2d`); of a volume, :func:`nms3d`
  (:class:`NonMaximaSuppression3d`); the maxima and minima of a volume in one call, :func:`nms3d_minmax`.
- Sub-voxel refinement of the maxima of a scale-space volume by a quadratic fit: :class:`AdaptiveQuadInterp3d`, which
  by default runs :func:`conv_quad_interp3d` (:class:`ConvQuadInterp3d`) on CUDA and :func:`iterative_quad_interp3d`
  (:class:`IterativeQuadInterp3d`) elsewhere.
)Úannotations)Úrender_gaussian2dÚspatial_expectation2dÚspatial_softmax2d)ÚNonMaximaSuppression2dÚNonMaximaSuppression3dÚnms2dÚnms3dÚnms3d_minmax)ÚAdaptiveQuadInterp3dÚConvQuadInterp3dÚConvSoftArgmax2dÚConvSoftArgmax3dÚIterativeQuadInterp3dÚSpatialSoftArgmax2dÚconv_quad_interp3dÚconv_soft_argmax2dÚconv_soft_argmax3dÚiterative_quad_interp3dÚspatial_soft_argmax2dN)r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r
   r   r   r   r   )Ú__doc__Ú
__future__r   Údsntr   r   r   Únmsr   r   r   r	   r
   Úspatial_soft_argmaxr   r   r   r   r   r   r   r   r   r   r   Ú__all__© ó    Ú[C:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\kornia\geometry\subpix\__init__.pyÚ<module>r      s6   ðñ$õ, #ç MÑ Mß [Õ [÷÷ ÷ ñ ò‚r   