| 690 | "); |
| 691 | |
| 692 | static PyObject * |
| 693 | Image_get_spacing(PyImage* self, PyObject* args) |
| 694 | { |
| 695 | auto api = PyUtilApiFunction("", PyRunTimeErr, __func__); |
| 696 | |
| 697 | if (!CheckImageData(api, self)) { |
| 698 | return nullptr; |
| 699 | } |
| 700 | |
| 701 | auto spacing = self->image_data->GetGeometry()->GetSpacing(); |
| 702 | return Py_BuildValue("[d, d, d]", spacing[0], spacing[1], spacing[2]); |
| 703 | } |
| 704 | |
| 705 | //------------- |
| 706 | // Image_read |
nothing calls this directly
no test coverage detected