MCPcopy Create free account
hub / github.com/MITK/MITK / SaveImage

Function SaveImage

Wrapping/Python/mitk/Image.cpp:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void SaveImage(const Image* img, const std::string& path)
290{
291 if (img == nullptr)
292 throw py::value_error("Cannot save a null image");
293
294 py::gil_scoped_release release;
295 mitk::IOUtil::Save(img, path);
296}
297
298// ---------------------------------------------------------------------------
299// Module init

Callers 1

InitImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected