Visualizaion and MultiScaleHighPass from script
Posted: 24 Jun 2024, 03:48
I have made a macro to run with the following lines:
This works great, but I would like to automate it a bit more and run it from a script.
Are the above two functions available as script functions?
Or is it perhaps possible to run a macro from a script?
Code: Select all
Visualization(0, 65535)
MultiscalehighPass(5, 6, 2, 1.46)
Are the above two functions available as script functions?
Or is it perhaps possible to run a macro from a script?
Code: Select all
fitsFiles = FindFiles(folder, "*.tif")
N = Count(fitsFiles)
for i = 1 to N
Image.Open(folder + fitsFiles{i})
' this does not work: Visualization(0, 65535)
' this does not work: MultiScaleHighPass(5, 6, 2, 1.46)
Image.SaveView(folder + "Scaled_and_MultiScaleHighPass\" + fitsFiles{i} + ".tiff")
Image.Close
next i