csv 파일 데이터를 이미지 데이터로 변환하는 방법

조회 수: 11 (최근 30일)
영빈
영빈 2024년 6월 5일
답변: Dinesh 2024년 7월 2일
csv 파일의 데이터를 이미지 데이터로 변환하여 저장하는 방법이 궁금합니다.
  댓글 수: 1
Angelo Yeo
Angelo Yeo 2024년 6월 5일
적당한 예제용 csv 파일이 있으신가요? 어떤 csv 파일을 운용중인지 알면 좋을 것 같습니다.

댓글을 달려면 로그인하십시오.

답변 (1개)

Dinesh
Dinesh 2024년 7월 2일
Hello.
I see that you have a CSV file and want to convert it to an image and save it using MATLAB.
In order to do that, please follow the steps below:
  1. You can use the "readmatrix" function to load the data from the CSV file into MATLAB. You may also want to use the additional options as a parameter to the function to ignore the column names in the CSV, if any. Here is the documentation link for "readmatrix" function: https://www.mathworks.com/help/matlab/ref/readmatrix.html
  2. Ensure that the data is normalized to the range [0, 1] or [0, 255] for image representation.
  3. Now, you can use the "imshow" function to display the image and use "imwrite" to save the image. Here are the documentation links for these 2 functions: https://www.mathworks.com/help/matlab/ref/imshow.html, https://www.mathworks.com/help/matlab/ref/imwrite.html

카테고리

Help CenterFile Exchange에서 이미지에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!