Skip to content
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

Custom preset handling (storing/export/import) #50

Open
che85 opened this issue Nov 12, 2024 · 2 comments
Open

Custom preset handling (storing/export/import) #50

che85 opened this issue Nov 12, 2024 · 2 comments

Comments

@che85
Copy link
Contributor

che85 commented Nov 12, 2024

@lassoan In #45 (comment) you mentioned the following:

"Custom presets could be saved in the applications settings folder (os.path.dirname(slicer.app.slicerUserSettingsFilePath)) to make sure they are preserved when the application is removed. But this can be added later, your preset editor is already useful as is."

I could imagine creating custom presets and being able to add some functionality to export presets for the purpose of sharing. Especially when it comes to experiments, one wants to be able to reproduce results, so sharing custom presets would be very important. Other users could then import the presets into their database (including md5 checks to avoid duplication of txt files).

Let me know what you think

cc @DevLaurence

@che85 che85 changed the title Custom preset handling Custom preset handling (storing/export/import) Nov 12, 2024
@che85
Copy link
Contributor Author

che85 commented Nov 12, 2024

Another idea would be to provide an option to change the database folder. The folder could store ElastixParameterSetDatabase.xml and .txt files. The whole folder could be shared as a zip file

@che85
Copy link
Contributor Author

che85 commented Nov 12, 2024

The selected database folder location would be saved in the parameter node. When loading the module, it can check if the database folder exists on the local machine. If it doesn't exist, a dialog is displayed with the message saying that the database folder couldn't be found. The user has the option to locate the folder which will then be updated in the parameter node if successfully associated other saved parameters.

che85 added a commit to che85/SlicerElastix that referenced this issue Nov 13, 2024
lassoan pushed a commit to che85/SlicerElastix that referenced this issue Jan 17, 2025
Built-in elastix registration presets can be copied into the scene, edited, and saved in the scene. When registration is launched then the in-scene configuration data is written to files and passed to Elastix.

In-scene presets can also be saved as user presets, into the user profile folder (each preset in a separate subfolder, containing all necessary information, so that presets can be easily shared with other just by copying the complete folder content).

see lassoan#50
lassoan pushed a commit that referenced this issue Jan 17, 2025
Built-in elastix registration presets can be copied into the scene, edited, and saved in the scene. When registration is launched then the in-scene configuration data is written to files and passed to Elastix.

In-scene presets can also be saved as user presets, into the user profile folder (each preset in a separate subfolder, containing all necessary information, so that presets can be easily shared with other just by copying the complete folder content).

see #50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant