libpniio
Static Public Member Functions
pni::io::cbf::dectris_reader Class Reference

reader for DECTRIS detector data More...

#include <dectris_reader.hpp>

Static Public Member Functions

static std::streampos read_header (std::ifstream &is, std::vector< pni::io::image_info > &info, compression_id &ct)
 read header information More...
 
template<typename CBFT , typename CTYPE >
static void read_data_byte_offset (std::ifstream &is, const pni::io::image_info &info, CTYPE &data)
 read data More...
 

Detailed Description

This type provides static method to read data from CBF files written by detectors from DECTRIS.

Member Function Documentation

template<typename CBFT , typename CTYPE >
void pni::io::cbf::dectris_reader::read_data_byte_offset ( std::ifstream &  is,
const pni::io::image_info info,
CTYPE &  data 
)
static

Static method to read byte offset compressed data from DECTRIS CBF files.

Template Parameters
CBFTtype used for data in the file
CTYPEcontainer type where to store the data
Parameters
isinput stream
infoinstance of ImageInfo for the image to read
datacontainer instance where to store the data
std::streampos pni::io::cbf::dectris_reader::read_header ( std::ifstream &  is,
std::vector< pni::io::image_info > &  info,
compression_id ct 
)
static

This static method reads the header data from a CBF file. The header information is collected and stored in an ImageInfo type. In addition the ct argument holds the ID of the compression use for this image.

Parameters
isinput stream from which to read
infoImageInfo vector where to store image data
ctcompression id
Returns
position of data section

The documentation for this class was generated from the following files: