imread
Read image from graphics file
Syntax
Description
A = imread(___,Name=Value)AutoOrient
                                    to true (since R2024b).
[ reads the indexed image in
                                    A,map]
= imread(___)filename into A and
                              reads the associated colormap of the image into
                                    map. Colormap values in the image file are
                              automatically rescaled into the range [0, 1]. This syntax does not
                              apply to HEIF and HEIC image files as colormap is not supported by
                              these file formats.
[ additionally returns the image
                              transparency. This syntax applies only to PNG, CUR, and ICO files. For
                              PNG files, A,map,transparency]
= imread(___)transparency is the alpha channel, if
                              one is present. For CUR and ICO files,
                                    transparency is the AND (opacity)
                              mask.
Examples
Read a sample image.
A = imread("ngc6543a.jpg");The imread function returns a 650-by-600-by-3 array of type uint8.
Display the image.
image(A)

Read the first image in a sample indexed image file.
[A,map] = imread("corn.tif"); whos A map
Name Size Bytes Class Attributes A 415x312 129480 uint8 map 256x3 6144 double
The indexed image A is a 415-by-312 matrix of type uint8, and the colormap map is a 256-by-3 matrix of type double. The dimensions of map indicate that the indexed image contains up to 256 colors.
Display the image.
imshow(A,map)

Convert the indexed image to an RGB image. The result is a 415-by-312-by-3 array of type double. 
RGB = ind2rgb(A,map);
Check that the values of the RGB image are in the range [0, 1].
[minVal,maxVal] = bounds(RGB(:))
minVal = 0.0078
maxVal = 0.9765
Read and display the third image in a sample file.
[A,map] = imread("corn.tif",3);
imshow(A,map)
Return the alpha channel of a sample image.
[A,map,alpha] = imread("peppers.png"); whos alpha
Name Size Bytes Class Attributes alpha 0x0 0 double
No alpha channel is present, so alpha is empty.
Read a specific region of pixels of a sample image.
Specify the PixelRegion name-value argument with a cell array of vectors indicating the boundaries of the region to read. The first vector describes the range of rows to read, and the second vector describes the range of columns to read. 
[A,map] = imread("corn.tif",PixelRegion={[201 400] [151 250]});The imread function reads the image data in rows 201–400 and columns 151–250 from corn.tif and returns the 200-by-100 array A.
Display the image.
imshow(A,map)

Since R2024b
Some image files contain orientation metadata in an exchangeable image file format (Exif) Orientation tag. When reading the image file with imread, you can orient the image data automatically according to this orientation tag by specifying the AutoOrient name-value argument as true.
Make a tiling of eight versions of the same image with different values in their Exif Orientation tags. The file clock_n.jpg has a value of n in its Exif Orientation tag. If you do not specify the AutoOrient name-value argument, then the images are read without regard to their respective Exif Orientation tag values.
filenames = "clock_" + string(1:8) + ".jpg"; for i = 1:8 rawImages{i} = imread(filenames(i)); end imshow(imtile(rawImages,BorderSize=[25 25],GridSize=[2 4]))

Use the AutoOrient name-value argument to transform each image according to its respective Exif Orientation tag value before reading the image data into the workspace. View the transformed images.
for i = 1:8 orientedImages{i} = imread(filenames(i),AutoOrient=true); end imshow(imtile(orientedImages,BorderSize=[25 25],GridSize=[2 4]))

Input Arguments
Name of the graphics file, specified as a string scalar or character vector.
Depending on the location of your file, filename can take one of
            these forms.
| Location | Form | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Current folder or folder on the MATLAB® path | Specify the name of the file in
                                         Example:
                                     | ||||||||
| File in a folder | If the file is not in the current folder or in a folder on the MATLAB path, then specify the full or relative path name. Example:
                                     Example:
                                     | ||||||||
| Uniform resource locator (URL) | If the file is located by an internet URL, then
                                         Example:
                                     | ||||||||
| Remote location | If the file is stored at a remote location, then
                                         
 Based on the remote location,
             
 For more information, see Work with Remote Data. Example:
                                     | 
Image format, specified as a string scalar or character vector indicating the standard
            file extension. Call imformats to see a list of supported
            formats and their file extensions.
Example: "png"
Image to read, specified as an integer scalar or, for GIF files,
                                    a vector of integers. For example, if idx
                                    is 3, then the imread
                                    function reads the third image in the file. For a GIF file, if
                                          idx is 1:5, then
                                    the imread function reads only the first
                                    five frames. The idx argument is supported
                                    only for multi-image GIF, CUR, ICO, and HDF4 files. 
When reading multiple frames from the same GIF file, specify
                                          idx as a vector of frames or specify
                                    the Frames name-value argument as
                                          "all". Because of the way that GIF
                                    files are structured, these syntaxes provide faster performance
                                    compared to calling imread in a
                                    loop.
Note
For HDF4 files, idx corresponds to
                                          the reference number of the image to read. Reference
                                          numbers do not necessarily correspond to the order of the
                                          images in the file. You can use imfinfo
                                          to match image order with reference number.
Example: 2
Example: 6:10
Data Types: double
Name-Value Arguments
Specify optional pairs of arguments as
      Name1=Value1,...,NameN=ValueN, where Name is
      the argument name and Value is the corresponding value.
      Name-value arguments must appear after other arguments, but the order of the
      pairs does not matter.
    
Example: imread("myImage.tif",Index=5) reads the fifth
                        image of a TIFF file.
      Before R2021a, use commas to separate each name and value, and enclose 
      Name in quotes.
    
Example: imread("myImage.tif","Index",5) reads the fifth
                        image of a TIFF file.
GIF Files
Frames to read, specified as a positive integer, a vector
                                          of integers, or "all". For example, if
                                          you specify the value 3, then
                                                imread reads the third frame in
                                          the file. If you specify "all", then
                                                imread reads all frames and
                                          returns them in the order in which they appear in the
                                          file.
Example: 5
Example: 1:10
Example: "all"
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | string | char
JPEG Files
Since R2024b
Automatically orient the image, specified as
                                                false or true.
                                          Specify AutoOrient as
                                                true to transform the data in
                                                filename according to the Exif
                                                Orientation tag in the image
                                          file. If you specify AutoOrient as
                                                false, the
                                                imread function ignores the
                                          Exif Orientation tag.
Data Types: logical
JPEG 2000 Files
Boundary of region to read, specified as a cell array of
                                          the form
                                                  {.
                                          The rows,cols}rowscolsrowscolsPixelRegion={[1 2] [3 4]}
                                          reads the region bounded by rows 1 and 2 and by columns 3
                                          and 4 of the image data.
Note
If you specify ReductionLevel
                                                as a positive value, then specify
                                                  PixelRegion in reference to
                                                the image after the reduction of resolution.
Example: {[1 100] [4
                                          500]}
Reduction of the image resolution, specified as a
                                          nonnegative integer. If you specify
                                                ReductionLevel as value
                                                  L2.
                                          The reduction level is limited by the total number of
                                          decomposition levels, as specified by the
                                                LWaveletDecompositionLevels field
                                          in the output of the imfinfo
                                          function.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64
Compatibility with MATLAB 7.9 (R2009b) and earlier, specified as
                                                false or true.
                                          If you specify V79Compatible as
                                                true, then the returned grayscale
                                          or RGB image is consistent with previous versions of
                                                imread (MATLAB 7.9 (R2009b) and earlier).
Data Types: logical
PNG Files
Background color, specified as "none",
                                          a positive integer, a number in the range [0, 1], or a
                                          three-element vector of numbers in the range [0, 1]. If
                                          you specify BackgroundColor as
                                                "none", then the
                                                imread function does not
                                          perform any compositing. Otherwise, the
                                                imread function blends
                                          transparent pixels with the background color.
- If the input image is indexed, then the value of - BackgroundColormust be an integer in the range [1,- P], where- Pis the colormap length.
- If the input image is grayscale, then the value of - BackgroundColormust be a number in the range [0, 1].
- If the input image is RGB, then the value of - BackgroundColormust be a three-element vector with numbers in the range [0, 1].
The default value for BackgroundColor
                                          depends on the presence of the
                                                transparency output argument
                                          and the image type: 
- If you request the - transparencyoutput argument, then the default value of- BackgroundColoris- "none".
- If you do not request the - transparencyoutput:- If the file contains a background color chunk, then the color of that chunk is the default value for - BackgroundColor.
- If the file does not contain a background color chunk: - If the input image is indexed, then the default value for - BackgroundColoris- 1.
- If the input image is grayscale, then the default value for - BackgroundColoris- 0.
- If the input image is RGB, then the default value for - BackgroundColoris- [0 0 0].
 
 
Example: 2
Example: 0.5
Example: [0.2 0.8 0.5]
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | string | char
TIFF Files
Since R2024b
Automatically orient the image, specified as
                                                false or true.
                                          Specify AutoOrient as
                                                true to transform the data in
                                                filename according to the Exif
                                                Orientation tag in the image
                                          file. If you specify AutoOrient as
                                                false, the
                                                imread function ignores the
                                          Exif Orientation tag.
Note
If you specify PixelRegion in addition to specifying
                                                  AutoOrient as
                                                  true, then the
                                                  imread function first reads
                                                the specified region and then transforms the region
                                                according to the Exif Orientation
                                                tag in the file.
Data Types: logical
Image to read, specified as a positive integer. For
                                          example, if the value of Index is
                                                3, then the
                                                imread function reads the third
                                          image in the file.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64
Information about the image, specified as a structure
                                          array returned by the imfinfo
                                          function. Use the Info name-value
                                          argument to help imread locate the
                                          images in a multi-image TIFF file more quickly.
Data Types: struct
Boundary of region to read, specified as a cell array of
                                          the form
                                                  {.
                                          The rows,cols}rowscolsrowscols
- A two-element vector of the form - [for- start- stop]- rows- cols- {[1 2] [3 4]}reads the region bounded by rows 1 and 2 and by columns 3 and 4 of the image data.
- A three-element vector of the form - [for- start- step- stop]- rows- cols- {[1 2 10] [4 3 12]}reads the region bounded by rows 1 and 10 and by columns 4 and 12 of the image data, with a horizontal step size of 2 and a vertical step size of 3.
Example: {[1 100] [4
                                          500]}
Example: {[100 5 200] [250 2
                                          500]}
HEIF and HEIC Files
Since R2025a
Option to automatically orient the image, specified as a
                                          numeric or logical 1 (true) or
                                                0 (false). Specify
                                                AutoOrient as
                                                true to transform the data in
                                                filename according to the Exif
                                                Orientation tag in the image
                                          file. If you specify AutoOrient as
                                                false, the
                                                imread function ignores the
                                          Exif Orientation tag.
Data Types: logical
Output Arguments
Image data, returned as an array. If the image data has
                                                mn
- If the file contains a grayscale image, then - Ais an- m- n
- If the file contains an indexed image, then - Ais an- m- n- map.
- If the file contains an RGB (truecolor) image, then - Ais an- m- n
- If the file is a TIFF file containing color images that use the CMYK color space, then - Ais an- m- n
The class of A depends on the image format
                                    and the bit depth of the image data. For more information, see
                                          Algorithms.
Colormap associated with the indexed image data in
                                          A, returned as a three-column matrix
                                    of class double.
Transparency information, returned as a matrix.
- For PNG files: - If the alpha channel is present and you do not specify the - BackgroundColorname-value argument, then- transparencyis the alpha channel.
- If the alpha channel is not present or you specify the - BackgroundColorname-value argument, then- transparencyis empty.
 
- For CUR and ICO files, - transparencyis the AND (opacity) mask.
More About
Bit depth is the number of bits used to represent each image pixel.
Bit depth 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 bit depth of 24. Sometimes the sample size associated with a bit depth can be ambiguous. For example, a 48-bit bit depth can represent six 8-bit samples, four 12-bit samples, or three 16-bit samples. See Algorithms for sample size information to avoid this ambiguity.
Tips
- The - AutoOrientname-value argument operates only on files of JPEG, TIFF (since R2024b), HEIF, or HEIC (since R2025a) format. If you specify the- AutoOrientargument with files of any other format, then the argument has no effect. This behavior allows you to use the- AutoOrientargument to attempt to orient collections of images automatically, even if some of the files in the collections are not of JPEG, TIFF (since R2024b), HEIF, or HEIC (since R2025a) format.
- This table shows how the - imreadfunction uses the value of the Exif- Orientationtag to transform the image data when the- AutoOrientname-value argument is- true.- Value of - OrientationField- Description of Transformation - 1- No transformation - 2- Reflect about vertical axis - 3- Rotate 180° - 4- Reflect about vertical axis and then rotate 180° - 5- Reflect about vertical axis and then rotate 90° counterclockwise - 6- Rotate 90° clockwise - 7- Reflect about vertical axis and then rotate 90° clockwise - 8- Rotate 90° counterclockwise - (since R2024b) 
Algorithms
For most image file formats, imread uses 8 or fewer bits per
                  color plane to store image pixels. This table lists the data type of the returned
                  image array, A, for the bit depths used by the file
                  formats.
| Bit Depth in File | Class of Array Returned by
                                                   | 
|---|---|
| 1 bit per pixel | 
 | 
| 2 to 8 bits per color plane | 
 | 
| 9 to 16 bits per pixel | 
 For the 16-bit BMP
                                                packed format (5-6-5), MATLAB returns
                                                 | 
These sections provide information about the support for specific formats, listed in alphabetical order by format name.
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | No Compression | RLE Compression | Output Class | Notes | 
|---|---|---|---|---|
| 1 bit | ✓ | – | logical | – | 
| 4 bit or 8 bit | ✓ | ✓ | uint8 | – | 
| 16 bit | ✓ | – | uint8 | 1 sample/pixel | 
| 24 bit | ✓ | – | uint8 | 3 samples/pixel | 
| 32 bit | ✓ | – | uint8 | 3 samples/pixel (1 byte padding) | 
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | No Compression | Compression | Output Class | 
|---|---|---|---|
| 1 bit | ✓ | – | logical | 
| 4 bit | ✓ | – | uint8 | 
| 8 bit | ✓ | – | uint8 | 
Note
By default, Microsoft®
                              Windows® cursors are 32-by-32 pixels. Because MATLAB pointers must be 16-by-16, you might need to scale your
                              image. You can use the imresize function for this operation.
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | No Compression | Compression | Output Class | 
|---|---|---|---|
| 1 bit | ✓ | – | logical | 
| 2 bit to 8 bit | ✓ | – | uint8 | 
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | Raster Image with Colormap | Raster Image Without Colormap | Output Class | Notes | 
|---|---|---|---|---|
| 8 bit | ✓ | ✓ | uint8 | – | 
| 24 bit | – | ✓ | uint8 | 3 samples/pixel | 
This table lists the bit depths, compression, and data types supported by the function for HEIF and HEIC files. (since R2025a)
| Supported Bit Depths | No Compression | Compression | Output Class | Notes | 
|---|---|---|---|---|
| 8 bit | ✓ | – | uint8 | RGB | 
| 10 bit | ✓ | – | uint8 | RGB | 
| 12 bit | ✓ | – | uint8 | RGB | 
See CUR — Cursor File.
The imread function reads baseline JPEG images, as well
                        as JPEG images with some commonly used extensions. For information on JPEG
                        2000 file support, see JPEG 2000 — Joint Photographic Experts Group 2000. This table lists supported bit
                        depths and the data type of the output image data array.
| Supported Bits per Sample | Lossy Compression | Lossless Compression | Output Class | Notes | 
|---|---|---|---|---|
| 8 bit | ✓ | ✓ | uint8 | Grayscale or RGB | 
| 12 bit | ✓ | ✓ | uint16 | Grayscale or RGB | 
| 16 bit | – | ✓ | uint16 | Grayscale | 
For information about JPEG files, see JPEG — Joint Photographic Experts Group. This table lists supported bit depths and the data type of the output image data array.
| Supported Bits per Sample | Lossy Compression | Lossless Compression | Output Class | Notes | 
|---|---|---|---|---|
| 1 bit | ✓ | ✓ | logical | Grayscale only | 
| 2 bit to 8 bit | ✓ | ✓ | uint8orint8 | Grayscale or RGB | 
| 9 bit to 16 bit | ✓ | ✓ | uint16orint16 | Grayscale or RGB | 
Note
Indexed JPEG 2000 images are not supported. Only JP2 compatible color
                              spaces are supported for JP2/JPX files. By default, the
                                    imread function returns all image channels
                              in the order they are stored in the file.
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | Raw Binary | ASCII (Plain) Encoded | Output Class | 
|---|---|---|---|
| 1 bit | ✓ | ✓ | logical | 
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | Output Class | Notes | 
|---|---|---|
| 1 bit | logical | Grayscale | 
| 8 bit | uint8 | Grayscale or indexed | 
| 24 bit | uint8 | RGB, three 8-bit samples/pixel | 
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | Raw Binary | ASCII (Plain) Encoded | Output Class | Notes | 
|---|---|---|---|---|
| 8 bit | ✓ | – | uint8 | – | 
| 16 bit | ✓ | – | uint16 | – | 
| Arbitrary | – | ✓ | 1- to 8-bit:
                                                   9- to 16-bit:
                                                   | Values are scaled. | 
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | Output Class | Notes | 
|---|---|---|
| 1 bit | logical | Grayscale | 
| 2 bit or 4 bit | uint8 | Grayscale | 
| 8 bit | uint8 | Grayscale or indexed | 
| 16 bit | uint16 | Grayscale or indexed | 
| 24 bit | uint8 | RGB, three 8-bit samples/pixel | 
| 48 bit | uint16 | RGB, three 16-bit samples/pixel | 
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | Raw Binary | ASCII (Plain) Encoded | Output Class | 
|---|---|---|---|
| Up to 16 bit | ✓ | – | uint8 | 
| Arbitrary | – | ✓ | uint8,uint16, ordouble | 
This table lists supported bit depths and the data type of the output image data array.
| Supported Bit Depths | Output Class | Notes | 
|---|---|---|
| 1 bit | logical | Bitmap | 
| 8 bit | uint8 | Indexed | 
| 24 bit | uint8 | RGB, three 8-bit samples/pixel | 
| 32 bit | uint8 | RGB with Alpha, four 8-bit samples/pixel | 
TIFF-based image file format. The imread function
                        supports reading uncompressed and compressed images, including images with
                        JPEG 2000 compression. For more information, see TIFF — Tagged Image File Format.
The imread function reads most images supported by the
                        TIFF specification or LibTIFF, and supports these TIFF capabilities:
- Any number of samples per pixel. 
- CCITT group 3 and 4 FAX, Packbits, JPEG, LZW, Deflate, ThunderScan compression, and uncompressed images. 
- Logical, grayscale, indexed color, truecolor, and hyperspectral images. 
- RGB, CMYK, CIELAB, and ICCLAB color spaces. If the color image uses the CMYK color space, - Ais an- m- n- m- n- imfinfoto get information about the graphics file and look at the value of the- PhotometricInterpretationfield. If a file contains CIELAB color data, then the- imreadfunction converts it to ICCLAB before bringing it into the MATLAB workspace. This conversion is necessary because 8-bit or 16-bit TIFF CIELAB-encoded values use a mixture of signed and unsigned data types that cannot be represented as a single MATLAB array.
- Data organized into tiles or scanlines. 
The imread function reads and converts TIFF images as
                        follows:
- YCbCr images are converted into the RGB color space. 
- All grayscale images are read as if black = - 0, white = largest value.
- 1-bit images are returned as class - logical.
- 16-bit floating-point images are returned as class - single.
- CIELAB images are converted into the ICCLAB color space. 
This table lists the supported bit depths, compression, and the data type of the output image data array.
| Supported Bit Depths | ZPixmaps | XYBitmaps | XYPixmaps | Output Class | 
|---|---|---|---|---|
| 1 bit | ✓ | – | ✓ | logical | 
| 8 bit | ✓ | – | – | uint8 | 
Extended Capabilities
Usage notes and limitations:
- This function supports reading 8-bit JPEG images only. The input argument - filenamemust be a valid absolute path or relative path.
- Code generation does not support the - AutoOrientname-value argument.
- This function generates code that uses a precompiled, platform-specific shared library (Image Processing Toolbox). 
- If you disable run-time error checking when generating your code and subsequently encounter a run-time error, the error is reported in one of these ways: - If - filenameis not a compile-time constant, an empty matrix is returned.
- If - filenameis a compile-time constant, a black image of the same dimensions as- filenameis returned.
 - Run-time error checking is disabled in code that is generated for embedded targets. 
- You can generate code for embedded targets (such as the NVIDIA® Jetson™) that uses the - imreadfunction with 8-bit JPEG images. Follow these steps to generate code that you can use on embedded targets to read 8-bit JPEG images: (since R2024b)- Generate C/C++ source code and a makefile for the MATLAB code that uses the - imreadfunction by using MATLAB Coder™ with the appropriate configuration, hardware, and input settings.
- Compile - libjpeg-turbofor the target, and install the shared libraries and header files. (Alternatively, for some targets, you might be able to use a prebuilt- libjpeg-turbobinary or to compile- libjpeg-turboon the target.)
- Compile the generated code by linking it with the - libjpeg-turbobuilt for the target.
 
Usage notes and limitations:
- This function supports reading 8-bit JPEG images only. The input argument - filenamemust be a valid absolute path or relative path.
- Code generation does not support the - AutoOrientname-value argument.
- This function generates code that uses a precompiled, platform-specific shared library (Image Processing Toolbox). 
- If you disable run-time error checking when generating your code and subsequently encounter a run-time error, the error is reported in one of these ways: - If - filenameis not a compile-time constant, an empty matrix is returned.
- If - filenameis a compile-time constant, a black image of the same dimensions as- filenameis returned.
 - Run-time error checking is disabled in code that is generated for embedded targets. 
- You can generate code for embedded targets (such as the NVIDIA Jetson) that uses the - imreadfunction with 8-bit JPEG images. Follow these steps to generate code that you can use on embedded targets to read 8-bit JPEG images: (since R2024b)- Generate C/C++ source code and a makefile for the MATLAB code that uses the - imreadfunction by using MATLAB Coder with the appropriate configuration, hardware, and input settings.
- Compile - libjpeg-turbofor the target, and install the shared libraries and header files. (Alternatively, for some targets, you might be able to use a prebuilt- libjpeg-turbobinary or to compile- libjpeg-turboon the target.)
- Compile the generated code by linking it with the - libjpeg-turbobuilt for the target.
 
Usage notes and limitations:
- imreaddoes not support reading Hierarchical Data Format (HDF), SVS, TIFF, HEIF, or HEIC files when you run- imreadin the background using- backgroundPoolor Parallel Computing Toolbox™- Threadpool.
For more information, see Run MATLAB Functions in Thread-Based Environment.
Version History
Introduced before R2006aYou can now use imread to get information
                        about HEIF and HEIC image files.
This functionality requires MATLAB Support for HEIF/HEIC Image Format, which is available only on MATLAB desktop environment. However, you cannot use HEIF and HEIC image files in a standalone application workflow.
To install the support package:
- On the MATLAB Home tab, in the Environment section, select Add-Ons > Explore Add-Ons. 
- In the Add-On Explorer search bar, search for MATLAB Support for HEIF/HEIC Image Format and then click the MATLAB Support for HEIF/HEIC Image Format add-on. 
Apply Exif Orientation tag values to JPEG and TIFF images
                        by using the AutoOrient name-value argument.
Using MATLAB
            Coder, you can generate code that uses the
                              imread function with 8-bit JPEG images and then
                        use the generated code on embedded targets.
Pixel value differences might exist between JPEG 2000 images in R2021b and previous releases of MATLAB.
When you read a GIF file without specifying additional arguments, the
                              imread function reads only the first frame by
                        default. Previously, imread read all the frames in the
                        file by default.
You can read Aperio SVS microscopy image files and TIFF image files with JPEG 2000 compression.
You can read specified images from multi-image PGM, PBM, or PPM files.
See Also
Functions
Live Editor Tasks
Topics
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)