3a2c66702c
Lint / TOML Format (push) Waiting to run
Tests on CPU (scheduled) / check-skip (push) Waiting to run
Tests on CPU (scheduled) / pre-tests (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-ubuntu (float32) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-ubuntu (float64) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float32, 2.5.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float32, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float64, 2.5.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.11, float64, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float32, 2.5.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float32, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float64, 2.5.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.12, float64, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.13, float32, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-windows (3.13, float64, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-mac (3.11, float32, 2.5.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-mac (3.11, float32, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-mac (3.12, float32, 2.5.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-mac (3.12, float32, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / tests-cpu-mac (3.13, float32, 2.9.1) (push) Blocked by required conditions
Tests on CPU (scheduled) / coverage (push) Blocked by required conditions
Tests on CPU (scheduled) / typing (push) Blocked by required conditions
Tests on CPU (scheduled) / tutorials (push) Blocked by required conditions
Tests on CPU (scheduled) / docs (push) Blocked by required conditions
110 lines
2.9 KiB
ReStructuredText
110 lines
2.9 KiB
ReStructuredText
kornia.geometry.transform
|
|
=========================
|
|
|
|
.. meta::
|
|
:name: description
|
|
:content: "The kornia.geometry.transform module provides a comprehensive set of functions for performing various geometric transformations on 2D and 3D images. It includes operators for warping, affine, and perspective transformations, as well as tools for resizing, scaling, rotating, and shearing images. Additionally, it supports advanced image registration techniques, pyramid building, and non-rigid transformations such as elastic transforms. This module is essential for tasks requiring image manipulation and alignment in computer vision and image processing workflows."
|
|
|
|
.. currentmodule:: kornia.geometry.transform
|
|
|
|
The functions in this section perform various geometrical transformations of 2D images.
|
|
|
|
|
|
Warp operators
|
|
--------------
|
|
|
|
.. autofunction:: warp_perspective
|
|
.. autofunction:: warp_perspective3d
|
|
.. autofunction:: warp_affine
|
|
.. autofunction:: warp_affine3d
|
|
.. autofunction:: warp_image_tps
|
|
.. autofunction:: warp_points_tps
|
|
.. autofunction:: warp_grid
|
|
.. autofunction:: warp_grid3d
|
|
.. autofunction:: remap
|
|
|
|
Image 2d transforms
|
|
-------------------
|
|
|
|
.. autofunction:: affine
|
|
.. autofunction:: rotate
|
|
.. autofunction:: translate
|
|
.. autofunction:: scale
|
|
.. autofunction:: shear
|
|
.. autofunction:: hflip
|
|
.. autofunction:: vflip
|
|
.. autofunction:: rot180
|
|
.. autofunction:: resize
|
|
.. autofunction:: rescale
|
|
.. autofunction:: elastic_transform2d
|
|
.. autofunction:: pyrdown
|
|
.. autofunction:: pyrup
|
|
.. autofunction:: build_pyramid
|
|
.. autofunction:: build_laplacian_pyramid
|
|
|
|
Matrix transformations
|
|
----------------------
|
|
|
|
.. autofunction:: get_perspective_transform
|
|
.. autofunction:: get_perspective_transform3d
|
|
.. autofunction:: get_projective_transform
|
|
.. autofunction:: get_rotation_matrix2d
|
|
.. autofunction:: get_shear_matrix2d
|
|
.. autofunction:: get_shear_matrix3d
|
|
.. autofunction:: get_affine_matrix2d
|
|
.. autofunction:: get_affine_matrix3d
|
|
.. autofunction:: invert_affine_transform
|
|
.. autofunction:: projection_from_Rt
|
|
.. autofunction:: get_tps_transform
|
|
|
|
Crop operators
|
|
--------------
|
|
|
|
.. autofunction:: crop_by_indices
|
|
.. autofunction:: crop_by_boxes
|
|
.. autofunction:: center_crop
|
|
.. autofunction:: crop_and_resize
|
|
|
|
Module
|
|
------
|
|
|
|
|
|
|
|
.. autoclass:: Rotate
|
|
.. autoclass:: Translate
|
|
.. autoclass:: Scale
|
|
.. autoclass:: Shear
|
|
.. autoclass:: PyrDown
|
|
.. autoclass:: PyrUp
|
|
.. autoclass:: ScalePyramid
|
|
.. autoclass:: Hflip
|
|
.. autoclass:: Vflip
|
|
.. autoclass:: Rot180
|
|
.. autoclass:: Resize
|
|
.. autoclass:: Rescale
|
|
.. autoclass:: Affine
|
|
.. autoclass:: HomographyWarper
|
|
|
|
|
|
Image registration
|
|
------------------
|
|
|
|
.. image:: _static/img/registration.gif
|
|
:width: 400
|
|
:alt: Image registration with ImageRegistrator module
|
|
|
|
.. automodule:: kornia.geometry.transform.image_registrator
|
|
:members:
|
|
|
|
Interactive Demo
|
|
----------------
|
|
|
|
.. raw:: html
|
|
|
|
<gradio-app src="kornia/kornia-resize-antialias"></gradio-app>
|
|
|
|
|
|
.. raw:: html
|
|
|
|
<gradio-app src="kornia/geometry_image_transform_with_kornia"></gradio-app>
|