from where and how to down image (colored &gray) to work on MATLAB on my computer?

1 回表示 (過去 30 日間)
Ahmed
Ahmed 2024 年 10 月 8 日
回答済み: Zinea 2024 年 10 月 8 日
from where and how to down image (colored &gray) to work on MATLAB on my computer?

回答 (1 件)

Zinea
Zinea 2024 年 10 月 8 日
Hi @Ahmed,
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:

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by