Commit af4757eb authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Describe image struct

parent b564a1bd
cdef extern from "crystfel/utils.h":
void progress_bar(int val, int total, const char *text)
cdef extern from "crystfel/crystal.h":
ctypedef struct Crystal:
pass # Opaque struct, used through functions
Crystal* crystal_new(void)
void crystal_free(Crystal* cryst)
Crystal* crystal_copy(const Crystal* cryst)
cdef extern from "crystfel/index.h":
ctypedef enum IndexingMethod:
INDEXING_NONE,
INDEXING_DIRAX,
INDEXING_MOSFLM,
INDEXING_FELIX,
INDEXING_XDS,
INDEXING_SIMULATION,
INDEXING_DEBUG,
INDEXING_ASDF,
INDEXING_TAKETWO,
INDEXING_XGANDALF,
INDEXING_PINKINDEXER,
INDEXING_ERROR,
INDEXING_USE_LATTICE_TYPE,
INDEXING_USE_CELL_PARAMETERS
cdef extern from "crystfel/detector.h":
ctypedef struct panel:
char name[1024]
double coffset
double clen
# ...
ctypedef struct detector:
panel *panels
int n_panels
# ...
cdef extern from "crystfel/spectrum.h":
ctypedef struct Spectrum:
pass # Opaque struct, used through functions
cdef extern from "crystfel/image.h":
ctypedef struct beam_params:
double photon_energy
char *photon_energy_from
double photon_energy_scale
double bandwidth
ctypedef struct ImageFeatureList:
pass # Opaque struct, used through functions
ctypedef struct image:
float **dp
int **bad
float **sat
int hit
Crystal **crystals
int n_crystals
IndexingMethod indexed_by
int n_indexing_tries
detector *det
beam_params *beam
double avg_clen
int id
int serial
Spectrum* spectrum
double lambda_ "lambda"
double div
double bw
double peak_resolution
ImageFeatureList *features
char* filename
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment