Up: Component summary Component

BackgroundSubtract

Performs background subtraction for a directory of images with various methods. The method choices are:

If the inputs are color images, each channel is handled separately.

Example:

SourceOutput

Version 1.1
Bundle anima
Categories Image Processing
Authors Ville Rantanen (ville.rantanen@helsinki.fi)
Issue tracker View/Report issues
Requires Matlab
Source files component.xml imagesubtract.m execute.m
Usage Example with default values

Inputs

Name Type Mandatory Description
in ImageList Mandatory A directory with image files.
opt ImageList Optional A directory with grayscale image files to be subtracted from the dir images if method is opt.

Outputs

Name Type Description
out ImageList Subtracted images.

Parameters

Name Type Default Description
method string "Mean" Method for background subtraction. Choose from 'Constant', 'Mean', 'Blur', 'Gaussian', 'Opt', 'Open','Close'.
par float 1 Parameter for the methods. For Constant, it is the value to be removed. For Mean, it is a correction coeffecient which will be multiplied to the calculated mean. For Blur, it is the integer radius of the low pass filter. A value bigger than the expected object size should be used. For Gaussian, it is the sigma of the filter. A value bigger than the expected object size should be used. For Opt, the parameter is not used. For Open or Close, the par is the radius of the disk shaped structure element.
stretch boolean false Maximize the intensities of the image after subtraction.

Test cases

Test case Parameters IN
in
IN
opt
OUT
out
case1 properties in (missing) out

method=Mean,
par=1

case2 properties in opt out

method=Opt


Generated 2018-12-12 07:42:05 by Anduril 2.0.0