| each color component is 8 bits. See "Remarks" on page 2-1695 for a discussion of bitdepths, and see "Format-Specific Information" on page 2-1695 for more detail about supported bitdepths and sample sizes for a particular format. [X, map] = imread(...) reads the indexed image in filename into X and its associated colormap into map. Colormap values in the image file are automatically rescaled into the range [0,1]. [...] = imread(filename) attempts to infer the format of the file from its content. [...] = imread (URL,...) reads the image from an Internet URL. The URL must include the protocol type (e.g., http://). See the format-specific sections for additional syntaxes. Remarks Bitdepth is the number of bits used to represent each image pixel. Bitdepth is calculated by multiplying the bits-per-sample with the samples-per-pixel. Thus, a format that uses 8-bits for each color component (or sample) and three samples per pixel has a bitdepth of 24. Sometimes the sample size associated with a bitdepth can be ambiguous: does a 48-bit bitdepth represent six 8-bit samples, four 12-bit samples, or three 16-bit samples? The following format-specific sections provide sample size information to avoid this ambiguity. Format-Specific The following sections provide information about the support for specific Information formats, listed in alphabetical order by format name. These sections include information about format-specific syntaxes, if they exist. The following is a list of links to the various sections. • "BMP — Windows® Bitmap" on page 2-1696 • "CUR — Cursor File" on page 2-1696 • "GIF — Graphics Interchange Format" on page 2-1697 • "HDF4 — Hierarchical Data Format" on page 2-1698 • "ICO — Icon File" on page 2-1699 |