dvpio.read.image.read_custom#
- dvpio.read.image.read_custom(path, imread=None, **kwargs)#
Read a custom image file to Image2DModel
This function might not be performant for large images.
Uses the
dask.array.image.imread()function to read any image file to dask. Support widely used file types, including.tiff.Pass a custom reader function to
imread- Parameters:
path (
str) – Path to fileimread (
Callable|None(default:None)) – Custom image reading function. Function should expect a filename string return a numpy array (dask.array.image.imread())**kwargs (
Mapping[str,Any]) – Keyword arguments passed tospatialdata.models.Image2DModel.parse()
- Return type:
- Returns: