Skip to content

Commit 8daddb4

Browse files
committed
docs: add quick start example to README
1 parent d36f0c8 commit 8daddb4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ If you have used MONAI in your research, please cite us! The citation can be exp
5959
[The MONAI Model Zoo](https://github.com/Project-MONAI/model-zoo) is a place for researchers and data scientists to share the latest and great models from the community.
6060
Utilizing [the MONAI Bundle format](https://docs.monai.io/en/latest/bundle_intro.html) makes it easy to [get started](https://github.com/Project-MONAI/tutorials/tree/main/model_zoo) building workflows with MONAI.
6161

62+
## Quick Start Example
63+
Here's a simple example of using MONAI for medical image preprocessing:
64+
65+
```python
66+
import monai
67+
from monai.transforms import LoadImage, Spacing
68+
69+
# Load a medical image
70+
image = LoadImage()(image_path)
71+
# Resample the image to a specific spacing
72+
spaced_image = Spacing(pixdim=(1.5, 1.5, 2.0))(image)
73+
```
74+
6275
## Contributing
6376
For guidance on making a contribution to MONAI, see the [contributing guidelines](https://github.com/Project-MONAI/MONAI/blob/dev/CONTRIBUTING.md).
6477

0 commit comments

Comments
 (0)