Write a python function or class with the following Input/Output
Input :
- The position of the X-rays source (still not sure why it’s needed)
- The position of the board (still not sure why it’s needed)
- A three dimensional CT-Scan
Output : A 2D X-ray Scan
A few important remarks to the exercise:
- You don’t need additional information from the real world or any advanced knowledge.
- You can add any input parameter that you see fit.
- If your method produces artifacts, you are excepted to fix them.
- Please explain every step of your method.
What I’ve done until now: (.py file added)
I’ve read the .dicom files, which are located in “Case2” folder.
I’ve sorted the files by their position.
Finally, I’ve created a 3D array, and added all the images to that array in order to plot the results (you can see them in the added image) – which are slice of the CT Scans. (reference: html#sphx-glr-auto-examples-image-processing-reslice-py“>https://pydicom.github.io/pydicom/stable/auto_examples/image_processing/reslice.html#sphx-glr-auto-examples-image-processing-reslice-py)
The result isn’t what they wanted, I’ll quote what they told me:
“These are slice of the CT scans, this is not the goal of the exercise. You need to simulate an X-Ray Scan which is a scan that goes through the whole body”
Added Exercise in the .word file.
Added Current code I did in .py file in the .rar
Added Picture of the CT Scan slices in the image added (which are also coded in .py file).
Would love your help to simulate an X-Ray scan that goes through the body.
References that may help: https://pydicom.github.io/pydicom/stable/index.html


0 comments