Generated from: MR::RasterInfo
everything about a raster except its values
| mrmeshpy.ConstRasterInfo.__init__ |
( |
| self, |
|
|
* | args, |
|
|
** | kwargs ) |
__init__(*args, **kwargs)
Overloaded function.
1. __init__(self: meshlib.mrmeshpy.ConstRasterInfo) -> None
2. __init__(self: meshlib.mrmeshpy.ConstRasterInfo, arg0: meshlib.mrmeshpy.ConstRasterInfo) -> None
Implicit copy constructor.
3. __init__(self: meshlib.mrmeshpy.ConstRasterInfo, dims: meshlib.mrmeshpy.ConstVector3i, type: meshlib.mrmeshpy.ScalarType, channels: int) -> None
Implicit aggregate constructor.
4. __init__(self: meshlib.mrmeshpy.ConstRasterInfo, : meshlib.mrmeshpy.ConstRasterInfo) -> None
| int mrmeshpy.ConstRasterInfo.channels |
( |
| self | ) |
|
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
Reimplemented in mrmeshpy.RasterInfo, and mrmeshpy.RasterInfo.