eyepy.core.eyevolume
EyeVolume(data, meta=None, localizer=None, transformation=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
NDArray[float32]
|
A 3D numpy array containing the OCT data in shape (n_bscans, bscan_height, bscan_width) |
required |
meta
|
Optional[EyeVolumeMeta]
|
Optional EyeVolumeMeta object. |
None
|
localizer
|
Optional[EyeEnface]
|
|
None
|
transformation
|
Optional[_GeometricTransform]
|
|
None
|
Source code in src/eyepy/core/eyevolume.py
data
property
Returns:
data_par
property
Returns:
laterality
property
writable
Returns:
layers
property
Returns:
scale
property
writable
Returns:
scale_unit
property
writable
Returns:
scale_x
property
writable
Returns:
scale_y
property
writable
Returns:
scale_z
property
writable
Returns:
shape
property
writable
Returns:
size_x
property
writable
Returns:
size_y
property
writable
Returns:
size_z
property
writable
Returns:
slabs
property
Returns:
volume_maps
property
Returns:
__getitem__(index)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index
|
Union[SupportsIndex, slice]
|
|
required |
Returns:
Source code in src/eyepy/core/eyevolume.py
__len__()
add_layer_annotation(height_map=None, meta=None, **kwargs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
height_map
|
Optional[NDArray[float64]]
|
Height in shape (n_Bscans, Bscan_width) The first index refers to the bottom most B-scan |
None
|
meta
|
Optional[dict]
|
name, current_color, and knots |
None
|
**kwargs
|
Any
|
|
{}
|
Returns:
Source code in src/eyepy/core/eyevolume.py
add_pixel_annotation(voxel_map=None, meta=None, **kwargs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
voxel_map
|
Optional[NDArray[bool_]]
|
|
None
|
meta
|
Optional[dict]
|
|
None
|
**kwargs
|
Any
|
|
{}
|
Returns:
Source code in src/eyepy/core/eyevolume.py
add_slab_annotation(meta=None, **kwargs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
meta
|
Optional[dict]
|
Metadata for the slab annotation |
None
|
**kwargs
|
Any
|
Additional keyword arguments |
{}
|
Returns:
Name | Type | Description |
---|---|---|
EyeVolumeSlabAnnotation |
EyeVolumeSlabAnnotation
|
The created slab annotation |
Source code in src/eyepy/core/eyevolume.py
load(path)
classmethod
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Union[str, Path]
|
|
required |
Returns:
Source code in src/eyepy/core/eyevolume.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
|
plot(ax=None, projections=False, slabs=False, bscan_region=False, bscan_positions=False, quantification=None, region=np.s_[:, :], annotations_only=False, projection_kwargs=None, slab_kwargs=None, line_kwargs=None, scalebar='botleft', scalebar_kwargs=None, watermark=True)
Plot an annotated OCT localizer image.
If the volume does not provide a localizer image an enface projection of the OCT volume is used instead.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ax
|
Optional[Axes]
|
Axes to plot on. If not provided plot on the current axes (plt.gca()). |
None
|
projections
|
Union[bool, list[str]]
|
If |
False
|
slabs
|
Union[bool, list[str]]
|
If |
False
|
bscan_region
|
bool
|
If |
False
|
bscan_positions
|
Union[bool, list[int]]
|
If |
False
|
quantification
|
Optional[str]
|
Name of the OCT volume annotations to plot a quantification for (default: |
None
|
region
|
tuple[slice, slice]
|
Region of the localizer to plot (default: |
s_[:, :]
|
annotations_only
|
bool
|
If |
False
|
projection_kwargs
|
Optional[dict]
|
Optional keyword arguments for the projection plots. If |
None
|
slab_kwargs
|
Optional[dict]
|
Optional keyword arguments for the slab plots. If |
None
|
line_kwargs
|
Optional[dict]
|
Optional keyword arguments for customizing the lines to show B-scan region and positions plots. If |
None
|
scalebar
|
Union[bool, str]
|
Position of the scalebar, one of "topright", "topleft", "botright", "botleft" or |
'botleft'
|
scalebar_kwargs
|
Optional[dict]
|
Optional keyword arguments for customizing the scalebar. Check the documentation of plot_scalebar for more information. |
None
|
watermark
|
bool
|
If |
True
|
Returns: None
Source code in src/eyepy/core/eyevolume.py
723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 |
|
remove_layer_annotation(name)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
|
required |
Returns:
Source code in src/eyepy/core/eyevolume.py
remove_pixel_annotation(name)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
|
required |
Returns:
Source code in src/eyepy/core/eyevolume.py
remove_slab_annotation(name)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
|
required |
Returns:
Source code in src/eyepy/core/eyevolume.py
save(path)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Union[str, Path]
|
|
required |
Returns:
Source code in src/eyepy/core/eyevolume.py
set_intensity_transform(func)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
func
|
Union[str, Callable]
|
Either a string specifying a transform from eyepy.core.utils.intensity_transforms or a function |
required |
Returns:
Source code in src/eyepy/core/eyevolume.py
set_par_algorithm(func)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
func
|
Union[str, Callable]
|
Either a string specifying a par algorithm from eyepy.core.utils.par_algorithms or a function |
required |
Returns: