36 #ifndef RC_GENICAM_API_IMAGE 37 #define RC_GENICAM_API_IMAGE 93 std::unique_ptr<uint8_t []>
pixel;
143 void getColor(uint8_t rgb[3],
const std::shared_ptr<const Image> &img,
144 uint32_t ds, uint32_t i, uint32_t k);
The image class encapsulates image information.
size_t getYPadding() const
uint64_t getFrameID() const
uint64_t getPixelFormat() const
void convYCbCr411toRGB(uint8_t rgb[3], const uint8_t *row, int i)
Conversion of one pixel from YCbCr411 format (6 bytes for four pixels) to RGB.
Image & operator=(const Image &)
void convYCbCr411toQuadRGB(uint8_t rgb[12], const uint8_t *row, int i)
Conversion of a group of four pixels from YCbCr411 format (6 bytes for four pixels) to RGB...
The buffer class encapsulates a Genicam buffer that is provided by a stream.
bool convertImage(uint8_t *rgb_out, uint8_t *mono_out, const uint8_t *raw, uint64_t pixelformat, size_t width, size_t height, size_t xpadding)
Converts image to RGB and monochrome format.
Image(const Buffer *buffer, std::uint32_t part)
Copies the image information of the buffer.
const uint8_t * getPixels() const
Pointer to pixel information of the image.
size_t getXPadding() const
size_t getXOffset() const
uint64_t getTimestampNS() const
size_t getYOffset() const
std::unique_ptr< uint8_t[]> pixel
void getColor(uint8_t rgb[3], const std::shared_ptr< const Image > &img, uint32_t ds, uint32_t i, uint32_t k)
Expects an image in Mono8 or YCbCr411_8 format and returns the color as RGB value at the given pixel ...