-
Notifications
You must be signed in to change notification settings - Fork 56
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
Return ROI names of geometric type #99
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
In using the package I tended to call
get_roi_names()
to obtain a list of structures that I would like to retrieve a mask for, then retrieved the masks with the functionget_roi_mask_by_name()
. However, it ran into problems when there are different geometric types in the RTSTRUCT, especially the 'POINT' geometries. Generally if all of the contours are described as 'CLOSED_PLANAR' then the process works fine. But some datasets have these POINT ROIs and it is not always clear that they are from the name. So my proposal is to have another optional argument toget_roi_names()
to specify the geometries we want to return. Default behaviour is the original version of listing all names. To get all CLOSED_PLANAR structures only we would callrtstruct_ds.get_roi_names('CLOSED_PLANAR')
wherertstruct_ds
is thertstruct
object from this repository. Here is the modified function below in rtstruct.py.Let me know if this is useful to incorporate, it certainly is for my work as I had to do this check separately outside this package.
Best wishes,
Matt
The text was updated successfully, but these errors were encountered: