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

Function Image_get_spacing

Code/Source/PythonAPI/ImagingImage_PyClass.cxx:692–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690");
691
692static PyObject *
693Image_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

Callers

nothing calls this directly

Calls 2

CheckImageDataFunction · 0.85
GetSpacingMethod · 0.45

Tested by

no test coverage detected