Create spatial calibration from image dimensions and physical distance
Source:R/hsi_calibration_from_dims.R
hsi_calibration_from_dims.RdCreate a spatial calibration from total pixel count and total physical distance. Useful when scanner metadata provides the scan length and the image dimensions are known.
Arguments
- pixels
Numeric. Total number of pixels along the measured axis. Single positive value.
- distance
Numeric. Total physical distance corresponding to those pixels. Single positive value. Default
1000.- units
Character. Units of the provided distance. One of
"um"(micrometers),"mm", or"cm". Default"um".
See also
Other HSI Calibration:
hsi_calibration_direct(),
hsi_calibration_from_scale(),
hsi_drop_crs(),
hsi_pixels_to_units(),
hsi_set_extent()