Hi,
I’m using a macro to align sets of images using the StackReg plugin, however, I keep getting the error “Warning: complex eigenvalue found; ignoring imaginary part.” The images do get aligned, but the error message exits the plugin and prevents the macro from running further. I was wondering if there was some way to get rid of the error so the macro keeps running. Here is the code I am running:
run("Make Montage...", "columns=1 rows=3 scale=1");
run("Montage to Stack...", "images_per_row=2 images_per_column=3 border=0");
run("StackReg ", "transformation=[Rigid Body]");
run("Stack to Images");
selectWindow("Stack-0002");
saveAs("Tiff", "/Users/firstname.lastname/Documents/Rizzo Lab/Experiments/FRET Efficiency/11_16_17/mTurqmVen/Dish 1/R/cc/" + title);
selectWindow("Stack-0001");
saveAs("Tiff", "/Users/firstname.lastname/Documents/Rizzo Lab/Experiments/FRET Efficiency/11_16_17/mTurqmVen/Dish 1/L/cc/" + title);
selectWindow("Stack-0004");
saveAs("Tiff", "/Users/firstname.lastname/Documents/Rizzo Lab/Experiments/FRET Efficiency/11_16_17/mTurqmVen/Dish 1/R/yy/" + title);
selectWindow("Stack-0003");
saveAs("Tiff", "/Users/firstname.lastname/Documents/Rizzo Lab/Experiments/FRET Efficiency/11_16_17/mTurqmVen/Dish 1/L/yy/" + title);
selectWindow("Stack-0006");
saveAs("Tiff", "/Users/firstname.lastname/Documents/Rizzo Lab/Experiments/FRET Efficiency/11_16_17/mTurqmVen/Dish 1/R/cy/" + title);
selectWindow("Stack-0005");
saveAs("Tiff", "/Users/firstname.lastname/Documents/Rizzo Lab/Experiments/FRET Efficiency/11_16_17/mTurqmVen/Dish 1/L/cy/" + title);