ConvertDICOMtoAVI for own Dataset
chrilouk opened this issue · 0 comments
chrilouk commented
Hi, thank you for sharing your code. I have a question regarding the conversion of a dicom dataset to avi with the ConvertDICOMToAVI.ipynb. When I run the code for a personal dataset, I get the following exception:
Cell In[35], line 14, in makeVideo(fileToProcess, destinationFolder)
---> 14 yCrop = np.where(mean<1)[0][0]
IndexError: index 0 is out of bounds for axis 0 with size 0
When I change the "mean<1" to a higher number the code runs, but how do I choose this number? I put something random right now but the avi video does not look very good.
Are there also other things I would need to change in the code when using a personal dataset?
Thank you in advance:)