MCPcopy Create free account
hub / github.com/SimVascular/SimVascular / Image_get_origin

Function Image_get_origin

Code/Source/PythonAPI/ImagingImage_PyClass.cxx:668–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666");
667
668static PyObject *
669Image_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

Callers

nothing calls this directly

Calls 2

CheckImageDataFunction · 0.85
GetOriginMethod · 0.80

Tested by

no test coverage detected