[uint8] [Up] [mmframe] | Data Type Conversion |
uint16 clips the input image between the values 0 and 65535 and converts it to the unsigned 16-bit datatype.
>>> a = int32([-3,0,8,100000])
>>> print uint16(a)
[ 0 0 8 65535]
def uint16(f): from Numeric import array, clip img = array(clip(f,0,65535)).astype('w') return img
int32 | Convert an image to an int32 image. |
uint8 | Convert an image to an uint8 image. |
mmdatatype | Return the image datatype string |
[uint8] [Up] [mmframe] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |