Write a filter like those in the previous two exercises that creates a wave effect, by copying

Question:

Write a filter like those in the previous two exercises that creates a wave effect, by copying the color of each pixel \(\left(s_{i}, s_{j}ight)\) in the source image to a target pixel \(\left(t_{i}, t_{j}ight)\), where \(t_{i}=s_{i}\) and \(t_{j}=s_{j}+20 \sin \left(2 \pi s_{j} / 64ight)\). Add code to take the amplitude (20 in the accompanying figure) and the frequency (64 in the accompanying figure) as command-line arguments. Experiment with various values of these parameters.

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: