This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ****************************************************************************** | |
// Initialisation: Close all windows (images, results, etc) | |
// ****************************************************************************** | |
run("Set Measurements...", "center redirect=None decimal=9"); | |
// Close all windows | |
run("Close All"); | |
// Clears Log Window | |
print("\\Clear"); | |
// Close Result window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// *** Start: White balance *** | |
// | |
name=getTitle(); | |
run("Split Channels"); | |
MeanColor=newArray(3); | |
maxi = 0; | |
for (u=1; u<4; u++) { |