Zebra Bioptic Color Camera SDK For Linux  1.0.0-17
All Classes Functions Variables Enumerations Enumerator
zebra::camera_sdk::Image Class Reference

#include <camera_types.h>

Public Member Functions

 Image (ImageFormat format, uint32_t width, uint32_t height, size_t stride, size_t length, const uint8_t *data)
 
 Image (ImageFormat format, uint32_t width, uint32_t height, size_t stride, std::vector< uint8_t > &&data)
 
ImageFormat Format () const
 
uint32_t Width () const
 
uint32_t Height () const
 
uint32_t Stride () const
 
size_t Length () const
 
const uint8_t * Data () const
 
 Image (ImageFormat format, uint32_t width, uint32_t height, size_t stride, size_t length, const uint8_t *data)
 
 Image (ImageFormat format, uint32_t width, uint32_t height, size_t stride, std::vector< uint8_t > &&data)
 
ImageFormat Format () const
 
uint32_t Width () const
 
uint32_t Height () const
 
uint32_t Stride () const
 
size_t Length () const
 
const uint8_t * Data () const
 

Detailed Description

Represents an image where image data is managed. Unlike ImageData, the data in Image has its own copy of instead of sharing it with SDK.

Constructor & Destructor Documentation

◆ Image() [1/4]

zebra::camera_sdk::Image::Image ( ImageFormat  format,
uint32_t  width,
uint32_t  height,
size_t  stride,
size_t  length,
const uint8_t *  data 
)

Construct an Image object.

Parameters
widthof the image in pixels.
heightof the image in pixels.
imagestride.
lengthof the image in pixels.
rawpointer to a buffer with image data.

◆ Image() [2/4]

zebra::camera_sdk::Image::Image ( ImageFormat  format,
uint32_t  width,
uint32_t  height,
size_t  stride,
std::vector< uint8_t > &&  data 
)

Construct an Image object.

Parameters
widthof the image in pixels.
heightof the image in pixels.
imagestride.
lengthof the image in pixels.
referenceto a vector which contains image data.

◆ Image() [3/4]

zebra::camera_sdk::Image::Image ( ImageFormat  format,
uint32_t  width,
uint32_t  height,
size_t  stride,
size_t  length,
const uint8_t *  data 
)

Construct an Image object.

Parameters
widthof the image in pixels.
heightof the image in pixels.
imagestride.
lengthof the image in pixels.
rawpointer to a buffer with image data.

◆ Image() [4/4]

zebra::camera_sdk::Image::Image ( ImageFormat  format,
uint32_t  width,
uint32_t  height,
size_t  stride,
std::vector< uint8_t > &&  data 
)

Construct an Image object.

Parameters
widthof the image in pixels.
heightof the image in pixels.
imagestride.
lengthof the image in pixels.
referenceto a vector which contains image data.

Member Function Documentation

◆ Data() [1/2]

const uint8_t* zebra::camera_sdk::Image::Data ( ) const

Get image data pointer.

◆ Data() [2/2]

const uint8_t* zebra::camera_sdk::Image::Data ( ) const

Get image data pointer.

◆ Format() [1/2]

ImageFormat zebra::camera_sdk::Image::Format ( ) const

Get image format.

◆ Format() [2/2]

ImageFormat zebra::camera_sdk::Image::Format ( ) const

Get image format.

◆ Height() [1/2]

uint32_t zebra::camera_sdk::Image::Height ( ) const

Get image height.

◆ Height() [2/2]

uint32_t zebra::camera_sdk::Image::Height ( ) const

Get image height.

◆ Length() [1/2]

size_t zebra::camera_sdk::Image::Length ( ) const

Get image data length.

◆ Length() [2/2]

size_t zebra::camera_sdk::Image::Length ( ) const

Get image data length.

◆ Stride() [1/2]

uint32_t zebra::camera_sdk::Image::Stride ( ) const

Get image stride.

◆ Stride() [2/2]

uint32_t zebra::camera_sdk::Image::Stride ( ) const

Get image stride.

◆ Width() [1/2]

uint32_t zebra::camera_sdk::Image::Width ( ) const

Get image width.

◆ Width() [2/2]

uint32_t zebra::camera_sdk::Image::Width ( ) const

Get image width.


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