|
Image Processing : Introduction to Image Processing in IDL |
|
Pixel values in an image file can be stored in many different data types. IDL maintains 15 different data types. The original data type of an image is reflected in IDL when importing the image, but the type can be converted once the image is stored in an IDL variable. The following types are commonly used for images:
While pixel values are commonly stored in files as whole numbers, they are usually converted to floating-point or double-precision data types prior to performing numerical computations. See the examples section of REFORM and "Calculating Image Statistics" for more information.
IDL provides predefined routines to convert data from one type to another. These routines are shown in the following table:
IDL Online Help (March 06, 2007)