merge2cbf

 

is a main program that converts a series of detector image files to CBF format, a byte-offset variant of the CBFlib format. The program automatically recognizes most image formats currently in use, retrieves the basic dimensions of the image from its header, converts each pixel to a 32 bit integer, and efficiently stores the image as differences between successive pixels. merge2cbf can also merge a fixed number of consecutive images into one CBF type image.
NOTE that the original header information is lost in the converted images!
Program input must be provided by the file MERGE2CBF.INP in the current directory.


Example input file MERGE2CBF.INP

 NAME_TEMPLATE_OF_DATA_FRAMES= images/mnco15107go_1_???.mccd
 DATA_RANGE= 1 50
!NX=  3072   NY=  3072
 NAME_TEMPLATE_OF_OUTPUT_FRAMES=cbf_images/mnco15107go_1_???.cbf
 NUMBER_OF_DATA_FRAMES_COVERED_BY_EACH_OUTPUT_FRAME= 2

merge2cbf will convert 50 MARCCD detector images residing as TIFF images in directory images/ into 25 CBF type images in the new directory cbf_images/. Each converted image contains the sum of the pixel contents of two consecutive TIFF images.


© 2005-2011, MPI for Medical Research, Heidelberg Imprint.
Wolfgang.Kabsch@mpimf-heidelberg.mpg.de
page last updated: June 14, 2011