Here we have some examples to get you started! These examples correspond with the subfolders of the repository examples folder.
The Deid Recipe
In this small tutorial, we will walk through reading and interacting with a deid recipe, replacing header values, and saving new images. This is the recommended tutorial if you want a quick start overview of deid.
- Code on Github
- Tutorial
- Recipes Files provided as examples or installed with deid.
Header Manipulation
- Replace with Function shows how to dynamically replace or update header values from a function.
- Replace Sequences similar, but replacement of nested sequences.
- Header Expanders can be used to select one or more header fields to apply an action to
Cleaning Pixels
See an example of just “inspection” (flagging images based on criteria) or “clean” (replacing values and writing black boxes after inspect) in these examples.
- Code on Github
Dicom Extract
These examples generally refer to the action of “getting data out of dicom files and putting them somewhere else.”
- Top Level Examples folder to see all scripts.
- Create Dicom CSV meaning extraction of header values into comma separated values file.