Can you explain how to imagine frequency in 2D? I need to understand how the concept of frequency exists in images
Frequency, by its definition, means how frequently something occurs. You can treat images as planes where you have data points, ie. the pixels of the data. In images a frequency can be thought of as how frequently the sinusoidal components of the structure repeat per unit distance (where your unit would be the distance of a pixel).