Last active
February 12, 2021 15:18
-
-
Save mutterer/0c4c158a9b660cb457cacccfbb0cbb88 to your computer and use it in GitHub Desktop.
A macro that splits RGB images and colors produced windows
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
// better split RGB image. | |
// @egrandgirard1 & @jmutterer | |
if (bitDepth==24) { | |
run("Duplicate...","title="+getTitle); | |
run("Split Channels"); | |
id=getImageID; | |
cols=newArray("#8888ff","#88ff88","#ff8888"); | |
for(i=0;i<3;i++) { | |
selectImage(id+i); | |
//run("8-bit"); | |
eval('js','IJ.getImage().getWindow().setBackground(Colors.decode("'+cols[i]+'"))'); | |
} | |
run("Tile"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment