eyepy.core.utils
DynamicDefaultDict(factory)
default_intensity_transform(data)
Default intensity transform.
By default intensities are not changed.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
ndarray
|
Input data |
required |
Returns:
Type | Description |
---|---|
ndarray
|
Input data unchanged |
drusen(rpe_height, bm_height, volume_shape, minimum_height=2)
Compute drusen from the RPE and BM layer segmentation.
First estimate the ideal RPE based on a histogram of the RPE heights relativ to the BM. Then compute drusen as the area between the RPE and the normal RPE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rpe_height |
NDArrayFloat
|
The RPE height as offset from the lower border of the B-Scan |
required |
bm_height |
NDArrayFloat
|
The BM height as offset from the lower border of the B-Scan |
required |
volume_shape |
tuple[int, int, int]
|
Shape of the OCT volume (number of B-Scans, height, width) |
required |
minimum_height |
int
|
Minimum height of a drusen in pixels |
2
|
Returns:
Type | Description |
---|---|
NDArrayBool
|
A boolean array with the same shape as the OCT volume. True indicates a |
NDArrayBool
|
voxel beeing part of a drusen. |
Source code in src/eyepy/core/utils.py
ideal_rpe(rpe_height, bm_height, volume_shape)
Compute the ideal RPE from an RPE with Drusen.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rpe_height |
NDArrayFloat
|
The RPE height as offset from the lower border of the B-Scan |
required |
bm_height |
NDArrayFloat
|
The BM height as offset from the lower border of the B-Scan |
required |
volume_shape |
tuple[int, int, int]
|
Shape of the OCT volume (number of B-Scans, height, width) |
required |
Returns:
Type | Description |
---|---|
NDArrayFloat
|
The ideal RPE height as offset from the lower border of the B-Scan |
Source code in src/eyepy/core/utils.py
vol_intensity_transform(data)
Wrapper around from_vol_intensity.
Transform intensities from Heyex VOL exports to achieve a constrast similar to the one used in Heyex.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
NDArrayFloat
|
Input data |
required |
Returns:
Type | Description |
---|---|
NDArrayInt
|
Transformed data |