Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
ib_calculatePixSizes.m File Reference

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...
 

Detailed Description

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

Function Documentation

function pixSize = ib_calculatePixSizes (   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 ib_updatePixSizeAndResolution().

Here is the caller graph for this function: