pingwyn.to_uint8

pingwyn.to_uint8(obj)

Convert object values to numpy unsigned 8-bit integers.

Parameters:

obj (pingwyn.Curve or pingwyn.Grid or pingwyn.Image or pingwyn.Profile) – Object to convert.

Returns:

Converted object. Has the same type as the input object.

Return type:

pingwyn.Curve or pingwyn.Grid or pingwyn.Image or pingwyn.Profile

See also

pingwyn.normalise

Used to ensure data fits within a uint8.