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

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

Public Member Functions

None __init__ (self)
 Constructs a eVision.EBW8 object.
None __init__ (self, int value)
 Constructs a eVision.EBW8 object.
None __init__ (self, eVision.EBW8 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 8-bit integer.

Remarks:

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

◆ __init__() [1/3]

None eVision.EBW8.__init__ ( self)

Constructs a eVision.EBW8 object.

◆ __init__() [2/3]

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

Constructs a eVision.EBW8 object.

Parameters
valueThe value of the pixel.

◆ __init__() [3/3]

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

Member Function Documentation

◆ GetSize()

int eVision.EBW8.GetSize ( )
static

The number of bits in a pixel.

◆ Value() [1/2]

int eVision.EBW8.Value ( self)

The value of the pixel.

◆ Value() [2/2]

eVision.EBW8.Value ( self,
int value )

The value of the pixel.