Skip to content

Instantly share code, notes, and snippets.

@bogovicj
Created June 3, 2021 15:14
Show Gist options
  • Save bogovicj/9f7b2a02bd7d84baaa324b77fc4424a6 to your computer and use it in GitHub Desktop.
Save bogovicj/9f7b2a02bd7d84baaa324b77fc4424a6 to your computer and use it in GitHub Desktop.
Read and print an imagej LUT
#@File lut
lut = ij.plugin.LutLoader.openLut( lut.getCanonicalPath() );
for( i in 0..<lut.getMapSize() )
{
println( [lut.getRed( i ), lut.getGreen(i), lut.getBlue(i)].join(" ") )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment