-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
docs: Add Quick Start Example to README #8273
base: dev
Are you sure you want to change the base?
Conversation
```python | ||
import monai | ||
from monai.transforms import LoadImage, Spacing | ||
|
||
# Load a medical image | ||
image = LoadImage()(image_path) | ||
# Resample the image to a specific spacing | ||
spaced_image = Spacing(pixdim=(1.5, 1.5, 2.0))(image) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```python | |
import monai | |
from monai.transforms import LoadImage, Spacing | |
# Load a medical image | |
image = LoadImage()(image_path) | |
# Resample the image to a specific spacing | |
spaced_image = Spacing(pixdim=(1.5, 1.5, 2.0))(image) | |
```python | |
from monai.transforms import ( | |
Compose, | |
LoadImage, | |
ScaleIntensity, | |
AddChannel | |
) | |
# Define transforms for image preprocessing | |
transforms = Compose([ | |
LoadImage(image_only=True), | |
AddChannel(), | |
ScaleIntensity() | |
]) | |
# Apply transforms to your image | |
image = transforms(image_path) |
We're updating the website shortly and will be using the example I've suggested here, is that suitable to you for this update? Thanks for the contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So good! Thanks a lot for you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're ok with this you can commit the suggestion yourself through the Github interface then we can approve, otherwise if you wanted to modify what I'd suggest we can review again.
Description
Added a Quick Start Example section to the README to help new users get started with MONAI more easily. The example demonstrates basic medical image loading and spacing adjustment.
Changes Made
Purpose
This change aims to make MONAI more accessible to newcomers by providing a clear, practical example of basic functionality.
Testing Done