Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rt-utils fails on "Radiation therapy simulation head ..." #106

Open
dyollb opened this issue Mar 3, 2024 · 0 comments
Open

rt-utils fails on "Radiation therapy simulation head ..." #106

dyollb opened this issue Mar 3, 2024 · 0 comments

Comments

@dyollb
Copy link

dyollb commented Mar 3, 2024

Trying to get ROI masks from this dataset: https://figshare.com/s/a5e09113f5c07b3047df

I had to use following hack in image_helper.py:

def get_slice_contour_data(series_slice: Dataset, contour_sequence: Sequence):
    slice_contour_data = []

    # Traverse through sequence data and get all contour data pertaining to the given slice
    for contour in contour_sequence:
        for contour_image in contour.ContourImageSequence:
            if contour_image.ReferencedSOPInstanceUID == get_UID(series_slice.filename): #series_slice.SOPInstanceUID:
                slice_contour_data.append(contour.ContourData)

    return slice_contour_data

where get_UID obtaines the UID from the file name. Not sure if this means the dataset is "broken", or if this is just a real problem that is not covered by rt-utils.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant