I am using PostgreSQL as a SQL-Server to save datasets used to train models in Weka (machine learning tool).
Weka then reads the table by creating a feature out of each column. For this project the data consists of 24x35 px images where each pixel is a feature. Therefore I have to create a table with 841 columns (840 pixel values, 1 id (primary key)).
The images are grayscale images. So each pixel value ranges from 0 to 255. Therefore I want to either save it as one integer per pixel / column or one byte per pixel / column. The "id"-column however has to be an integer.
What is the best / easiest way to set up a table of that size?