Chapter 5.6 CBFlib: an ANSI C library for manipulating image data

Definition and exchange of crystallographic data

First Online Edition (2006)

Part 5. Applications

  1. P. J. Ellis1,
  2. H. J. Bernstein2

Published Online: 1 JAN 2006

DOI: 10.1107/97809553602060000756

International Tables for Crystallography

International Tables for Crystallography

How to Cite

Ellis, P. J. and Bernstein, H. J. 2006. CBFlib: an ANSI C library for manipulating image data. International Tables for Crystallography. G:5:5.6:544–556.

Author Information

  1. 1

    Stanford Linear Accelerator Center, 2575 Sand Hill Road, Menlo Park, CA 94025, USA

  2. 2

    Department of Mathematics and Computer Science, Kramer Science Center, Dowling College, Idle Hour Blvd, Oakdale, NY 11769, USA

Publication History

  1. Published Online: 1 JAN 2006



CBFlib is a library of ANSI C functions providing a simple mechanism for accessing crystallographic binary files (CBFs) and image‐supporting CIF (imgCIF) files. The CBFlib application programming interface (API) consists of a set of low‐level functions suitable for parsing and manipulating arbitrary input in CIF or CBF format, and a set of high‐level functions based on the CBF/imgCIF dictionary and used to support processing of image data files.


  • CBFlib;
  • cif2cbf;
  • convert_image;
  • makecbf;
  • CBF software;
  • Crystallographic Binary File software;
  • computer programs;
  • software;
  • image data;
  • imgCIF software;
  • image data compression