diff --git a/writer/HDF5NXmx.cpp b/writer/HDF5NXmx.cpp index 3c99acbb..36e0eb56 100644 --- a/writer/HDF5NXmx.cpp +++ b/writer/HDF5NXmx.cpp @@ -193,7 +193,7 @@ void HDF5Metadata::DetectorModule(HDF5File *hdf5_file, const std::string &name, } void HDF5Metadata::SaveCBORImage(HDF5File *hdf5_file, const std::string &hdf5_path, const CBORImage &image) { - std::vector dims = {image.xpixel, image.ypixel}; + std::vector dims = {image.ypixel, image.xpixel}; HDF5DataType data_type(image.pixel_depth_bytes, image.pixel_is_signed); HDF5Dcpl dcpl;