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