eyepy.core.eyeenface
EyeEnface(data, meta)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
NDArray[int_]
|
|
required |
meta |
'EyeEnfaceMeta'
|
|
required |
Source code in src/eyepy/core/eyeenface.py
area_maps: dict[str, EyeEnfacePixelAnnotation]
property
Returns:
laterality: str
property
Returns:
scale_x: float
property
Returns:
scale_y: float
property
Returns:
shape: tuple[int, int]
property
Returns:
size_x: int
property
Returns:
size_y: int
property
Returns:
add_area_annotation(area_map=None, meta=None, **kwargs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
area_map |
Optional[NDArray[bool_]]
|
|
None
|
meta |
Optional[dict]
|
|
None
|
**kwargs |
|
{}
|
Returns:
Source code in src/eyepy/core/eyeenface.py
plot(ax=None, region=np.s_[:, :], scalebar='botleft', scalebar_kwargs=None, watermark=True)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ax |
Optional[Axes]
|
Axes to plot on. If not provided plot on the current axes (plt.gca()). |
None
|
region |
tuple[slice, slice]
|
Region of the localizer to plot (default: |
s_[:, :]
|
scalebar |
Union[bool, str]
|
Position of the scalebar, one of "topright", "topleft", "botright", "botleft" or |
'botleft'
|
scalebar_kwargs |
Optional[dict[str, Any]]
|
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/eyeenface.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 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 |
|