how to load a downloaded image doesn't present in my computer into MATLAB, I mean how to down load from other sources, and how to convert into grayscale.
1 次查看(过去 30 天)
显示 更早的评论
how to load a downloaded image doesn't present in my computer into MATLAB, I mean how to down load from other sources, and how to convert into grayscale.
0 个评论
回答(1 个)
Sameer
2024-10-8
编辑:Sameer
2024-10-8
Hi Ahmed
To load an image from an online source into MATLAB and convert it to grayscale, you can follow these steps:
1. Read the Image from an Online Source:
url = 'https://example.com/path/to/image.jpg';
% Read the image from the URL
img = webread(url);
% Display the image
imshow(img);
title('Original Image');
2. Convert the Image to Grayscale:
grayImg = rgb2gray(img);
figure;
imshow(grayImg);
title('Grayscale Image');
Please refer to the below MathWorks documentation links:
Hope this helps!
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!