optical_reader
OpticalReader
OpticalReader can load optical mapping data from a .mat file and returns a PolyData mesh and LATs.
load(filepath, window_length=100, start_time=0, end_time=-1, resolution=0.375)
staticmethod
Load coordinates, triangles and scalars.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath |
str
|
The path to the mesh file. |
required |
window_length |
int
|
Defaults to 100. |
100
|
start_time |
int
|
Defaults to 0. |
0
|
end_time |
int
|
Defaults to 1. |
-1
|
resolution |
float
|
Defaults to 0.375. |
0.375
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[ndarray, ndarray, ndarray]
|
A tuple containing a list of coordinates, triangle idx and scalars |
load_signals(filepath)
staticmethod
Loads the optical signals from a specified filename.