Image im

Image im#

im.calculate_image_features(sdata, *[, ...])

Calculate per-cell features from segmentation masks.

im.make_tiles(sdata, *, image_key[, ...])

Create a regular grid of tiles over an image, classify them by tissue coverage, and optionally render a preview.

im.make_tiles_from_spots(sdata, *, spots_key)

Create tiles centered on Visium spots, classify them by tissue coverage, and optionally render a preview.

im.qc_image(sdata, *, image_key[, scale, ...])

Perform quality control analysis on an image.

im.detect_tissue(sdata, *, image_key[, ...])

Detect tissue regions in an image and optionally store an integer-labeled mask.

im.fit_stain_reference(sdata, *, image_key)

Fit a stain reference from an image in a SpatialData object.

im.estimate_white_point(sdata, *, image_key)

Estimate the white point I_0 from a slide's background (non-tissue median).

im.StainFit(method[, stain_matrix, mu, ...])

A fitted stain reference.