-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a way to turn our .bin files into nearly any other graphic format in Linux/Unix systems #55
Comments
Actually I think it will still be necessary to keep the binary output in As far as I know, .gifs are only 8-bit images - and there is not But this may work well for individual reflections. Presumably the You might reply that gifs can be 16-bit as well (there is a scale to Richard On 12/11/2014 16:47, Rudolf A Roemer wrote:
Richard Beanland |
Sorry, a misunderstanding:
|
The .bin files can be converted quite easily into 64 bit tiffs, which is good - unfortunately not many programs can read 64 bit tiffs. I am having difficulty rescaling to a 16 bit tiff using the convert command. I am sure it is possible though. Jon has written a python script which does this, and is currently being used in the gui. Will need to look into this - not very familiar with the image output of felix (or image processing in general!). |
This line takes our high-quality example .bin file from Si and turns it into a .gif:
convert -size 539x539 -depth 64 -define quantum:format=floating-point -define quantum:scale=65535.0 -endian lsb GRAY:F-WI-M-T01000-P00539-sampleoutput-highq.bin F-WI-M-T01000-P00539-sampleoutput-highq.gif
The line uses the "convert" command which is part of the ImageMagic set of routines available on any Linux and most Unix systems. It can be scripted and we should include it in our CoW/Minerva scripts at the end: once all new .bin's have been computed we simply use "convert" to make .jpg's or similar. So there is no need for "ImageJ" manual "import" anymore.
The text was updated successfully, but these errors were encountered: