eyepy.io
import_bscan_folder(path)
Read B-Scans from a folder.
This function can be used to read B-scans from a folder in case that there is no additional metadata available.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the folder containing the B-Scans |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Source code in src/eyepy/io/__init__.py
import_duke_mat(path)
Import an OCT volume from the Duke dataset.
The dataset is available at https://people.duke.edu/~sf59/RPEDC_Ophth_2013_dataset.htm OCT volumes are stored as .mat files which are parsed by this function and returned as EyeVolume object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the .mat file |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Source code in src/eyepy/io/__init__.py
import_dukechiu2_mat(path)
Import an OCT volume from the Duke dataset (Chiu_BOE_2014).
The dataset is available at https://people.duke.edu/~sf59/Chiu_BOE_2014_dataset.htm OCT volumes are stored as .mat files which are parsed by this function and returned as EyeVolume object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the .mat file |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Source code in src/eyepy/io/__init__.py
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
|
import_heyex_e2e(path)
Read a Heyex E2E file.
This function is a thin wrapper around the HeE2eReader class and returns the first of potentially multiple OCT volumes. If you want to read all volumes, or need more control, you can use the HeE2eReader class directly.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the E2E file |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Source code in src/eyepy/io/__init__.py
import_heyex_vol(path)
Read a Heyex VOL file.
This function is a thin wrapper around the HeVolReader class which you can use directly if you need more control.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the VOL file |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Source code in src/eyepy/io/__init__.py
import_heyex_xml(path)
Read a Heyex XML file.
This function is a thin wrapper around the HeXmlReader class which you can use directly if you need more control.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the XML file or the folder containing the XML file |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Source code in src/eyepy/io/__init__.py
import_retouch(path)
Import an OCT volume from the Retouch dataset.
The dataset is available upon request at https://retouch.grand-challenge.org/ Reading the data requires the ITK library to be installed. You can install it with pip:
pip install itk
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the folder containing the OCT volume |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Source code in src/eyepy/io/__init__.py
import_topcon_fda(path)
Read a Topcon fda file.
This function is a wrapper around the FDA reader in OCT-Converter.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Union[str, Path]
|
Path to the fda file |
required |
Returns:
Type | Description |
---|---|
EyeVolume
|
Parsed data as EyeVolume object |
Notes
B-scan position and scaling data is computed assuming that B-scans were acquired in a horizontal raster pattern.