How to recuntruct image back with invtransform
to get np.close()
to the original image?
#1321
Replies: 2 comments 1 reply
-
The process you describe is an inherently lossy process. As a thought experiment, imagine what happens if you were to resample to voxel space with 1000 x 1000 x 1000mm (instead of a 1 x 1 x 1 mm) image. The entire original image would fit in 1 voxel of the resampled space and have a single value. Then when you go back to the original space, there is only 1 value to interpolate from. |
Beta Was this translation helpful? Give feedback.
-
On the first row, I have image segmentation labels for BraTS2021, on the left - original image. And on the right - image after resampling and then resampling back. That is kinda strange and maybe caused by contamination with other labels. Yet, still why even for labels I was not able to get accurate inverse reconstruction? Thanks!
|
Beta Was this translation helpful? Give feedback.
-
Hi all! I want to resample images from the heterogeneous dataset to equal voxel spacing [1,1,1]. Yet I want to save the transformation to do
invtransform
and get the same image bynp.allclose()
. How can I do that?1. I found that if I will resample the image to the original spacing, I will not get the original image (it will be considerable MAE):
False
(1987788.2, 172.29662, 172.29372)
2. I found, that if I will do it with
registration
, the error will be still huge:(9012015.0, 172.40034, 172.29372)
How one can do the resampling transformation in ‘ants’ in order to get ~ the same image by applying inverse transform?
Beta Was this translation helpful? Give feedback.
All reactions