16 #include "Base/Axis/IAxis.h"
17 #include "Base/Util/Assert.h"
18 #include "Device/Data/Datafield.h"
24 std::vector<IAxis*> axes;
25 for (
size_t i = 0; i < data.rank(); ++i)
26 axes.emplace_back(data.axis(i).clone());
28 auto result = std::make_unique<Datafield>(axes);
30 result->setVector(data.flatVector());
Defines namespace GUI::Util::IO.
std::unique_ptr< Datafield > binifyAxes(const Datafield &data)
Creates Datafield with bin-valued axes.