Classes | |
| struct | MR::RasterInfo |
| everything about a raster except its values More... | |
| struct | MR::Raster |
| regular grid of values of any type: an image if it has one layer, otherwise a volume More... | |
| struct | MR::RasterLoadSettings |
| settings for loading rasters from external formats More... | |
| struct | MR::RasterSaveSettings |
| settings for saving rasters in external formats More... | |
Functions | |
| Expected< Image > | MR::convertRasterToImage (const Raster &raster) |
| Expected< void > | MR::convertRasterToFloats (const Raster &raster, float *dst, size_t size) |
| Expected< void > | MR::convertRasterToFloats (const Raster &raster, std::vector< float > &dst) |
#include <MRMesh/MRRaster.h>
converts the values of a raster to floats in dst, which has room for size = dims.x * dims.y * dims.z values, in the order of the raster:
#include <MRMesh/MRRaster.h>
converts the values of a raster to floats as above, dst is resized to dims.x * dims.y * dims.z values (memory is reallocated only if its capacity is too small)
#include <MRMesh/MRRaster.h>
converts a raster with one layer to an image (the rows are reordered from bottom to top):