Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibCalculatePixSizes.m File Reference

Recalculate pixel size (width, height) of the dataset to new units. More...

Functions

function pixSize = mibCalculatePixSizes (resolution, unitFrom, unitTo)
 Recalculate pixel size (width, height) of the dataset to new units.
 

Detailed Description

Recalculate pixel size (width, height) of the dataset to new units.

Function Documentation

◆ mibCalculatePixSizes()

function pixSize = mibCalculatePixSizes ( resolution,
unitFrom,
unitTo )

Recalculate pixel size (width, height) of the dataset to new units.

Parameters
resolutiona vector with current resolution of the dataset [XResolution, YResolution]
unitFromsource units - 'm', 'cm', 'mm', 'um', 'nm'
unitTodesired units - 'Inch', 'Centimeter', 'Meter'
Return values
pixSizea structure with voxel sizes, the two fields are updated, .x - physical width of the pixel .y - physical height of the pixel
Generated fields of pixSize:

Referenced by mibUpdatePixSizeAndResolution().

Here is the caller graph for this function: