merquaco.pixel_classification.create_dapi_image

merquaco.pixel_classification.create_dapi_image(high_res_dapi_image_path: str | Path, low_res_dapi_image_path: str | Path) ndarray

Creates a lower-resolution DAPI image by binning, normalizing, and removing off-tissue pixels.

Parameters:
  • high_res_dapi_image_path (str or Path) – Path to high-resolution DAPI image

  • low_res_dapi_image_path (str or Path) – Path at which to save low-resolution DAPI image

Returns:

dapi_image – Array of low-resolution DAPI imgae

Return type:

np.ndarray

Raises:

FileNotFoundError – If high_res_dapi_image_path does not exist