| 287 | } |
| 288 | |
| 289 | void 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 |