Skip to content

API Reference Overview

Welcome to the API reference docs for Iris. This page introduces the major structures, traits, and modules exported by the library.

Main Types

Image

The primary image representation type. It wraps a multi-channel Burn tensor of shape [Channels, Height, Width].

rust
pub struct Image<B: Backend> {
    pub tensor: Tensor<B, 3>,
}

Point

Represents a coordinate pair (x, y) in 2D space.

rust
pub struct Point<T> {
    pub x: T,
    pub y: T,
}

Rect

Defines a 2D bounding rectangle.

rust
pub struct Rect<T> {
    pub x: T,
    pub y: T,
    pub width: T,
    pub height: T,
}

Scalar

A 4-element floating-point array, typically representing color values (e.g. RGBA).

rust
pub struct Scalar(pub [f64; 4]);

Size

A structure defining width and height dimensions.

rust
pub struct Size<T> {
    pub width: T,
    pub height: T,
}

Module Index

ModuleDescription
corePoint, Rect, Size, Scalar, Mat, Rng, image math ops, bitwise ops, normalization.
imageImage struct, open, save, resize, crop, flip, rotate, geometric transforms.
filtersBox, Gaussian, median, bilateral blur, separable filter, distance transform, filter2D.
colorRGB/HSV/HLS/XYZ/Lab/YUV/YCrCb/CMYK conversions, split/merge channels.
edgesSobel, Canny, Scharr, Laplacian, Hough lines, Hough circles.
morphologyDilate, erode, open, close, morphology_ex, custom kernels, hit-or-miss, thinning, skeleton.
thresholdBinary, Otsu, triangle, adaptive thresholding.
histogramHistogram computation, equalization, CLAHE, LUT, comparison, 2D histogram.
drawingLines, rectangles, circles, ellipses, text, polylines, arrows, markers, fill poly.
noiseGaussian, salt-and-pepper, and speckle noise generation.
contoursContour detection, convex hull, moments, shape analysis, hierarchy, convexity defects.
featuresORB feature detection, keypoints, BFMatcher, FLANN matcher, template matching.
trackingMOSSE tracker, MeanShift tracker, background subtraction.
dnnONNX model loading, weight loaders, blob preprocessing, NMS.
videoVideo capture, reading, writing, frame iteration, metadata.
inpaintTelea Fast Marching Method inpainting for damaged image regions.
stereoStereo block matching for disparity map computation.
kalmanDiscrete Kalman filter for state estimation and prediction.
hogHistogram of Oriented Gradients descriptor for feature extraction.
photoNon-Local Means denoising and Mertens exposure fusion.
stitchingImage stitching for panorama creation.

Importing the Prelude

rust
use iris::prelude::*;
use burn::backend::wgpu::Wgpu;

type Backend = Wgpu;

The prelude re-exports all commonly used types: Image, Point, Rect, Scalar, Size, Mat, Tensor, Backend, Result, and all module-specific types.

Released under the MIT License.