How can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ?

4 ビュー (過去 30 日間)
Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you.

採用された回答

Walter Roberson
Walter Roberson 2024 年 9 月 12 日
You just imread() the file.
  • .bmp - limit 32767 x 32767
  • .gif - limit 65535 x 65535
  • .jpg - limit 65535 x 65535
  • .png - limit 1073741823 x 1073741823
  • .tiff - limit 65535 x 65535 (maximum 4 Gigabytes per image)

その他の回答 (1 件)

Shashi Kiran
Shashi Kiran 2024 年 9 月 12 日
To read an image of size 2048x2048 pixels using MATLAB R2013a, imread() function can be used. Here is how you can accomplish this.
img = imread('test.jpg'); % Change test.jpg with your file name
imshow(img);
% Check the size of the image
imageSize = size(img);
disp(['Image size: ', num2str(imageSize)]);
  • Ensure that the image file is located in your current working directory or specify its full path.
Refer to the following documentation for more details about the function:
  1. imread (MATLAB R2024b): https://www.mathworks.com/help/matlab/ref/imread.html
  2. Use command "doc imread" in the command window of R2013a for the documentation of that release.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by