eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EBW8 Struct Reference

Gray-level pixel value, coded as an unsigned 8-bit integer. More...

#include <eVision/Easy/EBW8.h>

Public Member Functions

 EBW8 ()
 Constructs a EBW8 object.
 EBW8 (uint8_t value)
 Constructs a EBW8 object.

Static Public Member Functions

static int32_t GetSize ()
 The number of bits in a pixel.

Public Attributes

uint8_t Value
 The value of the pixel.

Detailed Description

Gray-level pixel value, coded as an unsigned 8-bit integer.

Every pixel is coded on 8 bits, allowing to represent 256 different values. The value 0 stands for black (background) and the value 255 stands for white (foreground). The 254 remaining values stand for shades of gray. This is sufficient for most applications. Most of the eVision gray-level operations apply to this pixel type.

License(s): None

Constructor & Destructor Documentation

◆ EBW8() [1/2]

eVision::EBW8::EBW8 ( )

Constructs a EBW8 object.

◆ EBW8() [2/2]

eVision::EBW8::EBW8 ( uint8_t value)

Constructs a EBW8 object.

Parameters
valueThe value of the pixel.

Member Function Documentation

◆ GetSize()

int32_t eVision::EBW8::GetSize ( )
static

The number of bits in a pixel.

Member Data Documentation

◆ Value

uint8_t eVision::EBW8::Value

The value of the pixel.