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

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.

wave filter

wave filter

Step by Step Solution

3.44 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a wave filter as described in the question youll need to write a script that processes an image to apply the wave effect using the sine func... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithm Design Questions!