Skip to content
Snippets Groups Projects

Local thickness wrapper

3 files
+ 73
3
Compare changes
  • Side-by-side
  • Inline

Files

@@ -4,8 +4,9 @@ import numpy as np
import matplotlib.pyplot as plt
from skimage.filters import threshold_otsu
from qim3d.io.logger import log
from typing import Optional
def local_thickness(image, scale=1., mask=None):
def local_thickness(image: np.ndarray, scale: float = 1, mask: Optional[np.ndarray] = None) -> np.ndarray:
"""Wrapper for the local thickness function from the localthickness package* (https://github.com/vedranaa/local-thickness)
Args:
Loading