Skip to content
Advertisement

How can you store values in a new matrix without indexing it?

New to python and also using stack overflow so please bear with me, I’m just trying to get used to it.

Right, so I have 5 image frames. I wish to extract the pixel values from these frames in the time domain. Therefore I need to store the values in a new matrix with no_of_frames as my rows (time domain ) and pixel instance ( 9 * 9 image so 81 instances ) as my columns.

I can do that as shown below ( I know the code is awful, bear with me) but when it comes to storing the pixel values for the next row I run into an issue as I have used the while loop up to 400 columns.I want to continue to store my values as I did for the first row.

JavaScript

Any and all tips and suggestions are welcome. If I havent been clear (which I’m sure I have messed up on), let me know and I will try rephrase.

Thank you, P

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement