EleFits
4.0.1
A modern C++ API on top of CFitsIO
|
◆ makeRaster() [1/2]
template<typename T , typename... Longs>
Shortcut to create a raster from a shape and data without specifying the template parameters.
Example usages: Given:
- long width, height, depth: The axes lengths;
- float* ptr: The pixel values as a pointer;
- std::vector<float> vec: The pixel values as a vector;
auto ptrRaster2D = makeRaster(ptr, width, height);
auto ptrRaster3D = makeRaster(ptr, width, height, depth);
|