Skip to content

Commit

Permalink
Add rtstruct.add_roi_from_coordinates() documentation in README
Browse files Browse the repository at this point in the history
  • Loading branch information
gacou54 committed Mar 4, 2024
1 parent e88c8e8 commit e0be562
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,25 @@ rtstruct.add_roi(
name="RT-Utils ROI!"
)

# Add another ROI from coordinates
rtstruct.add_roi_from_coordinates(
coordinates=[
[
# Example of One contour on one slice
[-20.0, -170.0, -559.0],
[30.0, -170.0, -559.0],
[30.0, -110.0, -559.0],
[-20.0, -110.0, -559.0],
],
[
[-20.0, -170.0, -562.4],
[30.0, -170.0, -562.4],
[30.0, -110.0, -562.4],
[-20.0, -110.0, -562.4],
]
]
)

rtstruct.save('new-rt-struct')
```

Expand Down

0 comments on commit e0be562

Please sign in to comment.