API reference#
One page per kornia module, grouped by what you are trying to do. Image operators take batched
(B, C, H, W) float tensors in [0, 1] and follow the conventions
(points, boxes, local features and camera matrices have their own layouts, documented on their pages);
most functions also have an nn.Module counterpart.
Image processing#
Color space conversions, color maps and Bayer RAW processing. |
|
Blurring, edge detection, thresholding and custom kernels. |
|
Intensity adjustments, histogram equalization, normalization and a differentiable JPEG codec. |
|
Dilation, erosion, opening, closing, gradient, top hat and bottom hat. |
Geometry & 3D#
Warps, camera models, conversions, epipolar geometry, Lie groups, RANSAC and more. |
|
Experimental camera model API. |
Training#
Random and deterministic augmentations for images, masks, boxes, keypoints and video, with transform tracking and inversion. |
|
Reconstruction, segmentation, distribution and morphology losses. |
|
Classification, segmentation, detection, image quality, flow, stereo and pose metrics. |
Features & matching#
Local feature detectors, descriptors and matchers, classical and learned. |
Models#
Builders for the pretrained detection, edge detection, segmentation and tracking models. |
|
Experimental operators and model wrappers: face detection, object detection, visual prompting, image stitching, KMeans. |
|
Homography tracking. |
Data & deployment#
Load and save images as tensors. |
|
Image container, drawing, tensor/NumPy conversion. |
|
Run and chain ONNX models with ONNX Runtime. |
|
Tensor wrapper and shared utilities. |