.. _program_listing_file_include_dx2_imagesequence.hpp: Program Listing for File imagesequence.hpp ========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/dx2/imagesequence.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include using json = nlohmann::json; class ImageSequence { public: ImageSequence() = default; ImageSequence(std::string filename, int n_images); // Constructor for MultiImage formats e.g. h5. ImageSequence( std::string filename); // Constructor for non-MultiImage formats e.g. cbf. ImageSequence(json imagesequence_data); json to_json() const; const std::string &filename() const; protected: int n_images_{}; std::string filename_{}; std::vector single_file_indices_{}; json imagesequence_data_{}; // For propagating additional metadata during // serialization/deserialization. };