csv 파일 데이터를 이미지 데이터로 변환하는 방법
15 ビュー (過去 30 日間)
古いコメントを表示
csv 파일의 데이터를 이미지 데이터로 변환하여 저장하는 방법이 궁금합니다.
1 件のコメント
回答 (1 件)
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:
- 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
- Ensure that the data is normalized to the range [0, 1] or [0, 255] for image representation.
- 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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で 빅 데이터 처리 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!