Skip to content

Instantly share code, notes, and snippets.

@mutterer
Created January 7, 2021 10:57
Show Gist options
  • Save mutterer/1b379a15768eb2afd6dbe60e2b8928de to your computer and use it in GitHub Desktop.
Save mutterer/1b379a15768eb2afd6dbe60e2b8928de to your computer and use it in GitHub Desktop.
HSB_hyperstack_to_RGB_Stack.ijm
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");
@mutterer
Copy link
Author

mutterer commented Jan 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment