newimage¶
There are 2 forms of this command.
newimage(image name, data type, width, height, depth)
¶
Creates a new, empty image.
Note
In Python/pi2py2, the image name parameter is not specified, and the return value is a Pi2Image object that can be passed to any command expecting an image name as an argument.
This command can be used in the distributed processing mode. Use distribute command to change processing mode from local to distributed.
Arguments¶
data type [input]¶
Data type: string
Default value: uint8
Data type of the image. Can be uint8, uint16, uint32, uint64, int8, int16, int32, int64, float32, or complex32.
See also¶
newimage(image name, data type, dimensions)
¶
Creates a new, empty image.
Note
In Python/pi2py2, the image name parameter is not specified, and the return value is a Pi2Image object that can be passed to any command expecting an image name as an argument.
This command can be used in the distributed processing mode. Use distribute command to change processing mode from local to distributed.
Arguments¶
data type [input]¶
Data type: string
Data type of the image. Can be uint8, uint16, uint32, uint64, int8, int16, int32, int64, float32, or complex32.