ImageTools
WhatTypeImage
return the type of an image
Calling Sequence
Parameters
Description
Examples
WhatTypeImage( img )
img
-
Image
The WhatTypeImage command returns the type of an image.
If the parameter img is not of type Image, an error is raised. The error message indicates why img is not an Image.
with⁡ImageTools:
img≔Create⁡10,10,r,c↦c⋅r:
WhatTypeImage⁡img
GrayImage
img≔Create⁡10,10,3:
ColorImage
notimg≔Matrix⁡10,10,i,j↦i+j:
WhatTypeImage⁡notimg
Error, (in ImageTools:-WhatTypeImage) datatype is not float[8]
See Also
ImageTools[ImageTypes]
Download Help Document