christianpayer / MedicalDataAugmentationTool-VerSe

GNU General Public License v3.0
176 stars 81 forks source link

The shape of GLxxx file is resize !! #12

Open hphuongdhsp opened 3 years ago

hphuongdhsp commented 3 years ago

It about the size of GLxxx file. I tried to get the 2D - central image from the 3D image. Here is the result of GL 003.

Do y know why the size of these files is not correct?

GL003_11

christianpayer commented 3 years ago

The files are correct. In medical image files, there additional metadata that defines the physical size of a pixel. In this case, the file is anisotropic, i.e., there is a different physical spacing size per dimension.

In your visualization, you are not correctly handling the spacing information. Our framework however, should handle such files correctly, the same as most medical image viewers.

Look into https://simpleitk.readthedocs.io/en/master/fundamentalConcepts.html for more details.

hphuongdhsp commented 3 years ago

Thank you for your quick answer.