
on.SIMcheck.1.3.source-code.dump_lut.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SIMcheck Show documentation
Show all versions of SIMcheck Show documentation
ImageJ plugin suite for super-resolution structured illumination microscopy data quality control.
The newest version!
#!/usr/bin/env python
# dump an ImageJ binary LUT file as comma-separated
# LUT values
import sys
import struct
if len(sys.argv) != 2:
print "Usage: dump_lut.py some_lut.lut"
with open(sys.argv[1], "rb") as f:
sys.stdout.write("# RED\n")
byte = f.read(1)
nbytes = 0
while byte != b"":
# Do stuff with byte.
sys.stdout.write(str(struct.unpack('
© 2015 - 2025 Weber Informatics LLC | Privacy Policy