Created
January 7, 2021 10:57
-
-
Save mutterer/1b379a15768eb2afd6dbe60e2b8928de to your computer and use it in GitHub Desktop.
HSB_hyperstack_to_RGB_Stack.ijm
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
id=getImageID; | |
Stack.getDimensions(width, height, channels, slices, frames); | |
for(i=1; i<=slices; i++) { | |
selectImage(id); | |
Stack.setSlice(i) | |
run("Duplicate...", "duplicate slices=&i-&i"); | |
run("Set Label...", "label=Hue"); | |
run("RGB Color",""); | |
run("Set Label...", "label="); | |
} | |
selectImage(id); | |
close(); | |
run("Images to Stack", "name=Stack title=[] use"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See this thread: https://twitter.com/christlet/status/1347124682890371072