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

조회 수: 2 (최근 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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by