Estimation API Reference¶
This page documents the parameter estimation functions.
compute_conversion_gain¶
compute_conversion_gain(movie, count_weight_gamma=0.2)
¶
Calculate photon sensitivity and zero level from temporal variance analysis.
This function estimates camera parameters by fitting the noise transfer function from temporal variance. It uses HuberRegressor to robustly fit the relationship between mean signal and variance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
movie
|
ndarray
|
A movie in the format (time, height, width). |
required |
count_weight_gamma
|
float
|
Weighting exponent for pixel counts in regression, by default 0.2. - 0.0: weigh each intensity level equally - 1.0: weigh each intensity in proportion to pixel counts |
0.2
|
Returns:
| Type | Description |
|---|---|
dict
|
|
Raises:
| Type | Description |
|---|---|
AssertionError
|
If movie is not 3-dimensional or if insufficient intensity range is present. |