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

Calculate alignment shifts between slices in I. More...

Functions

function [ shiftX , shiftY ] = mibCalcShifts (I, options)
 Calculate alignment shifts between slices in I.
 

Detailed Description

Calculate alignment shifts between slices in I.

Function Documentation

◆ mibCalcShifts()

function [ shiftX , shiftY ] = mibCalcShifts ( I,
options )

Calculate alignment shifts between slices in I.

Parameters
Ia stack to align in format: [1:height, 1:width, 1:depth]
optionsan optional structure with parameters
  • .method -> method: Drift correction, Template matching
  • .refFrame, a number with the reference slice: when 0 - use the previous
  • .mask, an optional mask image to select subareas to use for alignment,
  • .waitbar, [optional] a handle to an existing waitbar, when empty do not show waitbar
Return values
shiftXa vector with absolute shifts in the X-plane, the shifts are calculated relative to the first slice
shiftYa vector with absolute shifts in the Y-plane, the shifts are calculated relative to the first slice
Required fields of options:

References max, and windv().

Referenced by mibAlignmentController.continueBtn_Callback().

Here is the call graph for this function:
Here is the caller graph for this function: