![]() |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Simple, light-weight, non-owning wrappper over MImage.
Intended for use in functions that only need to access MImage metadata, where it can alleviate the need for introducing template parameters for MImage passing mode (like in GenericImage) or data type (like in Image class).
Inheritance diagram for LLU::ImageView:
Collaboration diagram for LLU::ImageView:#include <Image.hpp>
Public Member Functions | |
| ImageView (const GenericImage &gIm) | |
| Create a ImageView from a GenericImage. More... | |
| ImageView (MImage mi) | |
| Create a ImageView from a raw MImage. More... | |
| colorspace_t | colorspace () const override |
| Get colorspace which describes how colors are represented as numbers. More... | |
| mint | rows () const override |
| Get number of rows. More... | |
| mint | columns () const override |
| Get number of columns. More... | |
| mint | slices () const override |
| Get number of slices. More... | |
| mint | channels () const override |
| Get number of channels. More... | |
| bool | alphaChannelQ () const override |
| Check if there is an alpha channel in the image. More... | |
| bool | interleavedQ () const override |
| Check if the image is interleaved. More... | |
| bool | is3D () const override |
| Check if the image is 3D. More... | |
| mint | getRank () const override |
| Get rank. More... | |
| mint | getFlattenedLength () const override |
| Get the total number of pixels in the image. More... | |
| imagedata_t | type () const final |
| Get the data type of the image. More... | |
| void * | rawData () const override |
| Get access to raw image data. More... | |
|
inline |
Create a ImageView from a GenericImage.
| gIm | - a GenericImage |
|
inline |
Create a ImageView from a raw MImage.
| mi | - a raw MImage |
|
inlineoverridevirtual |
Check if there is an alpha channel in the image.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get number of channels.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get colorspace which describes how colors are represented as numbers.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get number of columns.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get the total number of pixels in the image.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get rank.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Check if the image is interleaved.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Check if the image is 3D.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get access to raw image data.
Use with caution.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get number of rows.
Implements LLU::ImageInterface.
|
inlineoverridevirtual |
Get number of slices.
Implements LLU::ImageInterface.
|
inlinefinalvirtual |
Get the data type of the image.
imagedata_t) Implements LLU::ImageInterface.