imagej_metadata_tag¶
- tifffile.imagej_metadata_tag(metadata, byteorder, /)¶
Return IJMetadata and IJMetadataByteCounts tags from metadata dict.
- Parameters:
metadata (dict[str, Any]) –
May contain the following keys and values:
- ’Info’ (str):
Human-readable information as string.
- ’Labels’ (Sequence[str]):
Human-readable label for each image.
- ’Ranges’ (Sequence[float]):
Lower and upper values for each channel.
- ’LUTs’ (list[numpy.ndarray[(3, 256), ‘uint8’]]):
Color palettes for each channel.
- ’Plot’ (bytes):
Undocumented ImageJ internal format.
- ’ROI’, ‘Overlays’ (bytes):
Undocumented ImageJ internal region of interest and overlay format. Can be created with the roifile package.
- ’Properties’ (dict[str, str]):
Map of key, value items.
byteorder (ByteOrder) – Byte order of TIFF file.
- Returns:
IJMetadata and IJMetadataByteCounts tags in
TiffWriter.write()
extratags format.- Return type:
tuple[tuple[int, int, int, bytes, bool], tuple[int, int, int, bytes, bool]]