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

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

#include <eVision/Easy/EBW16.h>

Public Member Functions

 EBW16 ()
 Constructs a EBW16 object.
 EBW16 (uint16_t value)
 Constructs a EBW16 object.

Static Public Member Functions

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

Public Attributes

uint16_t Value
 The value of the pixel.

Detailed Description

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

High-quality cameras or scanners are able to digitize on 10 or 12 bits. Sometimes too, to avoid numerical truncation errors, intermediate processing results require more than 8 bits of storage. In such situations, 8 bits gray-level images are no longer sufficient. 16 bits gray-level images are similar to 8 bits ones, but each pixel is, in this case, coded on 16 bits, which effect is to increase the levels of gray to 65,536. It is not possible to show the difference between a gray-level image quantized on 16 bits rather than 8. Under Windows, no display device is able to display 16-bit gray levels. Windows doesn't allow you to display more than 256 gray levels.

License(s): None

Constructor & Destructor Documentation

◆ EBW16() [1/2]

eVision::EBW16::EBW16 ( )

Constructs a EBW16 object.

◆ EBW16() [2/2]

eVision::EBW16::EBW16 ( uint16_t value)

Constructs a EBW16 object.

Parameters
valueThe value of the pixel.

Member Function Documentation

◆ GetSize()

int32_t eVision::EBW16::GetSize ( )
static

The number of bits in a pixel.

Member Data Documentation

◆ Value

uint16_t eVision::EBW16::Value

The value of the pixel.