How can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ?
Show older comments
Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you.
Accepted Answer
More Answers (1)
Shashi Kiran
on 12 Sep 2024
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:
- imread (MATLAB R2024b): https://www.mathworks.com/help/matlab/ref/imread.html
- Use command "doc imread" in the command window of R2013a for the documentation of that release.
1 Comment
Ali Al-Janabi
on 13 Sep 2024
Categories
Find more on Image Data Acquisition in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!