lecture04: Sampling and transforms in 2D