![]() |
Microscopy Image Browser
1.233
|
Recalculate pixel size (width, height) of the dataset to new units. More...
Functions | |
| function
pixSize = | ib_calculatePixSizes (resolution, unitFrom, unitTo) |
| Recalculate pixel size (width, height) of the dataset to new units. More... | |
Recalculate pixel size (width, height) of the dataset to new units.
| function pixSize = ib_calculatePixSizes | ( | 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 ib_updatePixSizeAndResolution().
