Hello
I wrote a code to divide some images that I have to background images with the same name of my original images. I have two problems with the code below:
1- When I use this code, my outputs are exactly the same name of my original files, not that one I want and have written in this code. ( I want to have "_ subtracted" in the continuation of the name)
2- When I divide my images one by one with calculator plus ( not macro) I get different results ( I mean the gray values I get from using macro and using calculator plus directly are different). What is the problem? my calculations are very sensitive to the gray value change.
macro "Batch calculate images [1]" {
LocationOfFiles = getDirectory("Select Folder");
LocationOfbackgrounds = getDirectory("Select Folder of backgrounds");
LocationOfSave = getDirectory("Select Save Location");
setBatchMode(true);
FileList1 = getFileList(LocationOfFiles);
FileList2 = getFileList(LocationOfbackgrounds);
NumberOfFiles = FileList2.length;
for (i=0; i