MeshLib C++ Docs
Loading...
Searching...
No Matches

everything about a raster except its values More...

#include <MRMesh/MRRaster.h>

Public Member Functions

size_t dataSize () const
 returns the size of all values in bytes, or the largest size_t value if the size does not fit in size_t, which no data can have
bool operator== (const RasterInfo &) const =default

Public Attributes

Vector3i dims
 number of pixels along each axis: x is the width, y is the height, z is the number of layers
ScalarType type = ScalarType::Unknown
 type of all values
int channels = 1

Detailed Description

everything about a raster except its values

Member Function Documentation

◆ dataSize()

size_t MR::RasterInfo::dataSize ( ) const
nodiscard

returns the size of all values in bytes, or the largest size_t value if the size does not fit in size_t, which no data can have

◆ operator==()

bool MR::RasterInfo::operator== ( const RasterInfo & ) const
default

Member Data Documentation

◆ channels

int MR::RasterInfo::channels = 1

number of values in each pixel, e.g. 1 for gray values, 3 for RGB colors, 4 for RGBA colors, or any number of bands; convertRasterToImage takes three or more channels as RGB(A) colors, so three or four gray bands look like colors there

◆ dims

Vector3i MR::RasterInfo::dims

number of pixels along each axis: x is the width, y is the height, z is the number of layers

◆ type

ScalarType MR::RasterInfo::type = ScalarType::Unknown

type of all values


The documentation for this struct was generated from the following file: