Hellos,
Introduction:
I'm trying to set up a panda dataframe to connect a number of discrete chemical values to a number of images. It's a tiny bit above my current level, so I was hoping for some help here.
What I got so far:
I've currently sliced out two columns from a provided datasheet that looks like this.
Now I have 1688 datapoints here and I have 1225 images of the size 10x10x4 (RGBA) that is to be associated with it. (1225,10,10,4) Uint8
These images, all have the same Sample_ID name seen in column 1. My goal is to run a loop, that scoops up the images from the folder, flattens and reshapes them into 300x1 and then stores them in a 3rd column that is checked against the Sample_ID. This means that the correct image must correspond to the correct Sample_ID.
I've scoured the net and here on stackoverflow. I've already tried 4 different looping image functions from here which didn't give me quite the result I expected.
My best bet so far seems to have been using glob to throw it all in a numpy file. But I surely need a looping function that links the image with the corresponding id and Ni value.
Any suggestions on how I can load the image in and store its ID value for cross referencing it with the existing dataframe.
Thank you for your time.