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