Skip to content

Imgconvert

JorMaister edited this page Oct 18, 2019 · 2 revisions

convert_image

Purpose

This program converts between several image file formats. So far the following format/extensions are understood:

extension filetype read write
hed/img Imagic x x
inf,raw Xmipp raw format x x
raw# Raw files x
</td>
mrc Medical Research Council x x
spi,xmp,vol Spider x x
tiff TIFF x x
dm3 Digital micrograph x
</td>
ser TIA (Tecnai imaging and analysis) x
</td>
spe WinSpec CCD Capture File x
</td>

Usage


   xmipp_image_convert ...


Parameters

  • `` Input file (metadata, stack, volume or image)
  • `` Output file (metadata, stack, volume or image)
  • `` extension (output extension when inputfile is a metadata)
  • `` rootname (output rootname when inputfile is a metadata)
  • `` type (possible values are img,vol,stk; force the output type)
  • `` bit_depth (possible values are 8 uchar,16 ushort,32 float, only for tif)
  • `` show additional options.

Examples and notes

  • convert from spider to mrc
      xmipp_image_convert -i myfile.spi -o myfile.mrc
  • convert from spider to tiff 32 bits
      xmipp_image_convert -i myfile.spi -o myfile.tiff --bits 32
  • convert from raw to spider. Raw file size is 321x456 pixels, datatype float, headersize=1024 and ieee float numbers are in littleendiam (machine is bigendiam)
      xmipp_image_convert -i myfile.raw#321,456,1024,float,r -o 
In general raw format follows the convention raw#xDim,yDim,[zDim],offset,datatype,[r]

--Main.AlfredoSolano - 16 Jan 2007

--Main.RobertoMarabini - 01 Oct 2010

Clone this wiki locally