- https://www.mathworks.com/help/matlab/ref/imread.html
- https://www.mathworks.com/help/images/ref/imshow.html
- https://www.mathworks.com/help/matlab/ref/rgb2gray.html
from where and how to down image (colored &gray) to work on MATLAB on my computer?
1 次查看(过去 30 天)
显示 更早的评论
from where and how to down image (colored &gray) to work on MATLAB on my computer?
0 个评论
回答(1 个)
Zinea
2024-10-8
I think you meant how to load a downloaded image present in your computer into MATLAB. For this, you can use the '"imread" and "imshow" functions as given below:
image = imread('path_to_your_image.jpg');
imshow(image); % Display the image
In case you have a colored image and need to convert it to grayscale, you may use the "rgb2gray" function:
Given below are the documentation links for the functions used:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!