eVision Python API
Loading...
Searching...
No Matches
eVision.EBW16 Class Reference

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

Public Member Functions

None __init__ (self)
 Constructs a eVision.EBW16 object.
None __init__ (self, int value)
 Constructs a eVision.EBW16 object.
None __init__ (self, eVision.EBW16 other)
int Value (self)
 The value of the pixel.
 Value (self, int value)
 The value of the pixel.

Static Public Member Functions

int GetSize ()
 The number of bits in a pixel.

Detailed Description

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

Remarks:

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

◆ __init__() [1/3]

None eVision.EBW16.__init__ ( self)

Constructs a eVision.EBW16 object.

◆ __init__() [2/3]

None eVision.EBW16.__init__ ( self,
int value )

Constructs a eVision.EBW16 object.

Parameters
valueThe value of the pixel.

◆ __init__() [3/3]

None eVision.EBW16.__init__ ( self,
eVision.EBW16 other )
Parameters
otherOther instance

Member Function Documentation

◆ GetSize()

int eVision.EBW16.GetSize ( )
static

The number of bits in a pixel.

◆ Value() [1/2]

int eVision.EBW16.Value ( self)

The value of the pixel.

◆ Value() [2/2]

eVision.EBW16.Value ( self,
int value )

The value of the pixel.