Monday, December 23, 2019

Understanding Data Axes using Image manipulation with Python



I have recently been working on several projects which allowed me to dive into image analysis. What I found was a lot of people still using nested loops to process pixel data. This is fine for small data sets. Once you have amassed several thousand images to process though, you need a better way. For many new data scientists, one of the most confusing aspects of manipulating image data programmatically seems to be understanding the axes layout many libraries (like NumPy and Pandas) rely on. Understanding how the data is laid out, and how you can efficiently process it, can save you hours of waiting for your code to execute. In this post I will explain this layout and how you can leverage it to your programmatic advantage.