I want to apply all the settings that I applied on a given image to several other images using a python script. In other words, I am lazy, and I do not want to open the GUI and set all the options for all my subjects individually.
So is there any way to extract the current settings as, say, a JSON file so that the key-value pairs could be used to make os.system calls to mrview later on in a script?
Thanks for your response! And sorry, if I wasn’t very clear! I know about the command-line options.
Rather I was just asking if there is a way to extract all the settings and parameter values (that I made in GUI) as a json file so that I can use that json to input the same parameter values in a command-line call. Hope this was more clear.
This is one the many features I would like to implement, but it would require a very substantial re-write of the application. It’s on the wish-list, but it will be a while before I find time to devote to it…
I understand the question, I was just hoping that this would already get you most of what you wanted to achieve.
If you set up mrview for one data set and then go over all command line arguments listed in mrview -help and write down all your choices (like view mode, loaded images and their intensity range, colormap, camera settings, text overlay settings, loaded image overlay, their colormap, their transparency and threshold settings, odf settings, fixel settings, tractogram settings, ect, …), one can then easily provide all these choices as command-line parameters in a script. Not every single setting will be scriptable like this, but you can get a long way …