Programs to convert X-ray diffraction image file formats to graphics file formats: Difference between revisions

From CCP4 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<nowiki>    The following information was compiled from a series of responses to a post on the CCP4bb on October 21, 2009 by Andrew Torelli who asked about free utilities/programs that could convert X-ray diffraction image file formats to a graphics file format that could be edited by programs such as Photoshop.  The specific responses are worthwhile to read and can be searched in the CCP4bb archives using the subject query "X-ray diffraction image --> .jpg".  The summary is below:
<nowiki>    The following information was compiled from a series of responses to a post on the CCP4bb on October 21, 2009 by Andrew Torelli who asked about free utilities/programs that could convert X-ray diffraction image file formats to a graphics file format that could be edited by programs such as Photoshop.  The specific responses are worthwhile to read and can be searched in the CCP4bb archives using the subject query "X-ray diffraction image --> .jpg".  The summary is below:
</nowiki>
</nowiki>
    A notable consideration (provided by Jim Pflugrath) is that "A JPEG has fixed colors for the pixel values.  A diffraction image has to use a viewer to convert the pixel values (counts) to a color.  One problem with just using a converter to jpeg is how to convert intensities to color (i.e. computer display values)."


    Additionally, Morten Kjeldgaard noted that opening saved images (particularly TIFF images) in Photoshop will require "Image -> Adjustments -> Equalize" to see anything other than black.
<nowiki>    A notable consideration (provided by Jim Pflugrath) is that "A JPEG has fixed colors for the pixel values.  A diffraction image has to use a viewer to convert the pixel values (counts) to a color.  One problem with just using a converter to jpeg is how to convert intensities to color (i.e. computer display values)."
</nowiki>


<nowiki>    Additionally, Morten Kjeldgaard noted that opening saved images (particularly TIFF images) in Photoshop will require "Image -> Adjustments -> Equalize" to see anything other than black.
</nowiki>
Specific program suggestions:
Specific program suggestions:



Revision as of 00:48, 10 November 2009

The following information was compiled from a series of responses to a post on the CCP4bb on October 21, 2009 by Andrew Torelli who asked about free utilities/programs that could convert X-ray diffraction image file formats to a graphics file format that could be edited by programs such as Photoshop. The specific responses are worthwhile to read and can be searched in the CCP4bb archives using the subject query "X-ray diffraction image --> .jpg". The summary is below:

A notable consideration (provided by Jim Pflugrath) is that "A JPEG has fixed colors for the pixel values. A diffraction image has to use a viewer to convert the pixel values (counts) to a color. One problem with just using a converter to jpeg is how to convert intensities to color (i.e. computer display values)."

Additionally, Morten Kjeldgaard noted that opening saved images (particularly TIFF images) in Photoshop will require "Image -> Adjustments -> Equalize" to see anything other than black. Specific program suggestions:

- diff2jpeg - a CCP4 utility within the "DiffractionImage" library for handling different diffraction file formats.  See: http://www.ccp4.ac.uk/html/DiffractionImage.html
- idiffdisp - a CCP4 utility.  See also CCP4wiki page: http://ccp4wiki.org/~ccp4wiki/wiki/index.php?title=CCP4i_diffraction_image_display_%28idiffdisp%29
- ipdisp - a CCP4 utility.  See also:

http://www.ccp4.ac.uk/dist/html/ipdisp.html

- Mosflm has capability including control over gr[e|a]yscale.  See FAQ section for details.
- ADXV - reportedly easy to install and can save in TIFF format.  Also will save image to match coloring in view window: http://www.scripps.edu/~arvai/adxv.html
- Marview - can be installed using Linux_glibc-2.3.3 (RedHat9, WS3, etc).  Just download it, unpack (gunzip marView.gz).  See also http://www.marresearch.com/download.html#Utilities
   # chmod a+x marView
   a) to run the program from terminal
   # ./marView     or
   # kate .bashrc:
       alias marview=/home/user/Desktop/marview/./marView
   b) alternativelly, place the program in the Desktop and just double-click to start it up.
- demo version of d*TREK is freely available from Rigaku and has dtdisplay for this purpose.
- Labelit - see http://cci.lbl.gov/labelit
   - labelit.png <filename> <output.png> [-large]
- ImageMagick - part of most linux distros.  See also James Holton's helpful and detailed reply to my original post.
   - convert -depth 16 -type Grayscale -colorspace GRAY -endian LSB -size 3072x3072+512 GRAY:test_0_001.img test_0_001.jpg