- ImageContainer.add_img(img, layer=None, dims='default', library_id=None, lazy=True, chunks=None, copy=True, **kwargs)
Add a new image to the container.
Where to save channel dimension when reading from a file or loading an array. Valid options are:
’channels_last’ - load the last non-spatial dimension as channels.
’z_last’ - load the last non-spatial dimension as Z-dimension.
’default’ - same as ‘channels_last’, but for 4-dimensional arrays, tries to also load the first dimension as channels if the last non-spatial dimension is 1.
a sequence of dimension names matching the shape of
('y', 'x', 'z', 'channels'). ‘y’, ‘x’ and ‘z’ must always be present.
bool) – Whether to use
daskto lazily load image.
bool) – Whether to copy the underlying data if
imgis an in-memory array.
- Return type
Nothing, just adds a new