Class 38 — April 19

Image manipulation

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


Importance of following directions

wrecked truck



Look both ways


Tasks

photo ops gui

Module dimensions.py

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

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 original
  • You should find module manip.py functions zoom_in() and zoom_out() helpful.


mandrill


mandrill


mandrill


mandrill