lazyslide.io.read_ndpa#
- read_ndpa(wsi, annotations)#
Read Hamamatsu NDPA annotations as level-0 pixel geometries.
NDPA coordinates are stored in nanometers relative to the physical slide centre. The matching NDPI slide supplies the offsets, pixel size, and level-0 dimensions needed to place them in the image reference frame.
- Parameters:
- wsi
WSIData The WSIData object for the NDPI slide associated with the annotations.
- annotationsstr or Path
Path to the NDPA XML file.
- wsi
- Returns:
- GeoDataFrame
Annotation metadata and level-0 pixel geometries.