Performs background subtraction for a directory of images with various methods. The method choices are:
Example:
Source | Output |
---|---|
![]() | ![]() |
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 |
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. |
Name | Type | Description |
---|---|---|
out | ImageList | Subtracted images. |
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 case | Parameters▼ | IN in |
IN opt |
OUT out |
||
---|---|---|---|---|---|---|
case1 | properties | in | (missing) | out | ||
method=Mean, |
||||||
case2 | properties | in | opt | out | ||
method=Opt |