-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Generate heatmap transforms #8579
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
base: dev
Are you sure you want to change the base?
Generate heatmap transforms #8579
Conversation
Adds a `GenerateHeatmap` transform to create gaussian response maps from landmark coordinates. This transform is implemented for both array and dictionary-based workflows. It enables the generation of heatmaps from landmark data, facilitating tasks like landmark localization and visualization. The transform supports 2D and 3D coordinates and offers options for controlling the gaussian standard deviation, spatial shape, truncation, normalization, and data type.
Introduces a new interactive notebook demonstrating landmark to heatmap conversion using MONAI transforms. This includes: - A notebook with array and dictionary transform modes. - A test suite for the `GenerateHeatmap` transform. This enhancement enables users to visualize and interact with heatmap generation, facilitating a better understanding and application of the MONAI transforms.
Extends the `GenerateHeatmap` transform to support batched inputs, allowing for more efficient processing of multiple landmark sets. This change modifies the transform to handle inputs with a batch dimension (B, N, spatial_dims) in addition to single-point inputs (N, spatial_dims). It also includes a demonstration of 3D heatmap generation using PyVista for visualization.
for more information, see https://pre-commit.ci
Streamlines the GenerateHeatmap and GenerateHeatmapd transforms for better usability and code clarity. Specifically: - Improves the input landmark array validation to provide a more descriptive error message. - Removes example notebooks. DCO Remediation Commit for sewon.jeon <[email protected]> I, sewon.jeon <[email protected]>, hereby add my Signed-off-by to this commit: 8ef905b I, sewon.jeon <[email protected]>, hereby add my Signed-off-by to this commit: 226bf90 I, sewon.jeon <[email protected]>, hereby add my Signed-off-by to this commit: 3097baf I, sewon.jeon <[email protected]>, hereby add my Signed-off-by to this commit: 0072cb0 Signed-off-by: sewon.jeon <[email protected]>
0072cb0
to
25ceb7f
Compare
Signed-off-by: sewon.jeon <[email protected]>
4443705
to
9e33e7c
Compare
for more information, see https://pre-commit.ci
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: sewon.jeon <[email protected]>
Signed-off-by: sewon.jeon <[email protected]>
Signed-off-by: sewon.jeon <[email protected]>
Signed-off-by: sewon.jeon <[email protected]>
60b58f5
to
54a81a5
Compare
for more information, see https://pre-commit.ci
Signed-off-by: sewon.jeon <[email protected]>
@coderabbitai review |
@coderabbitai help |
Fixes #3328 .
Description
A few sentences describing the changes proposed in this pull request.
This pull request introduces
GenerateHeatmap
andGenerateHeatmapd
transforms for creating Gaussian heatmaps from landmark coordinates.The input points are currently expected in ZYX order, but this can be changed to support XYZ if preferred.
The transforms support both batched (B, N, D) and non-batched (N, D) inputs.
Example notebooks are included for demonstration and will be removed before the PR is merged.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.