Create Dataset from Images

조회 수: 7 (최근 30일)
Fabiana Chiantore
Fabiana Chiantore 2023년 2월 21일
답변: Image Analyst 2023년 2월 21일
Hello!
I have some code which to practise I have used the Matlab dataset 'mri', now I would like to create a similar dataset with my images to run the code with. How can I do this?
I need the dataset to display the same qualities as the 'mri' dataset, so the images dimensions and color patterns.
Thank you!

답변 (1개)

Image Analyst
Image Analyst 2023년 2월 21일
I don't think you need that. If you want to process a sequence of your image files, see the FAQ:
If you still want to build a 4-D array you can use
rgbImage = imread(filename);
image4D = cat(4, image4D, rgbImage);
inside the for loop.

카테고리

Help CenterFile Exchange에서 Medical Physics에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by