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

Function LoadImage

Wrapping/Python/mitk/Image.cpp:274–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272// ---------------------------------------------------------------------------
273
274Image::Pointer LoadImage(const std::string& path)
275{
276 Image::Pointer img;
277
278 {
279 py::gil_scoped_release release;
280 img = mitk::IOUtil::Load<Image>(path);
281 }
282
283 if (img.IsNull())
284 throw py::value_error("Could not load Image from: " + path);
285
286 return img;
287}
288
289void SaveImage(const Image* img, const std::string& path)
290{

Callers 2

FillStorageMethod · 0.85
InitImageFunction · 0.85

Calls 1

IsNullMethod · 0.45

Tested by 1

FillStorageMethod · 0.68