**Any** image can be reconstructed from a series of sinusoidal gratings.
A sinusoidal grating looks like this…
/2
You can find the parameters of a sinusoidal grating by using the 2D #FourierTransform.
The dots shown contain the amplitude and phase of the grating. Their position from the centre gives the frequency, and their orientation represents the orientation of the grating.
/10
Now, if you have lots of gratings superimposed on each other, the #FourierTransform gives you a pair of dots for each of the components
/11
Now, here's the "magical" part of #Fourier theory.
*Any* image is made up of lots of sinusoidal gratings. So, the 2D Fourier Transform of an image gives you thousands of pairs of dots, and each pair represent a sinusoidal grating.
/12
There's a lot more than can fit in a single thread.
If you want to read more detail, and go through the step-by-step writing of the code to decompose & recostruct *any* image, read full article here:
#coding #2dfourierimages #2dfouriertransform #fourier
/16
Not sure whether you're only meant to get a single shot at an #introduction, but I'll extend on mine a bit now that I'm starting to find my feet here
My main focus is on communicating about #programming, specifically #Python. That includes teaching!
However, my first career was as a physicist
---
After studying #Maths and #Physics and then getting my PhD in Physics from Imperial College, London, I went down the _normal_ route of a few postdocs, an academic fellowship, and then a lectureship.
Most of my science work centred around novel retinal imaging technology with the primary aim of early disease diagnosis, plus a bit more about the optics of the eye.
I learnt to code as part of my PhD work and then relied on programming (mostly MATLAB, at the time, before the Python-era) for all of my research work, from simulation and modelling, to running the lab experiments, to analysing the data.
---
When I left academia, I decided to focus on teaching programming to both children and adults.
I spend a lot of time creating learning content, including **[The Python Coding Book](https://thepythoncodingbook.com)** and regular articles on the blog.
I also run **[codetoday](https://www.codetoday.co.uk)** which runs live lessons for children from age 7 to learn coding in Python (only Python, no kids-platforms. Yes, starting from age 7, you'd be surprised how well they pick the basics up)
---
I'll be sharing bits on content regularly here too, typically aimed at intermediate learners (including those aiming to move from beginners to intermediate), including steering towards scientific programming and related fields.
OK, I've abused #QOTO's longer character limit too much, so I'd better stop!
@notat thank you!
@s_gruppetta In my 35 years as a sotfware engineer I have seen a lot of code that looks like it was written by seven year olds. 😆
@klyons I can imagine!
@s_gruppetta Nice python book.