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

convert pixel with x, y, z coordinate to the physical imaging units More...

Functions

function [ x , y , z ] = convertPixelsToUnits (x, y, z, bb, pixSize, orientation)
 convert pixel with x, y, z coordinate to the physical imaging units
 

Detailed Description

convert pixel with x, y, z coordinate to the physical imaging units

Function Documentation

◆ convertPixelsToUnits()

function [ x , y , z ] = convertPixelsToUnits ( x,
y,
z,
bb,
pixSize,
orientation )

convert pixel with x, y, z coordinate to the physical imaging units

Note
See also
mibImage.convertPixelsToUnits, this is a copy of the same function taken away from the class
Parameters
x-> x - coordinate in pixels
y-> y - coordinate in pixels
z-> z - coordinate in pixels
bba vector with the bounding box of the dataset
pixSizea structure with the voxel sizes
orientationa number with the orientation of the dataset, 4 for xy
Return values
x-> x - coordinate in physical units, i.e. um
y-> y - coordinate in physical units, i.e. um
z-> z - coordinate in physical units, i.e. um
Required fields of pixSize:

Examples:

[xUnits, xUnits, xUnits] = convertPixelsToUnits(xPixel, xPixel, xPixel, obj.mibModel.I{obj.mibModel.Id}.getBoundingBox(), obj.mibModel.I{obj.mibModel.Id}.pixSize, obj.mibModel.I{obj.mibModel.Id}.orientation);
function [ x , y , z ] = convertPixelsToUnits(x, y, z, bb, pixSize, orientation)
convert pixel with x, y, z coordinate to the physical imaging units
Definition convertPixelsToUnits.m:17

Referenced by Lines3D.replaceGraph().

Here is the caller graph for this function: