-
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
[Feature request] Plugin/Module to visualize MONAI Transforms #5711
Comments
You could get the feel of some data augmentation transforms by using TorchIO's Slicer plugin. Maybe MONAI could make a similar thing? The easiest thing would be to add MONAI-specific transforms to the exiting plugin code. If the author of the plugin @fepegar doesn't like that, a fork could be made. |
I think adding MONAI transforms to the TorchIO extension might make things confusing, so forking would possibly make more sense. But I might be wrong! |
I agree with @diazandr3s. Its really hard to manage so huge amount of possibilities in transforms that Monai offer without a graphic interface. TorchIO´s Slicer plugin is a wonderfull tool but with very little options. Developing a good data augmentation strategy without being able to know what transforms exactly do with your images is really hard. Please, reconsider @diazandr3s request, no doubt I´ll be the first user. Thanks in advance! |
If no one else plans to work on this, I could take a crack over the next weeks. @wyli could you assign it to me? |
Hi @dzenanz , Sure, welcome contribution! Thanks. |
given that a monai MONAI/tests/testing_data/transform_metatensor_cases.yaml Lines 50 to 70 in 315d2d2
is it possible/useful to make a generic slicer plugin visualising a set of transforms in a user-specified config? cc @SachidanandAlle any suggestions for @dzenanz to get started? visualising multiple image patch samples according to their sampling locations is also interesting |
I created my fork and I am looking at Slicer extension developing docs, so the timing on this suggestion is excellent. |
I will probably need these conversion routines: |
@SachidanandAlle put together an initial codebase here: https://github.com/Project-MONAI/SlicerMONAIViz all contributions are welcomed :) |
This is great! I tried to use it and immediately have some feedback. The images loaded via MonaiViz module have different direction matrix from images drag-dropped into Slicer (RAS vs LPS convention). Those buttons for editing the transform list should have mouse-over hint which explains what each button does. The dictionary flavored transforms should have one argument prefilled: |
PR Project-MONAI/SlicerMONAIViz#1 created. |
Adding tooltips was easy, too. PR: Project-MONAI/SlicerMONAIViz#2. |
thank you @SachidanandAlle @dzenanz @diazandr3s -- closing this for now, please file follow-up tickets here https://github.com/Project-MONAI/SlicerMONAIViz/issues. |
PR Project-MONAI/SlicerMONAIViz#5 is the last of my initial suggestions. The other PRs implement the other suggestions I raised in #5711 (comment). |
Is your feature request related to a problem? Please describe.
There is no tool to visualize the effect of MONAI transforms on a custom dataset.
MONAI Label users will highly benefit from a tool/plugin/module that allows them to visualize the effect of the MONAI transforms applied to their dataset.
I've got lots of questions about which transforms are best to do data augmentation or to preprocess their dataset: window scale intensity, random flipping, random rotation, scaling, affine transform, etc.
The idea of this tool is to facilitate the selection of MONAI transforms that researchers can use here to do data augmentation.
Ideally, researchers can use this plugin with individual transform and/or a set of random transformations (Compose).
Describe the solution you'd like
A MONAI tool/plugin/module that allows users to visualize the effects of the MONAI transforms applied to their dataset.
The text was updated successfully, but these errors were encountered: