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

Filter image with basic Matlab filters. More...

Functions

function [ img ,

logText ] = 
ib_doImageFiltering (img, options)
 Filter image with basic Matlab filters. More...
 

Detailed Description

Filter image with basic Matlab filters.

Function Documentation

function [ img , logText ] = ib_doImageFiltering (   img,
  options 
)

Filter image with basic Matlab filters.

Parameters
img-> image stack, [1:height, 1:width, 1:color, 1:layers]
options-> a structure with parameters
  • .dataType - type of the dataset, '4D' - [height, width, color, z], '3D' - [height, width, z]
  • .fitType - type of the filter to use: 'Gaussian 3d', 'Gaussian', 'Disk', 'Motion', 'Unsharp','Median 2D','Wiener 2D', 'Average', 'Motion'
  • .colorChannel - color channel to filter, when 0 filter all channels
  • .hSize - size of the Kernel to use, or Ratio for the Frangi filter
  • .sigma - sigma for the filters, or Ratio for the Frangi filter (if required)
  • .lambda - lambda for the filters, or beta1 for Frangi (if required)
  • .beta2 - beta2 value for Frangi filter (if required)
  • .beta3 - beta3 value for Frangi 3D filter (if required)
  • .BlackWhite - BlackWhite switch indicating black ridges over white background for Frangi filter (if required)
  • .pixSize - voxel sizes for 3D gaussian (imageData.pixSize.x imageData.pixSize.y imageData.pixSize.z)
  • .orientation - orientation of the dataset for 2D filters, 1-for XZ, 2 - YZ, 4 - XY
  • .showWaitbar - [optional], when 1-default, show the wait bar, when 0 - do not show the waitbar
Return values
imgfiltered dataset, [1:height, 1:width, 1:color, 1:no_stacks]
logTextlog text with parameters of the applied filter
Required fields of options:

References FrangiFilter2D(), and FrangiFilter3D().

Referenced by ib_renderVolumeWithFiji(), ib_smoothImage(), and imageFilterDoitBtn_Callback().

Here is the call graph for this function:

Here is the caller graph for this function: