Closed ashgillman closed 3 years ago
The key change was:
+ MuMapImageType::PointType outputOrigin;
+ outputOrigin[0] = -static_cast<float>(outputSize[0]) * outputSpacing[0] / 2.;
+ outputOrigin[1] = -static_cast<float>(outputSize[1]) * outputSpacing[1] / 2.;
+ // outputOrigin[0] = _inputImage->GetOrigin()[0];
+ // outputOrigin[1] = _inputImage->GetOrigin()[1];
+ outputOrigin[2] = _inputImage->GetOrigin()[2];
i.e., the umap should be centered transaxially.
Somewhat solves #18
Don't actually accept this PR, I left lots of junk in the commit.
I am just including as it may be a useful reference for hackathon.