Class 37 — November 28

Image manipulation

I need a haiku — I can't think of one I like — Will you please help me


Importance of following directions ( I feel bad for the driver)

wrecked truck

Look both ways


Task


Module dim.py

  • Returns the dimensions of an image that would be half that of image orig
  • Returns the dimensions of an image that would be twice that of image orig

Module locate.py

  • Returns a new correspondent location ( a, b ) for spot, where the dimensions in the correspondent image are twice that of w and h
  • Returns a new correspondent location ( a, b ) for spot, where the dimensions in the correspondent image are half that of w and h

Module effect.py

  • Returns a new image that is a 16 by 16 scaling of a 1/16 by 1/16 scaling of orig
  • You should find module manip.py functions zoom_in() and zoom_out() helpful.

mandrillmandrill
mandrillmandrill

 


 

 

 
   
   
   
 
  © 2019 Jim Cohoon   Resources from previous semesters are available.