| 666 | "); |
| 667 | |
| 668 | static PyObject * |
| 669 | Image_get_origin(PyImage* self, PyObject* args) |
| 670 | { |
| 671 | auto api = PyUtilApiFunction("", PyRunTimeErr, __func__); |
| 672 | |
| 673 | if (!CheckImageData(api, self)) { |
| 674 | return nullptr; |
| 675 | } |
| 676 | |
| 677 | auto origin = self->image_data->GetGeometry()->GetOrigin(); |
| 678 | return Py_BuildValue("[d, d, d]", origin[0], origin[1], origin[2]); |
| 679 | } |
| 680 | |
| 681 | //------------------- |
| 682 | // Image_get_spacing |
nothing calls this directly
no test coverage detected