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

Calculate image resolution in Inch as default for saving tifs. More...

Functions

function resolution = mibCalculateResolution (pixSize)
 Calculate image resolution in Inch as default for saving tifs.
 

Detailed Description

Calculate image resolution in Inch as default for saving tifs.

Function Documentation

◆ mibCalculateResolution()

function resolution = mibCalculateResolution ( pixSize)

Calculate image resolution in Inch as default for saving tifs.

Parameters
pixSizea structure with voxel physical dimensions, the three following fields are used:
  • .x - physical width of the pixel
  • .y - physical height of the pixel
  • .units - physical units: 'm', 'cm', 'mm', 'um', 'nm'
Return values
resolutiona vector [XResolution, YResolution] in Pixels/Inch
Required fields of pixSize:

Referenced by mibUpdatePixSizeAndResolution(), mibBoundingBoxController.okBtn_Callback(), mibResampleController.resampleBtn_Callback(), and mibImage.updatePixSizeResolution().

Here is the caller graph for this function: