Can I convert .csv to .jpg or .png?

3 visualizaciones (últimos 30 días)
Gokul Krishnan
Gokul Krishnan el 12 de Mzo. de 2020
Respondida: Raunak Gupta el 17 de Mzo. de 2020
how to read .csv file with variable names into matlab?
  2 comentarios
Adam
Adam el 12 de Mzo. de 2020
doc readtable
probably works for what you asked in the body of the question. I don't quite know what the question title has to do with anything though. .jpg and .png are image formats. I'm not sure how you would expect to convert an arbitrary .csv file to those formats.
Gokul Krishnan
Gokul Krishnan el 12 de Mzo. de 2020
For training input into cnn, I need to convert these numerical values into .jpg? Or any other way is there so that I can Feed input to my cnn with these numerical values? Thanks for responding ?

Iniciar sesión para comentar.

Respuestas (1)

Raunak Gupta
Raunak Gupta el 17 de Mzo. de 2020
Hi,
If the end goal is to input the csv files directly into a CNN, a better approach would be to use imageDatastore as it can be directly used in trainNetwork function. For reading “.csv” files into imageDatastore you may define a custom ReadFcn which can use readtable for reading individual “.csv” files. From the table you can assign different channels according to the meaning of each property in physical nature. Since I found there are three properties in csv file but all of them have different number of columns which will not help while creating a 3-D Matrix.
There are some examples you may want to look while writing a custom ReadFcn.

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by