cuVSLAM API Reference
Public Types | Public Attributes | List of all members
cuvslam::ImageData Struct Reference

Image data structure. More...

Public Types

enum class  Encoding : uint8_t {
  MONO ,
  RGB
}
 Image encoding. More...
 
enum class  DataType : uint8_t {
  UINT8 ,
  UINT16 ,
  FLOAT32
}
 Image data type. More...
 

Public Attributes

const void * pixels
 Pixels must be stored row-wise (right to left, top to bottom)
 
int32_t width
 image width must match Camera::size
 
int32_t height
 image height must match Camera::size
 
int32_t pitch
 bytes per image row including padding for GPU memory images, ignored for CPU images
 
Encoding encoding
 grayscale and RGB are supported now
 
DataType data_type
 image data type
 
bool is_gpu_mem
 is pixels pointer points to GPU or CPU memory buffer
 

Detailed Description

Image data structure.

Note
Image pixels must be stored row-wise (right to left, top to bottom)
Image width and height must match Camera::size

Member Enumeration Documentation

◆ Encoding

enum cuvslam::ImageData::Encoding : uint8_t
strong

Image encoding.

Enumerator
MONO 

grayscale or other single-channel data

RGB 

RGB.

◆ DataType

enum cuvslam::ImageData::DataType : uint8_t
strong

Image data type.

Enumerator
UINT8 

8-bit unsigned integer

UINT16 

16-bit unsigned integer

FLOAT32 

32-bit floating point