![]() |
Microscopy Image Browser 2.91
MIB
|
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. | |
Recalculate pixel size (width, height) of the dataset to new units.
function pixSize = mibCalculatePixSizes | ( | resolution, | |
unitFrom, | |||
unitTo ) |
Recalculate pixel size (width, height) of the dataset to new units.
resolution | a vector with current resolution of the dataset [XResolution, YResolution] |
unitFrom | source units - 'm', 'cm', 'mm', 'um', 'nm' |
unitTo | desired units - 'Inch', 'Centimeter', 'Meter' |
pixSize | a structure with voxel sizes, the two fields are updated, .x - physical width of the pixel .y - physical height of the pixel |
Referenced by mibUpdatePixSizeAndResolution().