Skip to content

ConvertDICOMtoAVI for own Dataset #75

Description

@chrilouk

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:)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions