Skip to content

Instantly share code, notes, and snippets.

View jendelel's full-sized avatar

Lukas Jendele jendelel

  • Zurich
View GitHub Profile
@jendelel
jendelel / load_inbreast_roi.py
Last active December 9, 2023 16:52
Load INBREAST ROIs
from skimage.draw import polygon
import numpy as np
import plistlib
def load_inbreast_mask(mask_path, imshape=(4084, 3328)):
"""
This function loads a osirix xml region as a binary numpy array for INBREAST
dataset
@mask_path : Path to the xml file