aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.h
AgeCommit message (Collapse)Author
2021-04-23indexamajig: Generate a unique filename for ZMQ dataThomas White
The unique filename is needed by the GUI for looking up results in a stream. Otherwise, the filename is "(null)" for everything and the lookup just returns the first chunk in the stream. The filename is generated based on the unique serial number for each chunk, and is therefore unique across one run of indexamajig regardless of the number of worker processes (-j). This might have to change in future to accommodate jobs run across multiple nodes, if there is any demand for looking at results in one big concatenated stream. This also changes the condition for deciding when to look for a 'real' file, to take into account that there is always a non-NULL filename.
2021-04-19Unify loading of image data and header valuesThomas White
This moves the entry point for loading MsgPack data to a new function, image_read_data_block. Inside image.c, the image structure can be created using exactly the same functions as for data files.
2021-03-30Add header caching layerThomas White
This simultaneously implements --copy-header/--copy-hdf5-field and gives access to metadata (e.g. detector position or wavelength) when loading from a stream with header-specified values.
2021-03-05Mass update of copyright dates in source code commentsThomas White
2020-12-07Get rid of ImageFeature->rx,ry,rzThomas White
These needed to be kept up to date with a call to map_all_peaks every time anything changed - wavelength, detector position etc. Not doing so has already led to bugs in another branch, and probably already causes problems on this branch. This patch eliminates the rx,ry,rz completely. Anyone who needs reciprocal space coordinates for a peak is now responsible for calling detgeom_transform_coords themselves.
2020-09-08Un-export image_read_image_dataThomas White
Not needed since f5b3c4db36fa.
2020-08-07Remove image->avg_clenThomas White
Horrible API hack.
2020-08-04Add image_write()Thomas White
This is a one-to-one transfer of the old hdf5_write_image()
2020-08-04Add image_create_for_simulation()Thomas White
...and factorise common code
2020-07-29Remove config.h from libcrystfel headersThomas White
Same reason as removing them from tests. Also, libcrystfel might be used in projects which have HAVE_CONFIG_H defined.
2020-07-29stream_read_chunk: Add option to load image dataThomas White
2020-07-29Unify creation of blank image data arraysThomas White
2020-07-29Add --no-image-data and --no-mask-dataThomas White
2020-07-29Create detgeom and data arrays when reading from streamThomas White
2020-07-29Remove events.c, part 1Thomas White
2020-07-29Remove unused imagefile_typeThomas White
2020-07-29Reinstate mark_resolution_range_as_badThomas White
2020-07-29Move MessagePack stuff to separate fileThomas White
Note the nicer separation: ZMQ is in indexamajig only, whereas MessagePack becomes something generally accessible through libcrystfel.
2020-07-29Remove references to old headersThomas White
2020-07-29Remove "struct detector" completely, part IThomas White
record_image has been moved to pattern_sim.c
2020-07-29Remove image_reflection_closestThomas White
Not used anywhere!
2020-07-29Get rid of imagefile_field_list and stuff_from_streamThomas White
The only place this is used is in geoptimiser, to get the average_camera_length, itself a very bad solution.
2020-07-29Port indexamajig to new API, part IThomas White
2020-07-29Add image_expand_frames()Thomas White
2020-07-29Add image_read_peaks()Thomas White
Automatically detects file type, including HDF5 vs CXI
2020-07-29Remove "parent" from struct imagefeatureThomas White
It's not used anywhere, and removing it means that the image structure is no longer needed to search peaks
2020-07-29Add image_get_feature_const() and image_feature_list_copy()Thomas White
2020-07-29ImageFeatureList: Store panel number, not pointerThomas White
This makes the conversion to DataTemplate/detgeom MUCH easier.
2020-07-29Create detgeom structure on image loadThomas White
2020-07-29Basic image loading via new DataTemplate APIThomas White
2020-01-10Mass update of copyright datesThomas White
2019-09-12Avoid duplication of beam and detector parameters for pinkIndexerThomas White
2019-05-29Use Spectrum API for simulationThomas White
2019-05-14Remove image.num_peaks and num_saturated_peaksThomas White
These values were inconsistently set by different parts of the code, e.g. different peak search methods. num_saturated_peaks was even set during final integration. Now, the peak count is taken from the ImageFeatureList, so it's authoritative.
2019-05-14Remove "valid" item from "struct imagefeature"Thomas White
2019-05-07Update all source code comments to Doxygen formatThomas White
2019-05-07Move spectrum type enum to pattern_sim.cThomas White
2018-09-27Write in stream whether crystal was selected as a "hit" or notThomas White
2018-09-20Handle gzipped CBF filesThomas White
2018-09-10Fussiness / formattingThomas White
2018-09-10indexamajig: read pink beam spectrum from fileAlexandra Tolstikova
2018-09-10Change image.spectrum to image.spectrum0 to use a different structure for ↵Alexandra Tolstikova
spectrum.
2018-09-10pattern_sim: read spectrum from fileAlexandra Tolstikova
2018-07-09Fix typoThomas White
2018-07-09Add number of indexing attempts to streamThomas White
2018-06-10indexamajig: Estimate resolution based on peaks onlyThomas White
2018-02-27Update comment to clarify interpretation of bandwidthThomas White
2017-09-21Improve error message when using CBF files and a multi-event geometryThomas White
2017-09-07remove_flagged_crystals(): Return the number of crystals removedThomas White
2017-07-24Update docsThomas White