Question: Write a program Zoom that takes the name of an image file and three numbers (s, x), and (y) as command-line arguments, and shows an

Write a program Zoom that takes the name of an image file and three numbers \(s, x\), and \(y\) as command-line arguments, and shows an output image that zooms in on a portion of the input image. The numbers are all between 0 and 1 , with \(s\) to be interpreted as a scale factor and \((x, y)\) as the relative coordinates of the point that is to be at the center of the output image. Use this program to zoom in on a relative or pet in some digital photo on your computer. (If your photo came from an old cell phone or camera, you may not be able to zoom in too close without having visible artifacts from scaling.)

% java Zoom boy.jpg .2.48.5 Digital zoom

% java Zoom boy.jpg .2.48.5 Digital zoom

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a program that accomplishes this task Ill outline a simple program in Python since Python with libraries such as Pillow PIL is wellsuited fo... 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!