MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / init

Function init

monai/data/image_writer.py:865–874  ·  view source on GitHub ↗

Initialize the image writer modules according to the filename extension.

()

Source from the content-addressed store, hash-verified

863
864
865def init():
866 """
867 Initialize the image writer modules according to the filename extension.
868 """
869 for ext in ("png", "jpg", "jpeg", "bmp", "tiff", "tif"):
870 register_writer(ext, PILWriter) # TODO: test 16-bit
871 for ext in ("nii.gz", "nii"):
872 register_writer(ext, NibabelWriter, ITKWriter)
873 register_writer("nrrd", ITKWriter, NibabelWriter)
874 register_writer(EXT_WILDCARD, ITKWriter, NibabelWriter, ITKWriter)

Callers 2

icnr_initFunction · 0.85
resolve_writerFunction · 0.85

Calls 1

register_writerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…