FOUND
Loading...
Searching...
No Matches
found::Image Struct Reference

Represents an image. More...

#include <style.hpp>

Public Attributes

int width
 The image width.
 
int height
 The image height.
 
int channels
 The image channels.
 
unsigned char * image
 The image contents.
 

Detailed Description

Represents an image.

Note
If image points to heap allocated memory, it must be freed appropriately

Member Data Documentation

◆ channels

int found::Image::channels

The image channels.

◆ height

int found::Image::height

The image height.

◆ image

unsigned char* found::Image::image

The image contents.

Note
For each pixel, the channels are collated, meaning that for any pixel at index, the value of that pixel in channel n (for 0 <= index < width * height and 0 <= n < channels) is image[channels * index + n]

◆ width

int found::Image::width

The image width.


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