imageio.plugins.pydicom.PydicomPlugin.iter#

PydicomPlugin.iter(*, raw: bool = False, **kwargs) → Iterator[ndarray][source]#

Yield decoded frames one at a time (frame-wise decode).

Parameters:
rawbool

Same meaning as read(..., raw=...). Default False applies full reconstruction per frame.

kwargsAny

Forwarded to pydicom iter_pixels.

Yields:
framenp.ndarray

One frame with shape (rows, cols[, channels]).