Skip to contents

Create a spatial calibration when the pixel size is known directly. This is the simplest calibration path. The value is stored internally in micrometers per pixel.

Usage

hsi_calibration_direct(resolution, units = "um")

Arguments

resolution

Numeric. Pixel size in the specified units. Single positive value.

units

Character. Units of the provided resolution. One of "um" (micrometers), "mm", or "cm". Default "um".

Value

A named numeric with resolution in µm/px, named "um_per_px".

Examples

calibration <- hsi_calibration_direct(60)

calibration <- hsi_calibration_direct(0.06, units = "mm")