Converting image into csv file

I am unable to convert my final image into a CSV file. I even find it difficult to visualise the 3 dimensional matrix in my mind. In the upper videos, very tiny information is given about the matrix and channels. Please help me

Hey @anshudabar, a 3-dimensional image means that the image has 3 channels. So the dimensions of your final image should be something similar to (x,y,3). Now once you have generated such an image, you just need to store all the pixel values in a csv file. You can do that using the to_csv( ) function of pandas.
Remember to follow the output format as shown in the sample.csv

If you want to familiarize yourself with to_csv( ) function, then you can refer this link.

Hope this helps.
Happy coding :slight_smile: