-
Notifications
You must be signed in to change notification settings - Fork 42
Specifying a threshold for approximate detection of molecules
- Examples
- Types of variables
- Main syntax rules
- Built-in operators
- Built-in functions
- Variables provided by different feature enhancement filters
ThunderSTORM uses a single-valued intensity threshold which is updated for every raw input image and applied to the filtered image. The threshold value can be specified by users as an expression combining mathematical functions and operators with variables based on the current raw or filtered image. This is a powerful option, because users can specify the threshold value systematically for unknown input images, where the global intensity may slowly fluctuate over time.
Use the Preview button in the Run analysis window to see which molecules are detected with the current settings. This can be useful for fine-tuning the threshold value given by the formula.
The formula interpreter provides several built-in statistical functions and some predefined variables. A brief description of the syntax and semantic rules follows:
150
3*std(Wave.F1)
0.2+min(F)
- Scalar → a number
- Matrix → an image
- all names are case insensitive
- use a period (
.
) as a decimal point delimiter
-
a + b
→ addition -
a – b
→ subtraction -
a * b
→ multiplication -
a / b
→ division -
a % b
→ modulo -
a ^ b
→b
-th power ofa
Semantics (all matrix operations are performed element-wise; matrices must have the same size):
scalar + scalar = scalar
matrix + matrix = matrix
-
matrix + scalar = matrix
(scalar is added to each element of the matrix)
-
var(x)
→ variance ofx
-
std(x)
→ standard deviation ofx
-
mean(x)
→ mean value ofx
-
median(x)
→ median ofx
-
min(x)
→ minimum inx
-
max(x)
→ maximum inx
-
sum(x)
→ sum of all items inx
-
abs(x)
→ absolute value ofx
All the filters provide these variables:
-
I
→ input image without any changes -
F
→ final filtered image
Variables representing the filters:
-
Box.F
→ Averaging (Box) filter -
Med.F
→ Median filter -
Gauss.F
→ Gaussian filter -
LowGauss.F
→ Lowered Gaussian filter -
DoG.F
→ Difference-of-Gaussians filter-
DoG.G1
→ Input image filtered by 1st Gaussian function of DoG filter -
DoG.G2
→ Input image filtered by 2nd Gaussian function of DoG filter
-
-
DoB.F
→ Difference of averaging filters-
DoB.B1
→ Input image filtered by 1st Box of DoB filter -
DoB.B2
→ Input image filtered by 2nd Box of DoB filter
-
-
Wave.F
→ Wavelet filter-
Wave.F1
→ 1st Wavelet level of the input image -
Wave.F2
→ 2nd Wavelet level of the input image
-
Home | About | Downloads | Installation | Tutorials | Guidelines | FAQ | Developers | Discussion