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

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

Functions

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

Detailed Description

Calculate alignment shifts between slices in I.

Function Documentation

function [ shiftX , shiftY ] = mib_calcShifts (   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: cc - the normalized cross correlation sq - the normalized sum of squared difference xcMatlab - matlab fft correlation
  • .step, step for comparison of images, default=1
  • .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 should as I slice, when 1 - use the first slice
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 windv().

Referenced by mibDriftAlignDlg>continueBtn_Callback().

Here is the call graph for this function:

Here is the caller graph for this function: